Make sure we use a nonce when a nonce is required
authorKurt Roeckx <kurt@roeckx.be>
Sat, 3 Mar 2018 22:19:03 +0000 (23:19 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 1 Apr 2018 19:11:26 +0000 (21:11 +0200)
commit2a70d65b99e1f2376be705d18bca88703b7e774a
tree644756e297bba6b57f675749e9fc972c968212c7
parent2f6f913e9e02441245c974d7c5abe57f37c0420e
Make sure we use a nonce when a nonce is required

If a nonce is required and the get_nonce callback is NULL, request 50%
more entropy following NIST SP800-90Ar1 section 9.1.

Reviewed-by: Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
GH: #5503
crypto/rand/drbg_lib.c
crypto/rand/rand_lcl.h
crypto/rand/rand_lib.c
test/drbgtest.c