utils.crypto: Fix the broken algorithm check in hash_file
Fix the broken algorithm check in the hash_file function, it
should return `None` if the given hash algorithm is unknown.
Signed-off-by: NXu Han <xuhan@redhat.com>
Showing
想要评论请 注册 或 登录