Lines Matching refs:sdesc
691 kfree(ctx->sdesc); in otx2_cpt_aead_exit()
736 struct otx2_cpt_sdesc *sdesc; in alloc_sdesc() local
740 sdesc = kmalloc(size, GFP_KERNEL); in alloc_sdesc()
741 if (!sdesc) in alloc_sdesc()
744 sdesc->shash.tfm = alg; in alloc_sdesc()
746 return sdesc; in alloc_sdesc()
806 ctx->sdesc = alloc_sdesc(ctx->hashalg); in aead_hmac_init()
807 if (!ctx->sdesc) in aead_hmac_init()
835 ret = crypto_shash_digest(&ctx->sdesc->shash, ctx->key, in aead_hmac_init()
859 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init()
860 crypto_shash_update(&ctx->sdesc->shash, ipad, bs); in aead_hmac_init()
861 crypto_shash_export(&ctx->sdesc->shash, ipad); in aead_hmac_init()
867 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init()
868 crypto_shash_update(&ctx->sdesc->shash, opad, bs); in aead_hmac_init()
869 crypto_shash_export(&ctx->sdesc->shash, opad); in aead_hmac_init()
886 kfree(ctx->sdesc); in aead_hmac_init()
887 ctx->sdesc = NULL; in aead_hmac_init()