| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sha256.c | 23 __u8 *data = NULL, *digests = NULL; in test_sha256() local 30 digests = malloc((MAX_LEN + 1) * SHA256_DIGEST_LENGTH); in test_sha256() 31 if (!ASSERT_NEQ(digests, NULL, "malloc")) in test_sha256() 42 libbpf_sha256(data, i, &digests[i * SHA256_DIGEST_LENGTH]); in test_sha256() 45 libbpf_sha256(digests, (MAX_LEN + 1) * SHA256_DIGEST_LENGTH, in test_sha256() 51 free(digests); in test_sha256()
|
| /linux/security/integrity/ima/ |
| H A D | ima_queue.c | 40 static struct tpm_digest *digests; 119 rc = memcmp(qe->entry->digests[ima_hash_algo_idx].digest, in ima_add_digest_entry() 192 key = ima_hash_key(entry->digests[ima_hash_algo_idx].digest); in ima_add_template_entry() 246 u8 *digest = entry->digests[ima_hash_algo_idx].digest; in ima_reboot_notifier() 247 struct tpm_digest *digests_arg = entry->digests; in ima_reboot_notifier() 283 digests_arg = digests; in ima_init_digests() 489 * accesses only entry->digests, not template_data. If new 503 kfree(qe->entry->digests); 559 digests = kzalloc_objs(*digests, ima_tpm_chi 26 static struct tpm_digest *digests; global() variable [all...] |
| H A D | ima_api.c | 31 kfree(entry->digests); in ima_free_template_entry() 43 struct tpm_digest *digests; in ima_alloc_init_template() local 56 digests = kzalloc_objs(*digests, in ima_alloc_init_template() 59 if (!digests) { in ima_alloc_init_template() 65 (*entry)->digests = digests; in ima_alloc_init_template()
|
| H A D | ima_template.c | 361 struct tpm_digest *digests; in ima_restore_template_data() local 370 digests = kzalloc_objs(*digests, in ima_restore_template_data() 373 if (!digests) { in ima_restore_template_data() 378 (*entry)->digests = digests; in ima_restore_template_data() 385 kfree((*entry)->digests); in ima_restore_template_data()
|
| H A D | ima_crypto.c | 330 rc = crypto_shash_final(shash, entry->digests[tfm_idx].digest); in ima_calc_file_hash_atfm() 345 entry->digests[ima_sha1_idx].alg_id = TPM_ALG_SHA1; in ima_calc_file_hash_atfm() 353 entry->digests[i].alg_id = alg_id; in ima_calc_file_hash_atfm() 358 memcpy(entry->digests[i].digest, in ima_calc_file_hash_atfm() 359 entry->digests[ima_sha1_idx].digest, in ima_calc_file_hash_atfm() 467 * non-SHA1 boot_aggregate digests to avoid ambiguity. in ima_calc_file_hash_tfm()
|
| H A D | ima_fs.c | 194 ima_putc(m, e->digests[algo_idx].digest, in ima_measurements_show() 466 ima_print_digest(m, e->digests[algo_idx].digest, in ima_release_policy()
|
| H A D | ima.h | 60 /* bitset of digests algorithms allowed in the setxattr hook */ 121 struct tpm_digest *digests; 108 struct tpm_digest *digests; global() member
|
| H A D | Kconfig | 72 template permits both larger hash digests and longer
|
| /linux/drivers/char/tpm/ |
| H A D | tpm-interface.c | 373 struct tpm_digest *digests) in tpm_pcr_extend() argument 386 if (digests[i].alg_id != chip->allocated_banks[i].alg_id) { in tpm_pcr_extend() 393 rc = tpm2_pcr_extend(chip, pcr_idx, digests); in tpm_pcr_extend() 397 rc = tpm1_pcr_extend(chip, pcr_idx, digests[0].digest, in tpm_pcr_extend()
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm1.c | 26 static struct tpm_digest *digests; variable 358 return tpm_pcr_extend(chip, pcrnum, digests) ? -EINVAL : 0; in osap() 955 digests = kzalloc_objs(*digests, chip->nr_allocated_banks); in init_digests() 956 if (!digests) in init_digests() 960 digests[i].alg_id = chip->allocated_banks[i].alg_id; in trusted_tpm_init() 981 kfree(digests); in trusted_tpm_exit() 992 kfree(digests);
|
| /linux/net/sunrpc/ |
| H A D | Kconfig | |
| /linux/include/linux/ |
| H A D | tpm_eventlog.h | 114 struct tpm_digest digests[]; member 234 halg_size = sizeof(event->digests[i].alg_id); in __calc_tpm2_event_size()
|
| H A D | tpm.h | 476 struct tpm_digest *digests); 503 struct tpm_digest *digests) in tpm_pcr_extend() argument
|
| /linux/Documentation/scsi/ |
| H A D | cxgb3i.rst | 33 from the host driver, computes and inserts the digests, decomposes 40 the digests, then forwarding the header to the host. The payload data,
|
| /linux/crypto/ |
| H A D | Kconfig | 852 menu "Hashes, digests, and MACs" 861 BLAKE2b is optimized for 64-bit platforms and can produce digests
|
| /linux/Documentation/admin-guide/LSM/ |
| H A D | ipe.rst | 689 enabled files, identified via their fsverity digests.
|