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

Function process_cipher_auth_data

dpdk/drivers/crypto/nitrox/nitrox_sym_reqmgr.c:650–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650static int
651process_cipher_auth_data(struct nitrox_softreq *sr)
652{
653 struct rte_crypto_op *op = sr->op;
654 int err;
655 struct nitrox_sglist digest;
656
657 softreq_copy_iv(sr, 0);
658 err = extract_cipher_auth_digest(sr, &digest);
659 if (unlikely(err))
660 return err;
661
662 err = create_aead_inbuf(sr, &digest);
663 if (unlikely(err))
664 return err;
665
666 err = create_aead_outbuf(sr, &digest);
667 if (unlikely(err))
668 return err;
669
670 create_aead_gph(op->sym->cipher.data.length, sr->iv.len,
671 op->sym->auth.data.length, &sr->gph);
672 return 0;
673}
674
675static int
676softreq_copy_salt(struct nitrox_softreq *sr)

Callers 1

process_softreqFunction · 0.85

Calls 5

softreq_copy_ivFunction · 0.85
create_aead_inbufFunction · 0.85
create_aead_outbufFunction · 0.85
create_aead_gphFunction · 0.85

Tested by

no test coverage detected