Home
last modified time | relevance | path

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

/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c515 ctx->hashalg = crypto_alloc_shash("sha1", 0, 0); in cpt_aead_init()
519 ctx->hashalg = crypto_alloc_shash("sha256", 0, 0); in cpt_aead_init()
523 ctx->hashalg = crypto_alloc_shash("sha384", 0, 0); in cpt_aead_init()
527 ctx->hashalg = crypto_alloc_shash("sha512", 0, 0); in cpt_aead_init()
531 if (IS_ERR(ctx->hashalg)) in cpt_aead_init()
532 return PTR_ERR(ctx->hashalg); in cpt_aead_init()
536 if (!ctx->hashalg) in cpt_aead_init()
545 int ss = crypto_shash_statesize(ctx->hashalg); in cpt_aead_init()
549 crypto_free_shash(ctx->hashalg); in cpt_aead_init()
556 crypto_free_shash(ctx->hashalg); in cpt_aead_init()
[all …]
H A Dotx_cptvf_algs.h171 struct crypto_shash *hashalg; member
/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c605 ctx->hashalg = crypto_alloc_shash("sha1", 0, 0); in cpt_aead_init()
609 ctx->hashalg = crypto_alloc_shash("sha256", 0, 0); in cpt_aead_init()
613 ctx->hashalg = crypto_alloc_shash("sha384", 0, 0); in cpt_aead_init()
617 ctx->hashalg = crypto_alloc_shash("sha512", 0, 0); in cpt_aead_init()
621 if (IS_ERR(ctx->hashalg)) in cpt_aead_init()
622 return PTR_ERR(ctx->hashalg); in cpt_aead_init()
624 if (ctx->hashalg) { in cpt_aead_init()
625 ctx->sdesc = alloc_sdesc(ctx->hashalg); in cpt_aead_init()
627 crypto_free_shash(ctx->hashalg); in cpt_aead_init()
637 if (ctx->cipher_type != OTX2_CPT_CIPHER_NULL && ctx->hashalg) { in cpt_aead_init()
[all …]
H A Dotx2_cptvf_algs.h164 struct crypto_shash *hashalg; member
/linux/drivers/s390/crypto/
H A Dzcrypt_ccamisc.h70 u8 hashalg; /* hash algorithmus used for wrapping key */ member