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

Function parse_interim_algo

dpdk/examples/fips_validation/fips_validation_sha.c:64–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static int
65parse_interim_algo(__rte_unused const char *key,
66 char *text,
67 __rte_unused struct fips_val *val)
68{
69 uint32_t i;
70
71 for (i = 0; i < RTE_DIM(phsc); i++) {
72 if (strstr(text, phsc[i].str)) {
73 info.interim_info.sha_data.algo = phsc[i].algo;
74 info.interim_info.sha_data.md_blocks = phsc[i].md_blocks;
75 parser_read_uint32_val(ALGO_PREFIX,
76 text, &vec.cipher_auth.digest);
77 break;
78 }
79 }
80
81 if (i == RTE_DIM(phsc))
82 return -1;
83
84 return 0;
85}
86
87struct fips_test_callback sha_tests_vectors[] = {
88 {MSGLEN_STR, parser_read_uint32_bit_val, &vec.pt},

Callers

nothing calls this directly

Calls 2

strstrFunction · 0.85
parser_read_uint32_valFunction · 0.85

Tested by

no test coverage detected