/linux/drivers/crypto/caam/ |
H A D | caamhash.c | 208 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc() local 238 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_FINALIZE, digestsize, in ahash_set_sh_desc() 249 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INITFINAL, digestsize, in ahash_set_sh_desc() 264 int digestsize = crypto_ahash_digestsize(ahash); in axcbc_set_sh_desc() local 281 digestsize, ctx->ctx_len); in axcbc_set_sh_desc() 304 digestsize, ctx->ctx_len); in axcbc_set_sh_desc() 316 int digestsize = crypto_ahash_digestsize(ahash); in acmac_set_sh_desc() local 333 digestsize, ctx->ctx_len); in acmac_set_sh_desc() 353 digestsize, ctx->ctx_len); in acmac_set_sh_desc() 365 u32 digestsize) in hash_digest_key() argument [all …]
|
H A D | caamhash_desc.c | 29 int digestsize, int ctx_len, bool import_ctx, int era) in cnstr_shdsc_ahash() argument 73 append_seq_store(desc, digestsize, LDST_CLASS_2_CCB | in cnstr_shdsc_ahash() 88 int digestsize, int ctx_len) in cnstr_shdsc_sk_hash() argument 134 append_seq_store(desc, digestsize, LDST_CLASS_1_CCB | in cnstr_shdsc_sk_hash()
|
H A D | caamhash_desc.h | 25 int digestsize, int ctx_len, bool import_ctx, int era); 28 int digestsize, int ctx_len);
|
/linux/drivers/crypto/qce/ |
H A D | sha.c | 45 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done() local 56 memcpy(rctx->digest, result->auth_iv, digestsize); in qce_ahash_done() 58 memcpy(req->result, result->auth_iv, digestsize); in qce_ahash_done() 285 tmpl->alg.ahash.halg.digestsize); in qce_ahash_final() 322 tmpl->alg.ahash.halg.digestsize); in qce_ahash_digest() 332 unsigned int digestsize = crypto_ahash_digestsize(tfm); in qce_ahash_hmac_setkey() local 351 if (digestsize == SHA1_DIGEST_SIZE) in qce_ahash_hmac_setkey() 353 else if (digestsize == SHA256_DIGEST_SIZE) in qce_ahash_hmac_setkey() 407 unsigned int digestsize; member 418 .digestsize = SHA1_DIGEST_SIZE, [all …]
|
/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-hash.c | 51 int digestsize, i; in sun8i_ss_hmac_setkey() local 55 digestsize = crypto_ahash_digestsize(ahash); in sun8i_ss_hmac_setkey() 61 tfmctx->keylen = digestsize; in sun8i_ss_hmac_setkey() 484 int nr_sgs, err, digestsize; in sun8i_ss_hash_run() local 501 digestsize = crypto_ahash_digestsize(tfm); in sun8i_ss_hash_run() 502 if (digestsize == SHA224_DIGEST_SIZE) in sun8i_ss_hash_run() 503 digestsize = SHA256_DIGEST_SIZE; in sun8i_ss_hash_run() 527 addr_res = dma_map_single(ss->dev, result, digestsize, DMA_FROM_DEVICE); in sun8i_ss_hash_run() 549 rctx->t_dst[i].len = digestsize / 4; in sun8i_ss_hash_run() 588 rctx->t_dst[0].len = digestsize / 4; in sun8i_ss_hash_run() [all …]
|
/linux/drivers/crypto/bcm/ |
H A D | cipher.c | 527 u8 rx_frag_num, unsigned int digestsize, in spu_ahash_rx_sg_create() argument 545 sg_set_buf(sg++, rctx->msg_buf.digest, digestsize); in spu_ahash_rx_sg_create() 684 unsigned int digestsize; in handle_ahash_req() local 777 digestsize = spu->spu_digest_size(ctx->digestsize, ctx->auth.alg, in handle_ahash_req() 779 hash_parms.digestsize = digestsize; in handle_ahash_req() 799 hash_parms.key_len = digestsize; in handle_ahash_req() 865 err = spu_ahash_rx_sg_create(mssg, rctx, rx_frag_num, digestsize, in handle_ahash_req() 907 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash() 911 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash() 915 req->result, ctx->digestsize, NULL, 0); in spu_hmac_outer_hash() [all …]
|
H A D | spu.c | 557 u32 digestsize = alg_digest_size; in spum_digest_size() local 564 digestsize = SHA256_DIGEST_SIZE; in spum_digest_size() 566 digestsize = SHA512_DIGEST_SIZE; in spum_digest_size() 568 return digestsize; in spum_digest_size() 630 cipher_len -= hash_parms->digestsize; in spum_create_request() 633 auth_len -= hash_parms->digestsize; in spum_create_request() 653 flow_log(" digestsize: %u\n", hash_parms->digestsize); in spum_create_request() 725 if (hash_parms->digestsize == 64) in spum_create_request() 729 (hash_parms->digestsize / 4) << ICV_SIZE_SHIFT; in spum_create_request() 768 data_size -= hash_parms->digestsize; in spum_create_request() [all …]
|
/linux/arch/x86/crypto/ |
H A D | sha256_ssse3_glue.c | 121 .digestsize = SHA256_DIGEST_SIZE, 136 .digestsize = SHA224_DIGEST_SIZE, 194 .digestsize = SHA256_DIGEST_SIZE, 209 .digestsize = SHA224_DIGEST_SIZE, 278 .digestsize = SHA256_DIGEST_SIZE, 293 .digestsize = SHA224_DIGEST_SIZE, 361 .digestsize = SHA256_DIGEST_SIZE, 376 .digestsize = SHA224_DIGEST_SIZE,
|
H A D | sha512_ssse3_glue.c | 101 .digestsize = SHA512_DIGEST_SIZE, 115 .digestsize = SHA384_DIGEST_SIZE, 177 .digestsize = SHA512_DIGEST_SIZE, 191 .digestsize = SHA384_DIGEST_SIZE, 243 .digestsize = SHA512_DIGEST_SIZE, 257 .digestsize = SHA384_DIGEST_SIZE,
|
H A D | sha1_ssse3_glue.c | 100 .digestsize = SHA1_DIGEST_SIZE, 149 .digestsize = SHA1_DIGEST_SIZE, 231 .digestsize = SHA1_DIGEST_SIZE, 281 .digestsize = SHA1_DIGEST_SIZE,
|
/linux/drivers/crypto/ccree/ |
H A D | cc_hash.c | 118 unsigned int digestsize) in cc_map_result() argument 122 digestsize, DMA_BIDIRECTIONAL); in cc_map_result() 125 digestsize); in cc_map_result() 129 digestsize, state->digest_result_buff, in cc_map_result() 270 unsigned int digestsize, u8 *result) in cc_unmap_result() argument 273 dma_unmap_single(dev, state->digest_result_dma_addr, digestsize, in cc_unmap_result() 277 &state->digest_result_dma_addr, digestsize); in cc_unmap_result() 278 memcpy(result, state->digest_result_buff, digestsize); in cc_unmap_result() 307 u32 digestsize = crypto_ahash_digestsize(tfm); in cc_digest_complete() local 314 cc_unmap_result(dev, state, digestsize, req->result); in cc_digest_complete() [all …]
|
/linux/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-hash.c | 350 int digestsize; in sun8i_ce_hash_run() local 358 digestsize = algt->alg.hash.base.halg.digestsize; in sun8i_ce_hash_run() 359 if (digestsize == SHA224_DIGEST_SIZE) in sun8i_ce_hash_run() 360 digestsize = SHA256_DIGEST_SIZE; in sun8i_ce_hash_run() 361 if (digestsize == SHA384_DIGEST_SIZE) in sun8i_ce_hash_run() 362 digestsize = SHA512_DIGEST_SIZE; in sun8i_ce_hash_run() 372 result = kzalloc(digestsize, GFP_KERNEL | GFP_DMA); in sun8i_ce_hash_run() 416 addr_res = dma_map_single(ce->dev, result, digestsize, DMA_FROM_DEVICE); in sun8i_ce_hash_run() 418 cet->t_dst[0].len = cpu_to_le32(digestsize / 4); in sun8i_ce_hash_run() 467 dma_unmap_single(ce->dev, addr_res, digestsize, DMA_FROM_DEVICE); in sun8i_ce_hash_run() [all …]
|
/linux/arch/arm64/crypto/ |
H A D | sha3-ce-glue.c | 110 .digestsize = SHA3_224_DIGEST_SIZE, 121 .digestsize = SHA3_256_DIGEST_SIZE, 132 .digestsize = SHA3_384_DIGEST_SIZE, 143 .digestsize = SHA3_512_DIGEST_SIZE,
|
H A D | sha256-glue.c | 67 .digestsize = SHA256_DIGEST_SIZE, 79 .digestsize = SHA224_DIGEST_SIZE, 147 .digestsize = SHA256_DIGEST_SIZE, 159 .digestsize = SHA224_DIGEST_SIZE,
|
H A D | sha512-glue.c | 54 .digestsize = SHA512_DIGEST_SIZE, 66 .digestsize = SHA384_DIGEST_SIZE,
|
/linux/drivers/crypto/starfive/ |
H A D | jh7110-hash.c | 457 unsigned int digestsize = crypto_ahash_digestsize(hash); in starfive_hash_setkey() local 469 ctx->keylen = digestsize; in starfive_hash_setkey() 471 switch (digestsize) { in starfive_hash_setkey() 566 .digestsize = SHA224_DIGEST_SIZE, 595 .digestsize = SHA224_DIGEST_SIZE, 623 .digestsize = SHA256_DIGEST_SIZE, 652 .digestsize = SHA256_DIGEST_SIZE, 680 .digestsize = SHA384_DIGEST_SIZE, 709 .digestsize = SHA384_DIGEST_SIZE, 737 .digestsize = SHA512_DIGEST_SIZE, [all …]
|
/linux/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-hcu-core.c | 750 unsigned int digestsize = crypto_ahash_digestsize(tfm); in kmb_ocs_hcu_setkey() local 773 switch (digestsize) { in kmb_ocs_hcu_setkey() 813 ctx->key_len = digestsize; in kmb_ocs_hcu_setkey() 892 .digestsize = SHA224_DIGEST_SIZE, 918 .digestsize = SHA224_DIGEST_SIZE, 945 .digestsize = SHA256_DIGEST_SIZE, 971 .digestsize = SHA256_DIGEST_SIZE, 997 .digestsize = SM3_DIGEST_SIZE, 1023 .digestsize = SM3_DIGEST_SIZE, 1049 .digestsize = SHA384_DIGEST_SIZE, [all …]
|
/linux/drivers/crypto/tegra/ |
H A D | tegra-se-hash.c | 667 .halg.digestsize = SHA1_DIGEST_SIZE, 692 .halg.digestsize = SHA224_DIGEST_SIZE, 717 .halg.digestsize = SHA256_DIGEST_SIZE, 742 .halg.digestsize = SHA384_DIGEST_SIZE, 767 .halg.digestsize = SHA512_DIGEST_SIZE, 792 .halg.digestsize = SHA3_224_DIGEST_SIZE, 817 .halg.digestsize = SHA3_256_DIGEST_SIZE, 842 .halg.digestsize = SHA3_384_DIGEST_SIZE, 867 .halg.digestsize = SHA3_512_DIGEST_SIZE, 894 .halg.digestsize = SHA224_DIGEST_SIZE, [all …]
|
/linux/arch/arm/crypto/ |
H A D | sha512-neon-glue.c | 69 .digestsize = SHA384_DIGEST_SIZE, 84 .digestsize = SHA512_DIGEST_SIZE,
|
H A D | sha256_neon_glue.c | 65 .digestsize = SHA256_DIGEST_SIZE, 79 .digestsize = SHA224_DIGEST_SIZE,
|
H A D | sha256_glue.c | 55 .digestsize = SHA256_DIGEST_SIZE, 69 .digestsize = SHA224_DIGEST_SIZE,
|
H A D | sha512-glue.c | 56 .digestsize = SHA384_DIGEST_SIZE, 70 .digestsize = SHA512_DIGEST_SIZE,
|
H A D | sha2-ce-glue.c | 74 .digestsize = SHA224_DIGEST_SIZE, 88 .digestsize = SHA256_DIGEST_SIZE,
|
/linux/crypto/ |
H A D | sha256_generic.c | 62 .digestsize = SHA256_DIGEST_SIZE, 76 .digestsize = SHA224_DIGEST_SIZE,
|
/linux/arch/s390/crypto/ |
H A D | hmac_s390.c | 99 u8 *digest, unsigned int digestsize) in hash_key() argument 124 switch (digestsize) { in hash_key() 149 memcpy(digest, ¶m, digestsize); in hash_key() 283 .digestsize = SHA##x##_DIGEST_SIZE, \
|