Add range-checking to RAND_DRBG_set_reseed_interval
[openssl.git] / crypto / rand / rand_lcl.h
index d65d49f3ac8413637daef986a10f2e695c555027..689e3a34fd00575f7a8da448f071f944c1e56ddb 100644 (file)
@@ -20,6 +20,9 @@
 /* we require 256 bits of randomness */
 # define RANDOMNESS_NEEDED (256 / 8)
 
+/* Maximum count allowed in reseeding */
+#define MAX_RESEED (1 << 24)
+
 /* DRBG status values */
 #define DRBG_STATUS_UNINITIALISED      0
 #define DRBG_STATUS_READY              1