summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel P. Berrange2016-07-05 12:45:42 +0200
committerDaniel P. Berrange2016-07-21 11:46:27 +0200
commit2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5 (patch)
tree4661a97d6569cbebc436d81fe521e4c6da7871c9 /scripts
parentcrypto: use /dev/[u]random as a final fallback random source (diff)
downloadqemu-2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5.tar.gz
qemu-2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5.tar.xz
qemu-2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5.zip
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions