Lines Matching refs:opad
687 kfree(ctx->opad); in otx2_cpt_aead_exit()
802 u8 *ipad = NULL, *opad = NULL; in aead_hmac_init() local
815 ctx->opad = kzalloc(bs, GFP_KERNEL); in aead_hmac_init()
816 if (!ctx->opad) { in aead_hmac_init()
827 opad = kzalloc(state_size, GFP_KERNEL); in aead_hmac_init()
828 if (!opad) { in aead_hmac_init()
845 memcpy(opad, ipad, bs); in aead_hmac_init()
849 opad[icount] ^= 0x5c; in aead_hmac_init()
867 crypto_shash_update(&ctx->sdesc->shash, opad, bs); in aead_hmac_init()
868 crypto_shash_export(&ctx->sdesc->shash, opad); in aead_hmac_init()
869 ret = copy_pad(ctx->mac_type, ctx->opad, opad); in aead_hmac_init()
874 kfree(opad); in aead_hmac_init()
881 kfree(ctx->opad); in aead_hmac_init()
882 ctx->opad = NULL; in aead_hmac_init()
884 kfree(opad); in aead_hmac_init()
1042 if (ctx->opad) in create_aead_ctx_hdr()
1043 memcpy(fctx->hmac.e.opad, ctx->opad, ds); in create_aead_ctx_hdr()