projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add range-checking to RAND_DRBG_set_reseed_interval
[openssl.git]
/
crypto
/
rand
/
rand_lcl.h
diff --git
a/crypto/rand/rand_lcl.h
b/crypto/rand/rand_lcl.h
index d65d49f3ac8413637daef986a10f2e695c555027..689e3a34fd00575f7a8da448f071f944c1e56ddb 100644
(file)
--- a/
crypto/rand/rand_lcl.h
+++ b/
crypto/rand/rand_lcl.h
@@
-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