Lines Matching refs:swe
413 const struct swcr_encdec *swe; in swcr_gcm() local
420 swe = &ses->swcr_encdec; in swcr_gcm()
421 exf = swe->sw_exf; in swcr_gcm()
436 memcpy(ctx, swe->sw_ctx, exf->ctxsize); in swcr_gcm()
747 const struct swcr_encdec *swe; in swcr_ccm() local
755 swe = &ses->swcr_encdec; in swcr_ccm()
756 exf = swe->sw_exf; in swcr_ccm()
774 memcpy(ctx, swe->sw_ctx, exf->ctxsize); in swcr_ccm()
973 const struct swcr_encdec *swe; in swcr_chacha20_poly1305() local
979 swe = &ses->swcr_encdec; in swcr_chacha20_poly1305()
980 exf = swe->sw_exf; in swcr_chacha20_poly1305()
994 memcpy(ctx, swe->sw_ctx, exf->ctxsize); in swcr_chacha20_poly1305()
1271 struct swcr_encdec *swe; in swcr_setup_cipher() local
1275 swe = &ses->swcr_encdec; in swcr_setup_cipher()
1279 swe->sw_ctx = malloc(txf->ctxsize, M_CRYPTO_DATA, in swcr_setup_cipher()
1281 if (swe->sw_ctx == NULL) in swcr_setup_cipher()
1284 error = txf->setkey(swe->sw_ctx, in swcr_setup_cipher()
1289 swe->sw_exf = txf; in swcr_setup_cipher()