MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pdcp_test_crypto_key_get

Function pdcp_test_crypto_key_get

dpdk/app/test/test_pdcp.c:714–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714static const uint8_t*
715pdcp_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
734static enum rte_crypto_auth_algorithm
735pdcp_test_param_auth_alg_get(enum pdcp_test_suite_type suite_type, const int index)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected