1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-04-28 06:33:36 +02:00

ima-evm-utils: Show used hash algo in verbose mode

This could be useful for users.

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
Vitaly Chikunov 2019-07-25 09:13:06 +03:00 committed by Mimi Zohar
parent 25fce6e76a
commit a1b149bda4
2 changed files with 2 additions and 2 deletions

View File

@ -605,7 +605,7 @@ static int hash_ima(const char *file)
len += offset;
if (params.verbose >= LOG_INFO)
log_info("hash: ");
log_info("hash(%s): ", params.hash_algo);
if (sigdump || params.verbose >= LOG_INFO)
dump(hash, len);

View File

@ -822,7 +822,7 @@ int sign_hash_v1(const char *hashalgo, const unsigned char *hash, int size, cons
return -1;
}
log_info("hash: ");
log_info("hash(%s): ", hashalgo);
log_dump(hash, size);
key = read_priv_key(keyfile, params.keypass);