Lines Matching full:ipad
548 * for calculating ipad and opad in cpt_aead_init()
553 ctx->ipad = kzalloc(ss, GFP_KERNEL); in cpt_aead_init()
554 if (!ctx->ipad) { in cpt_aead_init()
561 kfree(ctx->ipad); in cpt_aead_init()
570 kfree(ctx->ipad); in cpt_aead_init()
627 kfree(ctx->ipad); in otx_cpt_aead_exit()
762 u8 *ipad = NULL, *opad = NULL; in aead_hmac_init() local
798 ipad = ctx->ipad; in aead_hmac_init()
801 memcpy(ipad, ctx->key, authkeylen); in aead_hmac_init()
802 memset(ipad + authkeylen, 0, bs - authkeylen); in aead_hmac_init()
803 memcpy(opad, ipad, bs); in aead_hmac_init()
806 ipad[icount] ^= 0x36; in aead_hmac_init()
812 * algorithm is retrieved for IPAD & OPAD in aead_hmac_init()
815 /* IPAD Calculation */ in aead_hmac_init()
817 crypto_shash_update(&ctx->sdesc->shash, ipad, bs); in aead_hmac_init()
818 crypto_shash_export(&ctx->sdesc->shash, ipad); in aead_hmac_init()
819 ret = swap_pad(ctx->mac_type, ipad); in aead_hmac_init()
916 if (ctx->ipad) in create_aead_ctx_hdr()
917 memcpy(fctx->hmac.e.ipad, ctx->ipad, ds); in create_aead_ctx_hdr()