X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=fips%2Frand%2Ffips_rand.h;h=dca767b943ed1db46ee574ea332f7269992a2aa1;hp=1a57edd06e39d3d278374c981263c1b0eb398184;hb=1d55dd86dd00f13384be8cd91bfbbad3a515c337;hpb=05e24c87dd1428809d6eaebf754b472a6cb4bb50 diff --git a/fips/rand/fips_rand.h b/fips/rand/fips_rand.h index 1a57edd06e..dca767b943 100644 --- a/fips/rand/fips_rand.h +++ b/fips/rand/fips_rand.h @@ -93,6 +93,7 @@ int FIPS_drbg_set_callbacks(DRBG_CTX *dctx, size_t (*get_entropy)(DRBG_CTX *ctx, unsigned char **pout, int entropy, size_t min_len, size_t max_len), void (*cleanup_entropy)(DRBG_CTX *ctx, unsigned char *out, size_t olen), + size_t entropy_blocklen, size_t (*get_nonce)(DRBG_CTX *ctx, unsigned char **pout, int entropy, size_t min_len, size_t max_len), void (*cleanup_nonce)(DRBG_CTX *ctx, unsigned char *out, size_t olen)); @@ -108,11 +109,18 @@ void *FIPS_drbg_get_app_data(DRBG_CTX *ctx); void FIPS_drbg_set_app_data(DRBG_CTX *ctx, void *app_data); size_t FIPS_drbg_get_blocklength(DRBG_CTX *dctx); int FIPS_drbg_get_strength(DRBG_CTX *dctx); +void FIPS_drbg_set_check_interval(DRBG_CTX *dctx, int interval); DRBG_CTX *FIPS_get_default_drbg(void); const RAND_METHOD *FIPS_drbg_method(void); + int FIPS_rand_set_method(const RAND_METHOD *meth); +const RAND_METHOD *FIPS_rand_get_method(void); + +void FIPS_rand_set_bits(int nbits); + +int FIPS_rand_strength(void); #ifdef __cplusplus }