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

Function test_ipsec_proto_known_vec

dpdk/app/test/test_cryptodev.c:10399–10417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10397}
10398
10399static int
10400test_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
10419static int
10420test_ipsec_proto_known_vec_ext_mbuf(const void *test_data)

Callers

nothing calls this directly

Calls 3

memsetFunction · 0.85
test_ipsec_proto_processFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected