crypto: add cryptographic random byte source
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: NFam Zheng <famz@redhat.com> Reviewed-by: NEric Blake <eblake@redhat.com> Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
Showing
crypto/random-gcrypt.c
0 → 100644
crypto/random-gnutls.c
0 → 100644
crypto/random-stub.c
0 → 100644
include/crypto/random.h
0 → 100644
想要评论请 注册 或 登录