Lines Matching refs:sdesc
612 kfree(ctx->sdesc); in otx_cpt_aead_exit()
679 struct otx_cpt_sdesc *sdesc; in alloc_sdesc() local
683 sdesc = kmalloc(size, GFP_KERNEL); in alloc_sdesc()
684 if (!sdesc) in alloc_sdesc()
687 sdesc->shash.tfm = alg; in alloc_sdesc()
689 return sdesc; in alloc_sdesc()
750 ctx->sdesc = alloc_sdesc(ctx->hashalg); in aead_hmac_init()
751 if (!ctx->sdesc) in aead_hmac_init()
779 ret = crypto_shash_digest(&ctx->sdesc->shash, ctx->key, in aead_hmac_init()
803 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init()
804 crypto_shash_update(&ctx->sdesc->shash, ipad, bs); in aead_hmac_init()
805 crypto_shash_export(&ctx->sdesc->shash, ipad); in aead_hmac_init()
811 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init()
812 crypto_shash_update(&ctx->sdesc->shash, opad, bs); in aead_hmac_init()
813 crypto_shash_export(&ctx->sdesc->shash, opad); in aead_hmac_init()
830 kfree(ctx->sdesc); in aead_hmac_init()
831 ctx->sdesc = NULL; in aead_hmac_init()