| 10397 | } |
| 10398 | |
| 10399 | static int |
| 10400 | test_ipsec_proto_known_vec(const void *test_data) |
| 10401 | { |
| 10402 | struct ipsec_test_data td_outb; |
| 10403 | struct ipsec_test_flags flags; |
| 10404 | |
| 10405 | memset(&flags, 0, sizeof(flags)); |
| 10406 | |
| 10407 | memcpy(&td_outb, test_data, sizeof(td_outb)); |
| 10408 | |
| 10409 | if (td_outb.aes_gmac || td_outb.aead || |
| 10410 | ((td_outb.ipsec_xform.proto != RTE_SECURITY_IPSEC_SA_PROTO_AH) && |
| 10411 | (td_outb.xform.chain.cipher.cipher.algo != RTE_CRYPTO_CIPHER_NULL))) { |
| 10412 | /* Disable IV gen to be able to test with known vectors */ |
| 10413 | td_outb.ipsec_xform.options.iv_gen_disable = 1; |
| 10414 | } |
| 10415 | |
| 10416 | return test_ipsec_proto_process(&td_outb, NULL, 1, false, &flags); |
| 10417 | } |
| 10418 | |
| 10419 | static int |
| 10420 | test_ipsec_proto_known_vec_ext_mbuf(const void *test_data) |
nothing calls this directly
no test coverage detected