mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
prov: update RNGs to support modified gettable/settable CTX params
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14240)
This commit is contained in:
parent
90fec26dc6
commit
a3f091fddd
@ -648,7 +648,8 @@ static int drbg_ctr_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
return ossl_drbg_get_ctx_params(drbg, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_ctr_gettable_ctx_params(ossl_unused void *provctx)
|
||||
static const OSSL_PARAM *drbg_ctr_gettable_ctx_params(ossl_unused void *vctx,
|
||||
ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_CIPHER, NULL, 0),
|
||||
@ -718,7 +719,8 @@ static int drbg_ctr_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return ossl_drbg_set_ctx_params(ctx, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_ctr_settable_ctx_params(ossl_unused void *provctx)
|
||||
static const OSSL_PARAM *drbg_ctr_settable_ctx_params(ossl_unused void *vctx,
|
||||
ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
|
||||
|
@ -442,7 +442,8 @@ static int drbg_hash_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
return ossl_drbg_get_ctx_params(drbg, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_hash_gettable_ctx_params(ossl_unused void *p_ctx)
|
||||
static const OSSL_PARAM *drbg_hash_gettable_ctx_params(ossl_unused void *vctx,
|
||||
ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_DIGEST, NULL, 0),
|
||||
@ -487,7 +488,8 @@ static int drbg_hash_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return ossl_drbg_set_ctx_params(ctx, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_hash_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
static const OSSL_PARAM *drbg_hash_settable_ctx_params(ossl_unused void *vctx,
|
||||
ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
|
||||
|
@ -349,7 +349,8 @@ static int drbg_hmac_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
return ossl_drbg_get_ctx_params(drbg, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_hmac_gettable_ctx_params(ossl_unused void *p_ctx)
|
||||
static const OSSL_PARAM *drbg_hmac_gettable_ctx_params(ossl_unused void *vctx,
|
||||
ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_MAC, NULL, 0),
|
||||
@ -400,7 +401,8 @@ static int drbg_hmac_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return ossl_drbg_set_ctx_params(ctx, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_hmac_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
static const OSSL_PARAM *drbg_hmac_settable_ctx_params(ossl_unused void *vctx,
|
||||
ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
|
||||
|
@ -156,7 +156,8 @@ static int seed_src_get_ctx_params(void *vseed, OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *seed_src_gettable_ctx_params(ossl_unused void *provctx)
|
||||
static const OSSL_PARAM *seed_src_gettable_ctx_params(ossl_unused void *vseed,
|
||||
ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_int(OSSL_RAND_PARAM_STATE, NULL),
|
||||
|
@ -163,7 +163,8 @@ static int test_rng_get_ctx_params(void *vtest, OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *test_rng_gettable_ctx_params(ossl_unused void *provctx)
|
||||
static const OSSL_PARAM *test_rng_gettable_ctx_params(ossl_unused void *vtest,
|
||||
ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_int(OSSL_RAND_PARAM_STATE, NULL),
|
||||
@ -212,7 +213,8 @@ static int test_rng_set_ctx_params(void *vtest, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *test_rng_settable_ctx_params(ossl_unused void *provctx)
|
||||
static const OSSL_PARAM *test_rng_settable_ctx_params(ossl_unused void *vtest,
|
||||
ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_RAND_PARAM_TEST_ENTROPY, NULL, 0),
|
||||
|
Loading…
Reference in New Issue
Block a user