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

Function swcr_eta

freebsd/opencrypto/cryptosoft.c:873–888  ·  view source on GitHub ↗

* Apply a cipher and a digest to perform EtA. */

Source from the content-addressed store, hash-verified

871 * Apply a cipher and a digest to perform EtA.
872 */
873static int
874swcr_eta(struct swcr_session *ses, struct cryptop *crp)
875{
876 int error;
877
878 if (CRYPTO_OP_IS_ENCRYPT(crp->crp_op)) {
879 error = swcr_encdec(ses, crp);
880 if (error == 0)
881 error = swcr_authcompute(ses, crp);
882 } else {
883 error = swcr_authcompute(ses, crp);
884 if (error == 0)
885 error = swcr_encdec(ses, crp);
886 }
887 return (error);
888}
889
890/*
891 * Apply a compression/decompression algorithm

Callers

nothing calls this directly

Calls 2

swcr_authcomputeFunction · 0.85
swcr_encdecFunction · 0.70

Tested by

no test coverage detected