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: 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:
parent
25fce6e76a
commit
a1b149bda4
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user