diff options
author | Pauli <pauli@openssl.org> | 2022-09-26 07:20:14 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-11-01 22:42:46 +0100 |
commit | 7c8187d43d043c6a66559ed341ff1e01b8711093 (patch) | |
tree | bdea35ee96714c54f48e8247699562d4cd4bf47e /crypto/evp | |
parent | Dependabot configuration is not a workflow (diff) | |
download | openssl-7c8187d43d043c6a66559ed341ff1e01b8711093.tar.xz openssl-7c8187d43d043c6a66559ed341ff1e01b8711093.zip |
rand: add set0 calls for the private and public DRBGs
The FIPS 140-3 DSA and ECDSA tests need to be known answer tests which means
the entropy needs to be cooked. This permits this.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/19510)
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/evp_rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/evp_rand.c b/crypto/evp/evp_rand.c index 40048ed603..ed7f213bd8 100644 --- a/crypto/evp/evp_rand.c +++ b/crypto/evp/evp_rand.c @@ -320,7 +320,7 @@ int EVP_RAND_get_params(EVP_RAND *rand, OSSL_PARAM params[]) return 1; } -static int evp_rand_ctx_up_ref(EVP_RAND_CTX *ctx) +int EVP_RAND_CTX_up_ref(EVP_RAND_CTX *ctx) { int ref = 0; @@ -347,7 +347,7 @@ EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent) return NULL; } if (parent != NULL) { - if (!evp_rand_ctx_up_ref(parent)) { + if (!EVP_RAND_CTX_up_ref(parent)) { ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR); CRYPTO_THREAD_lock_free(ctx->refcnt_lock); OPENSSL_free(ctx); |