Home
last modified time | relevance | path

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

/kernel/linux/linux-6.6/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c35 struct crypto_shash *shpre; member
2733 ctx->shpre = crypto_alloc_shash(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in safexcel_hmac_sha3_cra_init()
2734 if (IS_ERR(ctx->shpre)) in safexcel_hmac_sha3_cra_init()
2735 return PTR_ERR(ctx->shpre); in safexcel_hmac_sha3_cra_init()
2738 crypto_shash_descsize(ctx->shpre), GFP_KERNEL); in safexcel_hmac_sha3_cra_init()
2740 crypto_free_shash(ctx->shpre); in safexcel_hmac_sha3_cra_init()
2743 ctx->shdesc->tfm = ctx->shpre; in safexcel_hmac_sha3_cra_init()
2752 crypto_free_shash(ctx->shpre); in safexcel_hmac_sha3_cra_exit()
2770 keylen = crypto_shash_digestsize(ctx->shpre); in safexcel_hmac_sha3_setkey()
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c33 struct crypto_shash *shpre; member
2777 ctx->shpre = crypto_alloc_shash(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in safexcel_hmac_sha3_cra_init()
2778 if (IS_ERR(ctx->shpre)) in safexcel_hmac_sha3_cra_init()
2779 return PTR_ERR(ctx->shpre); in safexcel_hmac_sha3_cra_init()
2782 crypto_shash_descsize(ctx->shpre), GFP_KERNEL); in safexcel_hmac_sha3_cra_init()
2784 crypto_free_shash(ctx->shpre); in safexcel_hmac_sha3_cra_init()
2787 ctx->shdesc->tfm = ctx->shpre; in safexcel_hmac_sha3_cra_init()
2796 crypto_free_shash(ctx->shpre); in safexcel_hmac_sha3_cra_exit()
2814 keylen = crypto_shash_digestsize(ctx->shpre); in safexcel_hmac_sha3_setkey()

Completed in 8 milliseconds