aboutsummaryrefslogtreecommitdiff
path: root/crypto/random-gcrypt.c
AgeCommit message (Collapse)AuthorFilesLines
2016-03-17crypto: add cryptographic random byte sourceDaniel P. Berrange1-0/+33
There are three backend impls provided. The preferred is gnutls, which is backed by nettle in modern distros. The gcrypt impl is provided for cases where QEMU build against gnutls is disabled, but crypto is still desired. No nettle impl is provided, since it is non-trivial to use the nettle APIs for random numbers. Users of nettle should ensure gnutls is enabled for QEMU. Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>