Home
last modified time | relevance | path

Searched refs:shpre (Results 1 – 1 of 1) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c34 struct crypto_shash *shpre; member
2778 ctx->shpre = crypto_alloc_shash(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in safexcel_hmac_sha3_cra_init()
2779 if (IS_ERR(ctx->shpre)) in safexcel_hmac_sha3_cra_init()
2780 return PTR_ERR(ctx->shpre); in safexcel_hmac_sha3_cra_init()
2783 crypto_shash_descsize(ctx->shpre), GFP_KERNEL); in safexcel_hmac_sha3_cra_init()
2785 crypto_free_shash(ctx->shpre); in safexcel_hmac_sha3_cra_init()
2788 ctx->shdesc->tfm = ctx->shpre; in safexcel_hmac_sha3_cra_init()
2797 crypto_free_shash(ctx->shpre); in safexcel_hmac_sha3_cra_exit()
2815 keylen = crypto_shash_digestsize(ctx->shpre); in safexcel_hmac_sha3_setkey()