Message ID | 20190623090027.11852-12-vt@altlinux.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v7,01/11] ima-evm-utils: Convert read_pub_key to EVP_PKEY API | expand |
diff --git a/src/libimaevm.c b/src/libimaevm.c index 158b9d1..5bff414 100644 --- a/src/libimaevm.c +++ b/src/libimaevm.c @@ -459,7 +459,7 @@ int verify_hash_v2(const char *file, const unsigned char *hash, int size, const EVP_MD *md; if (params.verbose > LOG_INFO) { - log_info("hash: "); + log_info("hash(%s): ", params.hash_algo); log_dump(hash, size); } @@ -871,7 +871,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);
It's useful to know not just a hash value but also which algorithm is used. Signed-off-by: Vitaly Chikunov <vt@altlinux.org> --- src/libimaevm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)