| /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; variable 118 rc = memcmp(qe->entry->digests[ima_hash_algo_idx].digest, in ima_lookup_digest_entry() 191 key = ima_hash_key(entry->digests[ima_hash_algo_idx].digest); in ima_add_digest_entry() 245 u8 *digest = entry->digests[ima_hash_algo_idx].digest; in ima_add_template_entry() 246 struct tpm_digest *digests_arg = entry->digests; in ima_add_template_entry() 282 digests_arg = digests; in ima_add_template_entry() 502 kfree(qe->entry->digests); in ima_queue_delete() 558 digests = kzalloc_objs(*digests, ima_tpm_chip->nr_allocated_banks, in ima_init_digests() 560 if (!digests) in ima_init_digests() 564 digests[i].alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_init_digests() [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 | 76 template permits both larger hash digests and longer
|
| /linux/drivers/char/tpm/ |
| H A D | tpm-interface.c | 365 * @digests: array of tpm_digest structures used to extend PCRs 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()
|
| H A D | tpm2-cmd.c | 169 * @digests: list of pcr banks and corresponding digest values to extend. 174 struct tpm_digest *digests) in tpm2_pcr_extend() argument 211 tpm_buf_append_u16(buf, digests[i].alg_id); in tpm2_pcr_extend() 212 tpm_buf_append(buf, (const unsigned char *)&digests[i].digest, in tpm2_pcr_extend()
|
| H A D | tpm.h | 114 struct tpm_digest *digests);
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm1.c | 25 static struct tpm_digest *digests; variable 353 return tpm_pcr_extend(chip, pcrnum, digests) ? -EINVAL : 0; in pcrlock() 950 digests = kzalloc_objs(*digests, chip->nr_allocated_banks); in init_digests() 951 if (!digests) in init_digests() 955 digests[i].alg_id = chip->allocated_banks[i].alg_id; in init_digests() 976 kfree(digests); in trusted_tpm_init() 987 kfree(digests); in trusted_tpm_exit()
|
| /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 | 252 struct tpm_digest *digests); 279 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/Documentation/ABI/testing/ |
| H A D | ima_policy | 166 Example of a 'measure' rule requiring fs-verity's digests
|
| /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.
|