1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-04-27 22:32:31 +02:00

ima-evm-utils: Log hash_algo with hash value in verbose mode

It's useful to know not just a hash value but also which algorithm is
used.

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-03 18:50:15 +03:00 committed by Mimi Zohar
parent 5f126d1d25
commit 30add9c2eb

View File

@ -460,7 +460,7 @@ int verify_hash_v2(const char *file, const unsigned char *hash, int size,
const char *st;
if (params.verbose > LOG_INFO) {
log_info("hash: ");
log_info("hash(%s): ", params.hash_algo);
log_dump(hash, size);
}
@ -880,7 +880,7 @@ int sign_hash_v2(const char *algo, const unsigned char *hash, int size, const ch
return -1;
}
log_info("hash: ");
log_info("hash(%s): ", params.hash_algo);
log_dump(hash, size);
pkey = read_priv_pkey(keyfile, params.keypass);