diff options
author | Damien Miller <djm@mindrot.org> | 2000-10-27 09:27:32 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-10-27 09:27:32 +1100 |
commit | 656d71754122aeeaff1e17e8e115017b04239fb2 (patch) | |
tree | b8e9398d943cce8b0555861c7e3ac45b82fb4814 | |
parent | 76020ba5c0360b9e9adf619d4249f82d1e3b83b6 (diff) |
- (djm) Increase REKEY_BYTES to 2^24 for arc4random
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | bsd-arc4random.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ | |||
1 | 20001027 | ||
2 | - (djm) Increase REKEY_BYTES to 2^24 for arc4random | ||
3 | |||
1 | 20001025 | 4 | 20001025 |
2 | - (djm) Added WARNING.RNG file and modified configure to ask users of the | 5 | - (djm) Added WARNING.RNG file and modified configure to ask users of the |
3 | builtin entropy code to read it. | 6 | builtin entropy code to read it. |
diff --git a/bsd-arc4random.c b/bsd-arc4random.c index ea0abf3f4..c45459f59 100644 --- a/bsd-arc4random.c +++ b/bsd-arc4random.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #define SEED_SIZE 20 | 33 | #define SEED_SIZE 20 |
34 | 34 | ||
35 | /* Number of bytes to reseed after */ | 35 | /* Number of bytes to reseed after */ |
36 | #define REKEY_BYTES (1 << 18) | 36 | #define REKEY_BYTES (1 << 24) |
37 | 37 | ||
38 | static int rc4_ready = 0; | 38 | static int rc4_ready = 0; |
39 | static RC4_KEY rc4; | 39 | static RC4_KEY rc4; |