Lines Matching refs:shash
437 SHASH_DESC_ON_STACK(shash, data->ctx->shash); in sa_prepare_iopads()
438 int block_size = crypto_shash_blocksize(data->ctx->shash); in sa_prepare_iopads()
439 int digest_size = crypto_shash_digestsize(data->ctx->shash); in sa_prepare_iopads()
446 shash->tfm = data->ctx->shash; in sa_prepare_iopads()
450 crypto_shash_init(shash); in sa_prepare_iopads()
451 crypto_shash_update(shash, sha.k_pad, block_size); in sa_prepare_iopads()
452 sa_export_shash(&sha, shash, digest_size, ipad); in sa_prepare_iopads()
456 crypto_shash_init(shash); in sa_prepare_iopads()
457 crypto_shash_update(shash, sha.k_pad, block_size); in sa_prepare_iopads()
459 sa_export_shash(&sha, shash, digest_size, opad); in sa_prepare_iopads()
1453 int bs = crypto_shash_blocksize(ctx->shash); in sa_sha_setup()
1504 ctx->shash = crypto_alloc_shash(alg_base, 0, in sa_sha_cra_init_alg()
1506 if (IS_ERR(ctx->shash)) { in sa_sha_cra_init_alg()
1509 return PTR_ERR(ctx->shash); in sa_sha_cra_init_alg()
1686 crypto_free_shash(ctx->shash); in sa_sha_cra_exit()
1739 ctx->shash = crypto_alloc_shash(hash, 0, CRYPTO_ALG_NEED_FALLBACK); in sa_cra_init_aead()
1740 if (IS_ERR(ctx->shash)) { in sa_cra_init_aead()
1742 return PTR_ERR(ctx->shash); in sa_cra_init_aead()
1791 crypto_free_shash(ctx->shash); in sa_exit_tfm_aead()