| /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() 156 struct crypto_ahash *ahash; in ah_output() local 168 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() 352 struct crypto_ahash *ahash; in ah6_output() local 365 ahash = ahp->ahash; in ah6_output() [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 | 3140 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument 3142 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_set_sh_desc() 3143 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() 3312 static int ahash_setkey(struct crypto_ahash *ahash, const u8 *key, in ahash_setkey() argument 3315 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_setkey() 3316 unsigned int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() 3317 unsigned int digestsize = crypto_ahash_digestsize(ahash); in ahash_setkey() 3362 ret = ahash_set_sh_desc(ahash); in ahash_setkey() 3406 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in ahash_done() local 3409 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/drivers/crypto/tegra/ |
| H A D | tegra-se-hash.c | 593 se_alg = container_of(alg, struct tegra_se_alg, alg.ahash.base); in tegra_sha_cra_init() 752 .alg.ahash.op.do_one_request = tegra_sha_do_one_req, 753 .alg.ahash.base = { 777 .alg.ahash.op.do_one_request = tegra_sha_do_one_req, 778 .alg.ahash.base = { 802 .alg.ahash.op.do_one_request = tegra_sha_do_one_req, 803 .alg.ahash.base = { 827 .alg.ahash.op.do_one_request = tegra_sha_do_one_req, 828 .alg.ahash.base = { 852 .alg.ahash.op.do_one_request = tegra_sha_do_one_req, [all …]
|
| H A D | tegra-se-aes.c | 1792 se_alg = container_of(alg, struct tegra_se_alg, alg.ahash.base); in tegra_cmac_cra_init() 1970 .alg.ahash.op.do_one_request = tegra_cmac_do_one_req, 1971 .alg.ahash.base = { 2032 ahash_alg = &tegra_cmac_algs[i].alg.ahash; in tegra_init_aes() 2047 crypto_engine_unregister_ahash(&tegra_cmac_algs[i].alg.ahash); in tegra_init_aes() 2073 crypto_engine_unregister_ahash(&tegra_cmac_algs[i].alg.ahash); in tegra_deinit_aes()
|
| /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 | common.h | 91 struct ahash_alg ahash; member
|
| /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 …]
|
| /linux/include/net/ |
| H A D | ah.h | 13 struct crypto_ahash *ahash; member
|
| /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/ |
| H A D | sa2ul.h | 319 struct crypto_ahash *ahash; member
|
| /linux/drivers/crypto/ccp/ |
| 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 …]
|