/kernel/linux/linux-5.10/fs/verity/ |
D | measure.c | 42 if (get_user(arg.digest_size, &uarg->digest_size)) in fsverity_ioctl_measure() 44 if (arg.digest_size < hash_alg->digest_size) in fsverity_ioctl_measure() 49 arg.digest_size = hash_alg->digest_size; in fsverity_ioctl_measure() 54 if (copy_to_user(uarg->digest, vi->measurement, hash_alg->digest_size)) in fsverity_ioctl_measure()
|
D | signature.c | 64 d = kzalloc(sizeof(*d) + hash_alg->digest_size, GFP_KERNEL); in fsverity_verify_signature() 69 d->digest_size = cpu_to_le16(hash_alg->digest_size); in fsverity_verify_signature() 70 memcpy(d->digest, vi->measurement, hash_alg->digest_size); in fsverity_verify_signature() 72 err = verify_pkcs7_signature(d, sizeof(*d) + hash_alg->digest_size, in fsverity_verify_signature() 94 hash_alg->name, hash_alg->digest_size, vi->measurement); in fsverity_verify_signature()
|
D | open.c | 46 params->digest_size = hash_alg->digest_size; in fsverity_init_merkle_tree_params() 66 if (WARN_ON(!is_power_of_2(params->digest_size))) { in fsverity_init_merkle_tree_params() 70 if (params->block_size < 2 * params->digest_size) { in fsverity_init_merkle_tree_params() 77 params->log_arity = params->log_blocksize - ilog2(params->digest_size); in fsverity_init_merkle_tree_params() 200 memcpy(vi->root_hash, desc->root_hash, vi->tree_params.digest_size); in fsverity_create_info() 210 vi->tree_params.digest_size, vi->measurement); in fsverity_create_info()
|
D | hash_algs.c | 17 .digest_size = SHA256_DIGEST_SIZE, 22 .digest_size = SHA512_DIGEST_SIZE, 85 if (WARN_ON(alg->digest_size != crypto_ahash_digestsize(tfm))) in fsverity_get_hash_alg() 318 BUG_ON(alg->digest_size > FS_VERITY_MAX_DIGEST_SIZE); in fsverity_check_hash_algs() 325 BUG_ON(!is_power_of_2(alg->digest_size)); in fsverity_check_hash_algs()
|
D | fsverity_private.h | 39 unsigned int digest_size; /* digest size in bytes, e.g. 32 for SHA-256 */ member 48 unsigned int digest_size; /* same as hash_alg->digest_size */ member 112 __le16 digest_size; member
|
D | enable.c | 112 pending_size += params->digest_size; in build_merkle_tree_level() 117 if (pending_size + params->digest_size > params->block_size || in build_merkle_tree_level() 164 memset(root_hash, 0, params->digest_size); in build_merkle_tree() 190 memcpy(root_hash, pending_hashes, params->digest_size); in build_merkle_tree() 275 params.hash_alg->name, params.digest_size, desc->root_hash); in enable_verity()
|
/kernel/linux/linux-5.10/drivers/target/iscsi/ |
D | iscsi_target_auth.c | 162 chap->digest_size = MD5_SIGNATURE_SIZE; in chap_server_open() 165 chap->digest_size = SHA1_SIGNATURE_SIZE; in chap_server_open() 168 chap->digest_size = SHA256_SIGNATURE_SIZE; in chap_server_open() 171 chap->digest_size = SHA3_256_SIGNATURE_SIZE; in chap_server_open() 183 chap->challenge_len = chap->digest_size; in chap_server_open() 231 digest = kzalloc(chap->digest_size, GFP_KERNEL); in chap_server_compute_hash() 237 response = kzalloc(chap->digest_size * 2 + 2, GFP_KERNEL); in chap_server_compute_hash() 243 client_digest = kzalloc(chap->digest_size, GFP_KERNEL); in chap_server_compute_hash() 249 server_digest = kzalloc(chap->digest_size, GFP_KERNEL); in chap_server_compute_hash() 302 if (strlen(chap_r) != chap->digest_size * 2) { in chap_server_compute_hash() [all …]
|
D | iscsi_target_auth.h | 40 unsigned int digest_size; member
|
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
D | sha3-ce-glue.c | 38 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha3_update() local 51 sha3_ce_transform(sctx->st, sctx->buf, 1, digest_size); in sha3_update() 67 digest_size); in sha3_update() 84 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha3_final() local 96 sha3_ce_transform(sctx->st, sctx->buf, 1, digest_size); in sha3_final() 99 for (i = 0; i < digest_size / 8; i++) in sha3_final() 102 if (digest_size & 4) in sha3_final()
|
/kernel/linux/linux-5.10/security/integrity/ima/ |
D | ima_modsig.c | 25 u32 digest_size; member 113 &modsig->digest_size, &modsig->hash_algo); in ima_collect_modsig() 123 const u8 **digest, u32 *digest_size) in ima_get_modsig_digest() argument 127 *digest_size = modsig->digest_size; in ima_get_modsig_digest()
|
D | ima_queue.c | 215 u16 digest_size; in ima_init_digests() local 229 digest_size = ima_tpm_chip->allocated_banks[i].digest_size; in ima_init_digests() 234 digest_size = SHA1_DIGEST_SIZE; in ima_init_digests() 236 memset(digests[i].digest, 0xff, digest_size); in ima_init_digests()
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
D | tpm2-cmd.c | 148 __be16 digest_size; member 169 u16 digest_size; in tpm2_pcr_read() local 183 expected_digest_size = chip->allocated_banks[i].digest_size; in tpm2_pcr_read() 203 digest_size = be16_to_cpu(out->digest_size); in tpm2_pcr_read() 204 if (digest_size > sizeof(digest->digest) || in tpm2_pcr_read() 205 (!digest_size_ptr && digest_size != expected_digest_size)) { in tpm2_pcr_read() 211 *digest_size_ptr = digest_size; in tpm2_pcr_read() 213 memcpy(digest->digest, out->digest, digest_size); in tpm2_pcr_read() 262 chip->allocated_banks[i].digest_size); in tpm2_pcr_extend() 523 bank->digest_size = hash_digest_size[crypto_algo]; in tpm2_init_bank_info() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 31 unsigned int digest_size = crypto_ahash_digestsize(tfm); in ccp_sha_complete() local 49 memcpy(req->result, rctx->ctx, digest_size); in ccp_sha_complete() 277 unsigned int digest_size = crypto_shash_digestsize(shash); in ccp_sha_setkey() local 295 key_len = digest_size; in ccp_sha_setkey() 363 u32 digest_size; member 373 .digest_size = SHA1_DIGEST_SIZE, 381 .digest_size = SHA224_DIGEST_SIZE, 389 .digest_size = SHA256_DIGEST_SIZE, 397 .digest_size = SHA384_DIGEST_SIZE, 405 .digest_size = SHA512_DIGEST_SIZE, [all …]
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-verity.h | 54 unsigned digest_size; /* digest size for the current hash algorithm */ member 111 return (u8 *)(io + 1) + v->ahash_reqsize + v->digest_size; in verity_io_want_digest() 117 return verity_io_want_digest(v, io) + v->digest_size; in verity_io_digest_end()
|
D | dm-verity-target.c | 205 *offset = idx * v->digest_size; in verity_hash_at_level() 307 v->digest_size) == 0)) in verity_verify_level() 322 memcpy(want_digest, data, v->digest_size); in verity_verify_level() 352 memcpy(digest, v->root_digest, v->digest_size); in verity_hash_for_block() 361 *is_zero = !memcmp(v->zero_digest, digest, v->digest_size); in verity_hash_for_block() 524 verity_io_want_digest(v, io), v->digest_size) == 0)) { in verity_verify_io() 729 for (x = 0; x < v->digest_size; x++) in verity_status() 871 v->zero_digest = kmalloc(v->digest_size, GFP_KERNEL); in verity_alloc_zero_digest() 1123 v->digest_size = crypto_ahash_digestsize(v->tfm); in verity_ctr() 1124 if ((1 << v->hash_dev_block_bits) < v->digest_size * 2) { in verity_ctr() [all …]
|
/kernel/linux/linux-5.10/include/crypto/ |
D | sha256_base.h | 100 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha256_base_finish() local 105 for (i = 0; digest_size > 0; i++, digest_size -= sizeof(__be32)) in sha256_base_finish()
|
D | sha512_base.h | 121 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha512_base_finish() local 126 for (i = 0; digest_size > 0; i++, digest_size -= sizeof(__be64)) in sha512_base_finish()
|
/kernel/linux/linux-5.10/crypto/asymmetric_keys/ |
D | verify_pefile.c | 323 size_t digest_size, desc_size; in pefile_digest_pe() local 337 digest_size = crypto_shash_digestsize(tfm); in pefile_digest_pe() 339 if (digest_size != ctx->digest_len) { in pefile_digest_pe() 341 digest_size, ctx->digest_len); in pefile_digest_pe() 345 pr_debug("Digest: desc=%zu size=%zu\n", desc_size, digest_size); in pefile_digest_pe() 348 desc = kzalloc(desc_size + digest_size, GFP_KERNEL); in pefile_digest_pe()
|
D | x509_public_key.c | 67 sig->digest_size = crypto_shash_digestsize(tfm); in x509_get_sig_params() 70 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL); in x509_get_sig_params() 84 ret = is_hash_blacklisted(sig->digest, sig->digest_size, "tbs"); in x509_get_sig_params() 87 sig->digest_size, sig->digest); in x509_get_sig_params()
|
D | pkcs7_verify.c | 48 sig->digest_size = crypto_shash_digestsize(tfm); in pkcs7_digest() 51 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL); in pkcs7_digest() 81 if (sinfo->msgdigest_len != sig->digest_size) { in pkcs7_digest() 101 memset(sig->digest, 0, sig->digest_size); in pkcs7_digest() 142 *len = sinfo->sig->digest_size; in pkcs7_get_digest()
|
/kernel/linux/linux-5.10/crypto/ |
D | sha3_generic.c | 164 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in crypto_sha3_init() local 166 sctx->rsiz = 200 - 2 * digest_size; in crypto_sha3_init() 217 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in crypto_sha3_final() local 229 for (i = 0; i < digest_size / 8; i++) in crypto_sha3_final() 232 if (digest_size & 4) in crypto_sha3_final()
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
D | drbd_worker.c | 348 int digest_size; in w_e_send_csum() local 358 digest_size = crypto_shash_digestsize(peer_device->connection->csums_tfm); in w_e_send_csum() 359 digest = kmalloc(digest_size, GFP_NOIO); in w_e_send_csum() 373 digest, digest_size, in w_e_send_csum() 1174 int digest_size; in w_e_end_csum_rs_req() local 1196 digest_size = crypto_shash_digestsize(peer_device->connection->csums_tfm); in w_e_end_csum_rs_req() 1197 D_ASSERT(device, digest_size == di->digest_size); in w_e_end_csum_rs_req() 1198 digest = kmalloc(digest_size, GFP_NOIO); in w_e_end_csum_rs_req() 1202 eq = !memcmp(digest, di->digest, digest_size); in w_e_end_csum_rs_req() 1239 int digest_size; in w_e_end_ov_req() local [all …]
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | fsverity.h | 33 __u16 digest_size; /* input/output */ member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | fsverity.h | 38 __u16 digest_size; member
|
/kernel/linux/linux-5.10/include/linux/ |
D | tpm_eventlog.h | 81 u16 digest_size; member 251 efispecid->digest_sizes[j].digest_size; in __calc_tpm2_event_size()
|