mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
rand: fix typo in parameter name
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/12608)
This commit is contained in:
parent
378b163e49
commit
82a7b2fb00
@ -638,7 +638,7 @@ static int drbg_ctr_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
static const OSSL_PARAM *drbg_ctr_gettable_ctx_params(void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_DRBG_GETABLE_CTX_COMMON,
|
||||
OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON,
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
return known_gettable_ctx_params;
|
||||
@ -714,7 +714,7 @@ static const OSSL_PARAM *drbg_ctr_settable_ctx_params(void *provctx)
|
||||
*/
|
||||
OSSL_PARAM_int(OSSL_DRBG_PARAM_USE_DF, NULL),
|
||||
#endif
|
||||
OSSL_PARAM_DRBG_SETABLE_CTX_COMMON,
|
||||
OSSL_PARAM_DRBG_SETTABLE_CTX_COMMON,
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
return known_settable_ctx_params;
|
||||
|
@ -435,7 +435,7 @@ static int drbg_hash_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
static const OSSL_PARAM *drbg_hash_gettable_ctx_params(void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_DRBG_GETABLE_CTX_COMMON,
|
||||
OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON,
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
return known_gettable_ctx_params;
|
||||
@ -481,7 +481,7 @@ static const OSSL_PARAM *drbg_hash_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_DIGEST, NULL, 0),
|
||||
OSSL_PARAM_DRBG_SETABLE_CTX_COMMON,
|
||||
OSSL_PARAM_DRBG_SETTABLE_CTX_COMMON,
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
return known_settable_ctx_params;
|
||||
|
@ -332,7 +332,7 @@ static int drbg_hmac_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
static const OSSL_PARAM *drbg_hmac_gettable_ctx_params(void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_DRBG_GETABLE_CTX_COMMON,
|
||||
OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON,
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
return known_gettable_ctx_params;
|
||||
@ -384,7 +384,7 @@ static const OSSL_PARAM *drbg_hmac_settable_ctx_params(void *provctx)
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_DIGEST, NULL, 0),
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_MAC, NULL, 0),
|
||||
OSSL_PARAM_DRBG_SETABLE_CTX_COMMON,
|
||||
OSSL_PARAM_DRBG_SETTABLE_CTX_COMMON,
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
return known_settable_ctx_params;
|
||||
|
@ -238,11 +238,11 @@ OSSL_FUNC_rand_unlock_fn drbg_unlock;
|
||||
int drbg_get_ctx_params(PROV_DRBG *drbg, OSSL_PARAM params[]);
|
||||
int drbg_set_ctx_params(PROV_DRBG *drbg, const OSSL_PARAM params[]);
|
||||
|
||||
#define OSSL_PARAM_DRBG_SETABLE_CTX_COMMON \
|
||||
#define OSSL_PARAM_DRBG_SETTABLE_CTX_COMMON \
|
||||
OSSL_PARAM_uint(OSSL_DRBG_PARAM_RESEED_REQUESTS, NULL), \
|
||||
OSSL_PARAM_uint64(OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL, NULL)
|
||||
|
||||
#define OSSL_PARAM_DRBG_GETABLE_CTX_COMMON \
|
||||
#define OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON \
|
||||
OSSL_PARAM_int(OSSL_RAND_PARAM_STATE, NULL), \
|
||||
OSSL_PARAM_uint(OSSL_RAND_PARAM_STRENGTH, NULL), \
|
||||
OSSL_PARAM_size_t(OSSL_DRBG_PARAM_MAX_REQUEST, NULL), \
|
||||
|
@ -189,7 +189,7 @@ static int test_rng_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
static const OSSL_PARAM *test_rng_gettable_ctx_params(void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_DRBG_GETABLE_CTX_COMMON,
|
||||
OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON,
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
return known_gettable_ctx_params;
|
||||
@ -279,7 +279,7 @@ static const OSSL_PARAM *test_rng_settable_ctx_params(void *provctx)
|
||||
OSSL_PARAM_size_t(OSSL_DRBG_PARAM_MAX_ADINLEN, NULL),
|
||||
OSSL_PARAM_uint(OSSL_DRBG_PARAM_RESEED_CTR, NULL),
|
||||
OSSL_PARAM_time_t(OSSL_DRBG_PARAM_RESEED_TIME, NULL),
|
||||
OSSL_PARAM_DRBG_SETABLE_CTX_COMMON,
|
||||
OSSL_PARAM_DRBG_SETTABLE_CTX_COMMON,
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
return known_settable_ctx_params;
|
||||
|
Loading…
Reference in New Issue
Block a user