Home
last modified time | relevance | path

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

/linux/net/ipv4/
H A Dah4.c25 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument
30 len = size + crypto_ahash_digestsize(ahash); in ah_alloc_tmp()
34 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp()
52 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument
57 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
60 ahash_request_set_tfm(req, ahash); in ah_tmp_req()
65 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument
69 crypto_ahash_reqsize(ahash), in ah_req_sg()
151 struct crypto_ahash *ahash; in ah_output() local
163 ahash = ahp->ahash; in ah_output()
[all …]
/linux/drivers/crypto/caam/
H A Dcaamhash.c205 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
207 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_set_sh_desc()
208 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
261 static int axcbc_set_sh_desc(struct crypto_ahash *ahash) in axcbc_set_sh_desc() argument
263 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in axcbc_set_sh_desc()
264 int digestsize = crypto_ahash_digestsize(ahash); in axcbc_set_sh_desc()
313 static int acmac_set_sh_desc(struct crypto_ahash *ahash) in acmac_set_sh_desc() argument
315 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in acmac_set_sh_desc()
316 int digestsize = crypto_ahash_digestsize(ahash); in acmac_set_sh_desc()
424 static int ahash_setkey(struct crypto_ahash *ahash, in ahash_setkey() argument
[all …]
H A DKconfig133 Selecting this will offload ahash for users of the
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_crypto.c589 struct crypto_ahash *ahash; in gss_krb5_aes_encrypt() local
596 ahash = kctx->initiator_integ; in gss_krb5_aes_encrypt()
600 ahash = kctx->acceptor_integ; in gss_krb5_aes_encrypt()
638 err = gss_krb5_checksum(ahash, NULL, 0, buf, in gss_krb5_aes_encrypt()
662 struct crypto_ahash *ahash; in gss_krb5_aes_decrypt() local
672 ahash = kctx->acceptor_integ; in gss_krb5_aes_decrypt()
676 ahash = kctx->initiator_integ; in gss_krb5_aes_decrypt()
690 ret = gss_krb5_checksum(ahash, NULL, 0, &subbuf, 0, &our_hmac_obj); in gss_krb5_aes_decrypt()
817 struct crypto_ahash *ahash; in krb5_etm_encrypt() local
826 ahash = kctx->initiator_integ; in krb5_etm_encrypt()
[all …]
/linux/drivers/crypto/qce/
H A Dsha.h63 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl() local
64 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl()
67 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
H A Dcommon.h91 struct ahash_alg ahash; member
H A Dcommon.c150 struct crypto_ahash *ahash = __crypto_ahash_cast(async_req->tfm); in qce_setup_regs_ahash() local
154 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_setup_regs_ahash()
/linux/include/net/
H A Dah.h13 struct crypto_ahash *ahash; member
/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-hash.c47 int sun8i_ss_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in sun8i_ss_hmac_setkey() argument
50 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(ahash); in sun8i_ss_hmac_setkey()
52 int bs = crypto_ahash_blocksize(ahash); in sun8i_ss_hmac_setkey()
55 digestsize = crypto_ahash_digestsize(ahash); in sun8i_ss_hmac_setkey()
H A Dsun8i-ss.h317 int sun8i_ss_hmac_setkey(struct crypto_ahash *ahash, const u8 *key,
/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c316 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init() local
317 struct ccp_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ccp_sha_cra_init()
322 crypto_ahash_set_reqsize_dma(ahash, sizeof(struct ccp_sha_req_ctx)); in ccp_sha_cra_init()
H A Dccp-crypto-aes-cmac.c338 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init() local
343 crypto_ahash_set_reqsize_dma(ahash, in ccp_aes_cmac_cra_init()
/linux/drivers/crypto/
H A Dsa2ul.h319 struct crypto_ahash *ahash; member
H A DKconfig781 ahash, and aead algorithms with the kernel cryptographic API.
/linux/drivers/crypto/tegra/
H A Dtegra-se-aes.c1782 se_alg = container_of(alg, struct tegra_se_alg, alg.ahash.base); in tegra_cmac_cra_init()
1958 .alg.ahash.op.do_one_request = tegra_cmac_do_one_req,
1959 .alg.ahash.base = {
2020 ahash_alg = &tegra_cmac_algs[i].alg.ahash; in tegra_init_aes()
2035 crypto_engine_unregister_ahash(&tegra_cmac_algs[i].alg.ahash); in tegra_init_aes()
2061 crypto_engine_unregister_ahash(&tegra_cmac_algs[i].alg.ahash); in tegra_deinit_aes()
/linux/crypto/
H A Dahash.c784 struct ahash_instance *ahash = ahash_instance(inst); in crypto_ahash_free_instance() local
786 ahash->free(ahash); in crypto_ahash_free_instance()
H A DMakefile30 crypto_hash-y += ahash.o
/linux/drivers/crypto/inside-secure/
H A Dsafexcel.c1276 ret = crypto_register_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_register_algorithms()
1297 crypto_unregister_ahash(&safexcel_algs[j]->alg.ahash); in safexcel_register_algorithms()
1319 crypto_unregister_ahash(&safexcel_algs[i]->alg.ahash); in safexcel_unregister_algorithms()
H A Dsafexcel.h883 struct ahash_alg ahash; member
/linux/drivers/md/
H A Ddm-integrity.c4351 static int get_mac(struct crypto_shash **shash, struct crypto_ahash **ahash, in get_mac() argument
4376 if (ahash) { in get_mac()
4377 *ahash = crypto_alloc_ahash(a->alg_string, 0, CRYPTO_ALG_ALLOCATES_MEMORY); in get_mac()
4378 if (IS_ERR(*ahash)) { in get_mac()
4380 r = PTR_ERR(*ahash); in get_mac()
4381 *ahash = NULL; in get_mac()
4385 r = crypto_ahash_setkey(*ahash, a->key, a->key_size); in get_mac()
4390 } else if (crypto_ahash_get_flags(*ahash) & CRYPTO_TFM_NEED_KEY) { in get_mac()
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt2388 If left unspecified, ahash usage is disabled.
2390 ahash performance varies for different data sizes on
2398 ahash performance varies for different chunk sizes on