diff options
author | Pauli <ppzgs1@gmail.com> | 2021-02-26 10:52:13 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-28 17:25:49 +1000 |
commit | 671ff5c74ec135b7c419895983d67c63013ffa9e (patch) | |
tree | 72dd2853a39b64c3c263d24c4f9bf6c8c1dfda49 /crypto/evp/evp_rand.c | |
parent | 6980e36a2aab7a916e8bdcdb70ee03ebaa1bc1cf (diff) |
evp: add params argument to EVP_RAND_instantiate()
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14310)
Diffstat (limited to 'crypto/evp/evp_rand.c')
-rw-r--r-- | crypto/evp/evp_rand.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/evp/evp_rand.c b/crypto/evp/evp_rand.c index bc8c24b3b5..aea9d72ab7 100644 --- a/crypto/evp/evp_rand.c +++ b/crypto/evp/evp_rand.c @@ -487,22 +487,23 @@ int EVP_RAND_names_do_all(const EVP_RAND *rand, static int evp_rand_instantiate_locked (EVP_RAND_CTX *ctx, unsigned int strength, int prediction_resistance, - const unsigned char *pstr, size_t pstr_len) + const unsigned char *pstr, size_t pstr_len, const OSSL_PARAM params[]) { return ctx->meth->instantiate(ctx->data, strength, prediction_resistance, - pstr, pstr_len); + pstr, pstr_len, params); } int EVP_RAND_instantiate(EVP_RAND_CTX *ctx, unsigned int strength, int prediction_resistance, - const unsigned char *pstr, size_t pstr_len) + const unsigned char *pstr, size_t pstr_len, + const OSSL_PARAM params[]) { int res; if (!evp_rand_lock(ctx)) return 0; res = evp_rand_instantiate_locked(ctx, strength, prediction_resistance, - pstr, pstr_len); + pstr, pstr_len, params); evp_rand_unlock(ctx); return res; } |