| 712 | } |
| 713 | |
| 714 | static const uint8_t* |
| 715 | pdcp_test_crypto_key_get(enum pdcp_test_suite_type suite_type, const int index) |
| 716 | { |
| 717 | const uint8_t *ret; |
| 718 | |
| 719 | switch (suite_type) { |
| 720 | case PDCP_TEST_SUITE_TY_BASIC: |
| 721 | ret = pdcp_test_crypto_key[index]; |
| 722 | break; |
| 723 | case PDCP_TEST_SUITE_TY_SDAP: |
| 724 | ret = list_pdcp_sdap_tests[index].cipher_key; |
| 725 | break; |
| 726 | default: |
| 727 | RTE_LOG(ERR, USER1, "Invalid suite_type: %d\n", suite_type); |
| 728 | return NULL; |
| 729 | } |
| 730 | |
| 731 | return ret; |
| 732 | } |
| 733 | |
| 734 | static enum rte_crypto_auth_algorithm |
| 735 | pdcp_test_param_auth_alg_get(enum pdcp_test_suite_type suite_type, const int index) |
no outgoing calls
no test coverage detected