Lines Matching refs:swe

471 	struct swcr_encdec *swe;  in swcr_gcm()  local
486 swe = &ses->swcr_encdec; in swcr_gcm()
487 exf = swe->sw_exf; 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()
761 struct swcr_encdec *swe; in swcr_ccm() local
776 swe = &ses->swcr_encdec; in swcr_ccm()
777 exf = swe->sw_exf; 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()
942 struct swcr_encdec *swe; in swcr_chacha20_poly1305() local
951 swe = &ses->swcr_encdec; in swcr_chacha20_poly1305()
952 exf = swe->sw_exf; 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()
1198 struct swcr_encdec *swe; in swcr_setup_cipher() local
1202 swe = &ses->swcr_encdec; in swcr_setup_cipher()
1205 swe->sw_kschedule = malloc(txf->ctxsize, M_CRYPTO_DATA, in swcr_setup_cipher()
1207 if (swe->sw_kschedule == NULL) in swcr_setup_cipher()
1211 error = txf->setkey(swe->sw_kschedule, in swcr_setup_cipher()
1216 swe->sw_exf = txf; in swcr_setup_cipher()
1553 struct swcr_encdec *swe; in swcr_newsession() local
1562 swe = &ses->swcr_encdec; in swcr_newsession()