Home
last modified time | relevance | path

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

/linux/drivers/crypto/qce/
H A Dsha.c338 struct crypto_ahash *ahash_tfm; in qce_ahash_hmac_setkey() local
358 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in qce_ahash_hmac_setkey()
359 if (IS_ERR(ahash_tfm)) in qce_ahash_hmac_setkey()
360 return PTR_ERR(ahash_tfm); in qce_ahash_hmac_setkey()
362 req = ahash_request_alloc(ahash_tfm, GFP_KERNEL); in qce_ahash_hmac_setkey()
371 crypto_ahash_clear_flags(ahash_tfm, ~0); in qce_ahash_hmac_setkey()
389 crypto_free_ahash(ahash_tfm); in qce_ahash_hmac_setkey()
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_test.c1125 struct crypto_ahash *ahash_tfm; in rfc6803_encrypt_case() local
1181 ahash_tfm = crypto_alloc_ahash(gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in rfc6803_encrypt_case()
1182 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ahash_tfm); in rfc6803_encrypt_case()
1183 err = crypto_ahash_setkey(ahash_tfm, Ki.data, Ki.len); in rfc6803_encrypt_case()
1187 err = gss_krb5_checksum(ahash_tfm, NULL, 0, &buf, 0, &checksum); in rfc6803_encrypt_case()
1207 crypto_free_ahash(ahash_tfm); in rfc6803_encrypt_case()
1620 struct crypto_ahash *ahash_tfm; in rfc8009_encrypt_case() local
1675 ahash_tfm = crypto_alloc_ahash(gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in rfc8009_encrypt_case()
1676 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ahash_tfm); in rfc8009_encrypt_case()
1677 err = crypto_ahash_setkey(ahash_tfm, Ki.data, Ki.len); in rfc8009_encrypt_case()
[all …]
/linux/drivers/crypto/starfive/
H A Djh7110-hash.c414 struct crypto_ahash *ahash_tfm; in starfive_hash_long_setkey() local
418 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in starfive_hash_long_setkey()
419 if (IS_ERR(ahash_tfm)) in starfive_hash_long_setkey()
420 return PTR_ERR(ahash_tfm); in starfive_hash_long_setkey()
422 req = ahash_request_alloc(ahash_tfm, GFP_KERNEL); in starfive_hash_long_setkey()
431 crypto_ahash_clear_flags(ahash_tfm, ~0); in starfive_hash_long_setkey()
449 crypto_free_ahash(ahash_tfm); in starfive_hash_long_setkey()
/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-hcu-core.c753 struct crypto_ahash *ahash_tfm; in kmb_ocs_hcu_setkey() local
793 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in kmb_ocs_hcu_setkey()
794 if (IS_ERR(ahash_tfm)) in kmb_ocs_hcu_setkey()
795 return PTR_ERR(ahash_tfm); in kmb_ocs_hcu_setkey()
797 req = ahash_request_alloc(ahash_tfm, GFP_KERNEL); in kmb_ocs_hcu_setkey()
806 crypto_ahash_clear_flags(ahash_tfm, ~0); in kmb_ocs_hcu_setkey()
817 crypto_free_ahash(ahash_tfm); in kmb_ocs_hcu_setkey()
/linux/drivers/crypto/tegra/
H A Dtegra-se-hash.c461 struct crypto_ahash *ahash_tfm = __crypto_ahash_cast(tfm); in tegra_sha_cra_init() local
470 crypto_ahash_set_reqsize(ahash_tfm, sizeof(struct tegra_sha_reqctx)); in tegra_sha_cra_init()
483 tegra_sha_init_fallback(ahash_tfm, ctx, algname); in tegra_sha_cra_init()