/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 52 u32 digest; member 123 if (unlikely(req->digest == CONTEXT_CONTROL_DIGEST_XCM)) { in safexcel_context_control() 146 cdesc->control_data.control0 |= req->digest | in safexcel_context_control() 152 cdesc->control_data.control0 |= req->digest | in safexcel_context_control() 166 if ((req->digest == CONTEXT_CONTROL_DIGEST_PRECOMPUTED) || in safexcel_context_control() 182 if ((req->digest == CONTEXT_CONTROL_DIGEST_PRECOMPUTED) || in safexcel_context_control() 200 req->digest = CONTEXT_CONTROL_DIGEST_PRECOMPUTED; in safexcel_context_control() 271 (sreq->digest != CONTEXT_CONTROL_DIGEST_HMAC)) { in safexcel_handle_req_result() 292 if (unlikely(sreq->digest == CONTEXT_CONTROL_DIGEST_XCM && in safexcel_handle_req_result() 804 } else if (unlikely(req->digest == CONTEXT_CONTROL_DIGEST_XCM && in safexcel_ahash_final() [all …]
|
/drivers/char/tpm/ |
D | tpm2-cmd.c | 149 u8 digest[]; member 162 struct tpm_digest *digest, u16 *digest_size_ptr) in tpm2_pcr_read() argument 177 chip->allocated_banks[i].alg_id != digest->alg_id; i++) in tpm2_pcr_read() 193 tpm_buf_append_u16(&buf, digest->alg_id); in tpm2_pcr_read() 204 if (digest_size > sizeof(digest->digest) || in tpm2_pcr_read() 213 memcpy(digest->digest, out->digest, digest_size); in tpm2_pcr_read() 261 tpm_buf_append(&buf, (const unsigned char *)&digests[i].digest, in tpm2_pcr_extend() 519 struct tpm_digest digest = { .alg_id = bank->alg_id }; in tpm2_init_bank_info() local 539 return tpm2_pcr_read(chip, 0, &digest, &bank->digest_size); in tpm2_init_bank_info()
|
D | tpm-sysfs.c | 86 u8 digest[TPM_DIGEST_SIZE]; in pcrs_show() local 103 if (tpm1_pcr_read(chip, i, digest)) { in pcrs_show() 109 str += sprintf(str, "%02X ", digest[j]); in pcrs_show() 354 struct tpm_digest digest; in pcr_value_show() local 367 digest.alg_id = ha->alg_id; in pcr_value_show() 368 rc = tpm_pcr_read(chip, ha->pcr, &digest); in pcr_value_show() 372 str += sprintf(str, "%02X", digest.digest[i]); in pcr_value_show()
|
D | tpm-interface.c | 285 struct tpm_digest *digest) in tpm_pcr_read() argument 294 rc = tpm2_pcr_read(chip, pcr_idx, digest, NULL); in tpm_pcr_read() 296 rc = tpm1_pcr_read(chip, pcr_idx, digest->digest); in tpm_pcr_read() 336 rc = tpm1_pcr_extend(chip, pcr_idx, digests[0].digest, in tpm_pcr_extend()
|
/drivers/block/drbd/ |
D | drbd_worker.c | 287 void drbd_csum_ee(struct crypto_shash *tfm, struct drbd_peer_request *peer_req, void *digest) in drbd_csum_ee() argument 312 crypto_shash_final(desc, digest); in drbd_csum_ee() 316 void drbd_csum_bio(struct crypto_shash *tfm, struct bio *bio, void *digest) in drbd_csum_bio() argument 338 crypto_shash_final(desc, digest); in drbd_csum_bio() 349 void *digest; in w_e_send_csum() local 359 digest = kmalloc(digest_size, GFP_NOIO); in w_e_send_csum() 360 if (digest) { in w_e_send_csum() 363 drbd_csum_ee(peer_device->connection->csums_tfm, peer_req, digest); in w_e_send_csum() 373 digest, digest_size, in w_e_send_csum() 375 kfree(digest); in w_e_send_csum() [all …]
|
/drivers/target/iscsi/ |
D | iscsi_target_auth.c | 220 unsigned char *digest = NULL; in chap_server_compute_hash() local 231 digest = kzalloc(chap->digest_size, GFP_KERNEL); in chap_server_compute_hash() 232 if (!digest) { in chap_server_compute_hash() 465 digest); in chap_server_compute_hash() 480 bin2hex(response, digest, chap->digest_size); in chap_server_compute_hash() 492 kfree(digest); in chap_server_compute_hash()
|
/drivers/crypto/qce/ |
D | sha.c | 56 memcpy(rctx->digest, result->auth_iv, digestsize); in qce_ahash_done() 141 memcpy(rctx->digest, std_iv, sizeof(rctx->digest)); in qce_ahash_init() 152 memcpy(export_state->partial_digest, rctx->digest, sizeof(rctx->digest)); in qce_ahash_export() 176 memcpy(rctx->digest, import_state->partial_digest, sizeof(rctx->digest)); in qce_ahash_import() 468 alg->digest = qce_ahash_digest; in qce_ahash_register_one()
|
D | sha.h | 45 u8 digest[QCE_SHA_MAX_DIGESTSIZE]; member
|
/drivers/md/ |
D | dm-era-target.c | 668 struct digest { struct 675 int (*step)(struct era_metadata *, struct digest *); argument 679 struct digest *d); 682 struct digest *d) in metadata_digest_remove_writeset() 701 struct digest *d) in metadata_digest_transcribe_writeset() 735 struct digest *d) in metadata_digest_lookup_writeset() 776 static int metadata_digest_start(struct era_metadata *md, struct digest *d) in metadata_digest_start() 1177 struct digest digest; member 1230 if (!era->digest.step) in process_old_eras() 1233 r = era->digest.step(era->md, &era->digest); in process_old_eras() [all …]
|
D | dm-verity.h | 121 const u8 *data, size_t len, u8 *digest); 124 sector_t block, u8 *digest, bool *is_zero);
|
D | dm-verity-target.c | 154 u8 *digest, struct crypto_wait *wait) in verity_hash_final() argument 167 ahash_request_set_crypt(req, NULL, digest, 0); in verity_hash_final() 174 const u8 *data, size_t len, u8 *digest) in verity_hash() argument 187 r = verity_hash_final(v, req, digest, &wait); in verity_hash() 338 sector_t block, u8 *digest, bool *is_zero) in verity_hash_for_block() argument 350 r = verity_verify_level(v, io, block, 0, true, digest); in verity_hash_for_block() 355 memcpy(digest, v->root_digest, v->digest_size); in verity_hash_for_block() 358 r = verity_verify_level(v, io, block, i, false, digest); in verity_hash_for_block() 364 *is_zero = !memcmp(v->zero_digest, digest, v->digest_size); in verity_hash_for_block()
|
D | dm-ima.c | 189 u8 *digest = NULL; in dm_ima_measure_on_table_load() local 221 digest = dm_ima_alloc(digest_size, GFP_KERNEL, noio); in dm_ima_measure_on_table_load() 222 if (!digest) in dm_ima_measure_on_table_load() 328 r = crypto_shash_final(shash, digest); in dm_ima_measure_on_table_load() 340 snprintf((digest_buf + hash_alg_prefix_len + (i*2)), 3, "%02x", digest[i]); in dm_ima_measure_on_table_load() 361 kfree(digest); in dm_ima_measure_on_table_load()
|
/drivers/crypto/ux500/hash/ |
D | hash_core.c | 862 u8 digest[SHA256_DIGEST_SIZE]; in hash_dma_final() local 944 hash_get_digest(device_data, digest, ctx->config.algorithm); in hash_dma_final() 945 memcpy(req->result, digest, ctx->digestsize); in hash_dma_final() 969 u8 digest[SHA256_DIGEST_SIZE]; in hash_hw_final() local 1047 hash_get_digest(device_data, digest, ctx->config.algorithm); in hash_hw_final() 1048 memcpy(req->result, digest, ctx->digestsize); in hash_hw_final() 1270 u8 *digest, int algorithm) in hash_get_digest() argument 1287 __func__, (unsigned long)digest); in hash_get_digest() 1292 digest[count * 4] = (u8) ((temp_hx_val >> 24) & 0xFF); in hash_get_digest() 1293 digest[count * 4 + 1] = (u8) ((temp_hx_val >> 16) & 0xFF); in hash_get_digest() [all …]
|
/drivers/crypto/keembay/ |
D | keembay-ocs-hcu-core.c | 893 .digest = kmb_ocs_hcu_digest, 917 .digest = kmb_ocs_hcu_digest, 944 .digest = kmb_ocs_hcu_digest, 968 .digest = kmb_ocs_hcu_digest, 994 .digest = kmb_ocs_hcu_digest, 1018 .digest = kmb_ocs_hcu_digest, 1044 .digest = kmb_ocs_hcu_digest, 1068 .digest = kmb_ocs_hcu_digest, 1094 .digest = kmb_ocs_hcu_digest, 1118 .digest = kmb_ocs_hcu_digest,
|
D | ocs-hcu.h | 58 u8 digest[SHA512_DIGEST_SIZE]; member
|
/drivers/crypto/stm32/ |
D | stm32-hash.c | 129 u8 digest[SHA256_DIGEST_SIZE] __aligned(sizeof(u32)); 753 __be32 *hash = (void *)rctx->digest; in stm32_hash_copy_hash() 785 memcpy(req->result, rctx->digest, rctx->digcnt); in stm32_hash_finish() 1130 .digest = stm32_hash_digest, 1155 .digest = stm32_hash_digest, 1181 .digest = stm32_hash_digest, 1206 .digest = stm32_hash_digest, 1235 .digest = stm32_hash_digest, 1260 .digest = stm32_hash_digest, 1286 .digest = stm32_hash_digest, [all …]
|
/drivers/crypto/ |
D | atmel-sha.c | 94 u8 digest[SHA512_DIGEST_SIZE] __aligned(sizeof(u32)); 523 const u32 *hash = (const u32 *)ctx->digest; in atmel_sha_write_ctrl() 925 u32 *hash = (u32 *)ctx->digest; in atmel_sha_copy_hash() 963 memcpy(req->result, ctx->digest, SHA1_DIGEST_SIZE); in atmel_sha_copy_ready_hash() 967 memcpy(req->result, ctx->digest, SHA224_DIGEST_SIZE); in atmel_sha_copy_ready_hash() 971 memcpy(req->result, ctx->digest, SHA256_DIGEST_SIZE); in atmel_sha_copy_ready_hash() 975 memcpy(req->result, ctx->digest, SHA384_DIGEST_SIZE); in atmel_sha_copy_ready_hash() 979 memcpy(req->result, ctx->digest, SHA512_DIGEST_SIZE); in atmel_sha_copy_ready_hash() 1268 alg->digest = atmel_sha_digest; in atmel_sha_alg_init() 1882 memcpy(ctx->digest, hmac->ipad, hs); in atmel_sha_hmac_init_done() [all …]
|
D | omap-sham.c | 149 u8 digest[SHA512_DIGEST_SIZE] OMAP_ALIGNED; member 290 u32 *hash = (u32 *)ctx->digest; in omap_sham_copy_hash_omap2() 329 u32 *in = (u32 *)ctx->digest; in omap_sham_copy_ready_hash() 1432 .digest = omap_sham_digest, 1454 .digest = omap_sham_digest, 1476 .digest = omap_sham_digest, 1500 .digest = omap_sham_digest, 1528 .digest = omap_sham_digest, 1550 .digest = omap_sham_digest, 1572 .digest = omap_sham_digest, [all …]
|
D | img-hash.c | 86 u8 digest[SHA256_DIGEST_SIZE] __aligned(sizeof(u32)); 278 memcpy(req->result, ctx->digest, ctx->digsize); in img_hash_finish() 286 u32 *hash = (u32 *)ctx->digest; in img_hash_copy_hash() 768 .digest = img_hash_digest, 794 .digest = img_hash_digest, 820 .digest = img_hash_digest, 846 .digest = img_hash_digest,
|
D | atmel-authenc.h | 46 u32 *digest, unsigned int digestlen,
|
/drivers/scsi/ |
D | libiscsi_tcp.c | 163 iscsi_tcp_segment_splice_digest(struct iscsi_segment *segment, void *digest) in iscsi_tcp_segment_splice_digest() argument 165 segment->data = digest; in iscsi_tcp_segment_splice_digest() 263 segment->digest, 0); in iscsi_tcp_segment_done() 266 recv ? segment->recv_digest : segment->digest); in iscsi_tcp_segment_done() 315 size_t hdrlen, unsigned char digest[ISCSI_DIGEST_SIZE]) in iscsi_tcp_dgst_header() 320 ahash_request_set_crypt(hash, &sg, digest, hdrlen); in iscsi_tcp_dgst_header() 332 if (memcmp(segment->recv_digest, segment->digest, in iscsi_tcp_dgst_verify() 879 segment->digest); in iscsi_tcp_hdr_recv_done()
|
/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-core.c | 370 .digest = sun8i_ce_hash_digest, 400 .digest = sun8i_ce_hash_digest, 430 .digest = sun8i_ce_hash_digest, 460 .digest = sun8i_ce_hash_digest, 490 .digest = sun8i_ce_hash_digest, 520 .digest = sun8i_ce_hash_digest,
|
/drivers/crypto/rockchip/ |
D | rk3288_crypto_ahash.c | 363 .digest = rk_ahash_digest, 393 .digest = rk_ahash_digest, 423 .digest = rk_ahash_digest,
|
/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-core.c | 299 .digest = sun8i_ss_hash_digest, 329 .digest = sun8i_ss_hash_digest, 359 .digest = sun8i_ss_hash_digest, 389 .digest = sun8i_ss_hash_digest,
|
/drivers/crypto/marvell/cesa/ |
D | hash.c | 941 .digest = mv_cesa_md5_digest, 1012 .digest = mv_cesa_sha1_digest, 1086 .digest = mv_cesa_sha256_digest, 1320 .digest = mv_cesa_ahmac_md5_digest, 1391 .digest = mv_cesa_ahmac_sha1_digest, 1462 .digest = mv_cesa_ahmac_sha256_digest,
|