Lines Matching refs:swe
412 const struct swcr_encdec *swe; in swcr_gcm() local
419 swe = &ses->swcr_encdec; in swcr_gcm()
420 exf = swe->sw_exf; in swcr_gcm()
435 memcpy(ctx, swe->sw_ctx, exf->ctxsize); in swcr_gcm()
746 const struct swcr_encdec *swe; in swcr_ccm() local
754 swe = &ses->swcr_encdec; in swcr_ccm()
755 exf = swe->sw_exf; in swcr_ccm()
773 memcpy(ctx, swe->sw_ctx, exf->ctxsize); in swcr_ccm()
972 const struct swcr_encdec *swe; in swcr_chacha20_poly1305() local
978 swe = &ses->swcr_encdec; in swcr_chacha20_poly1305()
979 exf = swe->sw_exf; in swcr_chacha20_poly1305()
993 memcpy(ctx, swe->sw_ctx, exf->ctxsize); in swcr_chacha20_poly1305()
1270 struct swcr_encdec *swe; in swcr_setup_cipher() local
1274 swe = &ses->swcr_encdec; in swcr_setup_cipher()
1278 swe->sw_ctx = malloc(txf->ctxsize, M_CRYPTO_DATA, in swcr_setup_cipher()
1280 if (swe->sw_ctx == NULL) in swcr_setup_cipher()
1283 error = txf->setkey(swe->sw_ctx, in swcr_setup_cipher()
1288 swe->sw_exf = txf; in swcr_setup_cipher()