Commit a5799bdc authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Allow reseed interval to be set.

parent 2b1f17f8
Loading
Loading
Loading
Loading
+5
Changes for fips/rand/fips_drbg_lib.c: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -500,6 +500,11 @@ void FIPS_drbg_set_check_interval(DRBG_CTX *dctx, int interval)
	dctx->health_check_interval = interval;
	}

void FIPS_drbg_set_reseed_interval(DRBG_CTX *dctx, int interval)
	{
	dctx->reseed_interval = interval;
	}

static int drbg_stick = 0;

void FIPS_drbg_stick(void)
+1
Changes for fips/rand/fips_rand.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ 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);
void FIPS_drbg_set_reseed_interval(DRBG_CTX *dctx, int interval);

DRBG_CTX *FIPS_get_default_drbg(void);
const RAND_METHOD *FIPS_drbg_method(void);