Searched hist:"2165477 c0f65d20fdfbdb2ddcd4e0e7fe8f61df5" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/crypto/ |
H A D | hash-glib.c | 2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5 Tue Jul 05 05:45:42 CDT 2016 Daniel P. Berrange <berrange@redhat.com> crypto: use glib as fallback for hash algorithm
GLib >= 2.16 provides GChecksum API which is good enough for md5, sha1, sha256 and sha512. Use this as a final fallback if neither nettle or gcrypt are available. This lets us remove the stub hash impl, and so callers can be sure those 4 algs are always available at compile time. They may still be disabled at runtime, so a check for qcrypto_hash_supports() is still best practice to report good error messages.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|