| 62 | } |
| 63 | |
| 64 | static int |
| 65 | parse_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 | |
| 87 | struct fips_test_callback sha_tests_vectors[] = { |
| 88 | {MSGLEN_STR, parser_read_uint32_bit_val, &vec.pt}, |
nothing calls this directly
no test coverage detected