| /linux/net/ipv4/ |
| H A D | ah4.c | 25 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/net/ipv6/ |
| H A D | ah6.c | 77 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument 82 len = size + crypto_ahash_digestsize(ahash); in ah_alloc_tmp() 86 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp() 109 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument 114 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req() 117 ahash_request_set_tfm(req, ahash); in ah_tmp_req() 122 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument 126 crypto_ahash_reqsize(ahash), in ah_req_sg() 347 struct crypto_ahash *ahash; in ah6_output() local 360 ahash = ahp->ahash; in ah6_output() [all …]
|
| /linux/drivers/crypto/inside-secure/eip93/ |
| H A D | eip93-hash.c | 24 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in eip93_hash_free_data_blocks() local 25 struct eip93_hash_ctx *ctx = crypto_ahash_ctx(ahash); in eip93_hash_free_data_blocks() 46 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in eip93_hash_free_sa_record() local 47 struct eip93_hash_ctx *ctx = crypto_ahash_ctx(ahash); in eip93_hash_free_sa_record() 62 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in eip93_hash_handle_result() local 63 struct eip93_hash_ctx *ctx = crypto_ahash_ctx(ahash); in eip93_hash_handle_result() 64 int digestsize = crypto_ahash_digestsize(ahash); in eip93_hash_handle_result() 161 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in __eip93_hash_init() local 162 struct eip93_hash_ctx *ctx = crypto_ahash_ctx(ahash); in __eip93_hash_init() 166 digestsize = crypto_ahash_digestsize(ahash); in __eip93_hash_init() [all …]
|
| /linux/drivers/crypto/caam/ |
| H A D | caamhash.c | 205 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 D | caamalg_qi2.c | 3139 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 3141 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_set_sh_desc() 3142 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 3311 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 3314 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_setkey() 3315 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 3316 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 3360 ret = ahash_set_sh_desc(ahash); in ahash_setkey() 3404 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local 3407 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_done() [all …]
|
| H A D | Kconfig | 133 Selecting this will offload ahash for users of the
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_crypto.c | 589 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 D | sha.h | 63 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 D | sha.c | 40 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done() local 45 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done() 285 tmpl->alg.ahash.halg.digestsize); in qce_ahash_final() 322 tmpl->alg.ahash.halg.digestsize); in qce_ahash_digest() 395 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init() local 398 crypto_ahash_set_reqsize_dma(ahash, sizeof(struct qce_sha_reqctx)); in qce_ahash_cra_init() 466 alg = &tmpl->alg.ahash; in qce_ahash_register_one() 518 crypto_unregister_ahash(&tmpl->alg.ahash); in qce_ahash_unregister()
|
| H A D | common.h | 91 struct ahash_alg ahash; member
|
| H A D | common.c | 150 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/drivers/crypto/inside-secure/ |
| H A D | safexcel_hash.c | 233 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result() local 235 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_req_result() 276 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 281 crypto_ahash_digestsize(ahash); in safexcel_handle_req_result() 295 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result() 522 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result() local 523 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_inv_result() 624 EIP197_REQUEST_ON_STACK(req, ahash, EIP197_AHASH_REQ_SIZE); in safexcel_ahash_exit_inv() 921 struct safexcel_alg_template, alg.ahash); in safexcel_ahash_cra_init() 982 .alg.ahash = { [all …]
|
| H A D | safexcel.c | 1276 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 D | safexcel.h | 883 struct ahash_alg ahash; member
|
| /linux/include/net/ |
| H A D | ah.h | 13 struct crypto_ahash *ahash; member
|
| /linux/drivers/crypto/ |
| H A D | sa2ul.c | 159 struct ahash_alg ahash; member 1420 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run() 1503 ctx->fallback.ahash = in sa_sha_cra_init_alg() 1505 if (IS_ERR(ctx->fallback.ahash)) { in sa_sha_cra_init_alg() 1508 return PTR_ERR(ctx->fallback.ahash); in sa_sha_cra_init_alg() 1518 crypto_ahash_reqsize(ctx->fallback.ahash)); in sa_sha_cra_init_alg() 1537 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init() 1580 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_import() 1657 crypto_free_ahash(ctx->fallback.ahash); in sa_sha_cra_exit() 2033 .alg.ahash = { [all …]
|
| H A D | sa2ul.h | 319 struct crypto_ahash *ahash; member
|
| H A D | Kconfig | 781 ahash, and aead algorithms with the kernel cryptographic API.
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-hash.c | 47 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()
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-crypto-sha.c | 316 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 D | ccp-crypto-aes-cmac.c | 338 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/bcm/ |
| H A D | cipher.c | 654 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_req() local 655 struct crypto_tfm *tfm = crypto_ahash_tfm(ahash); in handle_ahash_req() 896 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in spu_hmac_outer_hash() local 898 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in spu_hmac_outer_hash() 995 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in handle_ahash_resp() local 997 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in handle_ahash_resp() 2246 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 2249 struct iproc_ctx_s *ctx = crypto_ahash_ctx(ahash); in ahash_setkey() 2252 __func__, ahash, key, keylen); in ahash_setkey() 2310 static int ahash_hmac_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_hmac_setkey() argument [all …]
|
| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-aes.c | 1782 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/drivers/md/ |
| H A D | dm-integrity.c | 4364 static int get_mac(struct crypto_shash **shash, struct crypto_ahash **ahash, in get_mac() argument 4389 if (ahash) { in get_mac() 4390 *ahash = crypto_alloc_ahash(a->alg_string, 0, CRYPTO_ALG_ALLOCATES_MEMORY); in get_mac() 4391 if (IS_ERR(*ahash)) { in get_mac() 4393 r = PTR_ERR(*ahash); in get_mac() 4394 *ahash = NULL; in get_mac() 4398 r = crypto_ahash_setkey(*ahash, a->key, a->key_size); in get_mac() 4403 } else if (crypto_ahash_get_flags(*ahash) & CRYPTO_TFM_NEED_KEY) { in get_mac()
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_ctl.c | 318 __u32 ahash; in ip_vs_svc_hashkey() local 325 ahash = ntohl(addr_fold); in ip_vs_svc_hashkey() 326 ahash ^= ((size_t) ipvs >> 8); in ip_vs_svc_hashkey() 328 return (proto ^ ahash ^ (porth >> IP_VS_SVC_TAB_BITS) ^ porth) & in ip_vs_svc_hashkey()
|