Lines Matching refs:exf
110 struct enc_xform *exf; in swcr_encdec() local
122 exf = sw->sw_exf; in swcr_encdec()
125 if (exf->native_blocksize == 0) { in swcr_encdec()
127 if ((crp->crp_payload_length % exf->blocksize) != 0) in swcr_encdec()
130 blks = exf->blocksize; in swcr_encdec()
132 blks = exf->native_blocksize; in swcr_encdec()
134 if (exf == &enc_xform_aes_icm && in swcr_encdec()
139 error = exf->setkey(sw->sw_kschedule, in swcr_encdec()
147 if (exf->reinit) { in swcr_encdec()
152 exf->reinit(sw->sw_kschedule, iv, csp->csp_ivlen); in swcr_encdec()
193 if (exf->reinit != NULL) { in swcr_encdec()
195 exf->encrypt(sw->sw_kschedule, inblk, outblk); in swcr_encdec()
197 exf->decrypt(sw->sw_kschedule, inblk, outblk); in swcr_encdec()
203 exf->encrypt(sw->sw_kschedule, outblk, outblk); in swcr_encdec()
219 exf->decrypt(sw->sw_kschedule, inblk, outblk); in swcr_encdec()
250 KASSERT(exf->native_blocksize != 0, in swcr_encdec()
252 __func__, i, exf->name)); in swcr_encdec()
253 KASSERT(exf->reinit != NULL, in swcr_encdec()
255 __func__, exf->name)); in swcr_encdec()
267 exf->encrypt_last(sw->sw_kschedule, inblk, outblk, in swcr_encdec()
270 exf->decrypt_last(sw->sw_kschedule, inblk, outblk, in swcr_encdec()
473 struct enc_xform *exf; in swcr_gcm() local
487 exf = swe->sw_exf; in swcr_gcm()
488 KASSERT(axf->blocksize == exf->native_blocksize, in swcr_gcm()
534 exf->setkey(swe->sw_kschedule, crp->crp_cipher_key, in swcr_gcm()
536 exf->reinit(swe->sw_kschedule, crp->crp_iv, ivlen); in swcr_gcm()
558 exf->encrypt(swe->sw_kschedule, inblk, outblk); in swcr_gcm()
571 exf->encrypt_last(swe->sw_kschedule, blk, blk, resid); in swcr_gcm()
616 exf->decrypt(swe->sw_kschedule, inblk, outblk); in swcr_gcm()
624 exf->decrypt_last(swe->sw_kschedule, blk, blk, resid); in swcr_gcm()
763 struct enc_xform *exf; in swcr_ccm() local
777 exf = swe->sw_exf; in swcr_ccm()
778 KASSERT(axf->blocksize == exf->native_blocksize, in swcr_ccm()
820 exf->setkey(swe->sw_kschedule, crp->crp_cipher_key, in swcr_ccm()
822 exf->reinit(swe->sw_kschedule, crp->crp_iv, ivlen); in swcr_ccm()
844 exf->encrypt(swe->sw_kschedule, inblk, outblk); in swcr_ccm()
858 exf->decrypt(swe->sw_kschedule, inblk, blk); in swcr_ccm()
866 exf->encrypt_last(swe->sw_kschedule, blk, blk, resid); in swcr_ccm()
869 exf->decrypt_last(swe->sw_kschedule, blk, blk, resid); in swcr_ccm()
893 exf->reinit(swe->sw_kschedule, crp->crp_iv, ivlen); in swcr_ccm()
907 exf->decrypt(swe->sw_kschedule, inblk, outblk); in swcr_ccm()
915 exf->decrypt_last(swe->sw_kschedule, blk, blk, resid); in swcr_ccm()
944 struct enc_xform *exf; in swcr_chacha20_poly1305() local
952 exf = swe->sw_exf; in swcr_chacha20_poly1305()
953 blksz = exf->native_blocksize; in swcr_chacha20_poly1305()
981 exf->setkey(swe->sw_kschedule, crp->crp_cipher_key, in swcr_chacha20_poly1305()
983 exf->reinit(swe->sw_kschedule, crp->crp_iv, csp->csp_ivlen); in swcr_chacha20_poly1305()
1004 exf->encrypt(swe->sw_kschedule, inblk, outblk); in swcr_chacha20_poly1305()
1017 exf->encrypt_last(swe->sw_kschedule, blk, blk, resid); in swcr_chacha20_poly1305()
1065 exf->decrypt(swe->sw_kschedule, inblk, outblk); in swcr_chacha20_poly1305()
1073 exf->decrypt_last(swe->sw_kschedule, blk, blk, resid); in swcr_chacha20_poly1305()