Lines Matching full:digest
427 ahash_request_set_crypt(req, NULL, hash->digest, 0); in ima_calc_file_hash_atfm()
498 rc = crypto_shash_final(shash, hash->digest); in ima_calc_file_hash_tfm()
617 rc = crypto_shash_final(shash, entry->digests[tfm_idx].digest); in ima_calc_field_array_hash_tfm()
643 /* for unmapped TPM algorithms digest is still a padded SHA1 */ in ima_calc_field_array_hash()
645 memcpy(entry->digests[i].digest, in ima_calc_field_array_hash()
646 entry->digests[ima_sha1_idx].digest, in ima_calc_field_array_hash()
690 ahash_request_set_crypt(req, NULL, hash->digest, 0); in calc_buffer_ahash_atfm()
741 rc = crypto_shash_final(shash, hash->digest); in calc_buffer_shash_tfm()
790 * Knowing which TPM bank is read to calculate the boot_aggregate digest
793 * aggregate digest as stored in the measurement list.
795 static int ima_calc_boot_aggregate_tfm(char *digest, u16 alg_id, in ima_calc_boot_aggregate_tfm() argument
798 struct tpm_digest d = { .alg_id = alg_id, .digest = {0} }; in ima_calc_boot_aggregate_tfm()
812 /* cumulative digest over TPM registers 0-7 */ in ima_calc_boot_aggregate_tfm()
816 rc = crypto_shash_update(shash, d.digest, in ima_calc_boot_aggregate_tfm()
822 * Extend cumulative digest over TPM registers 8-9, which contain in ima_calc_boot_aggregate_tfm()
830 rc = crypto_shash_update(shash, d.digest, in ima_calc_boot_aggregate_tfm()
835 crypto_shash_final(shash, digest); in ima_calc_boot_aggregate_tfm()
872 rc = ima_calc_boot_aggregate_tfm(hash->digest, alg_id, tfm); in ima_calc_boot_aggregate()