diff options
author | Brad King <brad.king@kitware.com> | 2017-03-21 15:05:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-21 15:09:25 (GMT) |
commit | 18009aaf5e1d8a436f251b6f70ac46bcad1ad768 (patch) | |
tree | b119a21384b726efebe315e3ea28cab130748132 | |
parent | e1adec32b8325fb731da084e99acd6070f5e39bf (diff) | |
download | CMake-18009aaf5e1d8a436f251b6f70ac46bcad1ad768.zip CMake-18009aaf5e1d8a436f251b6f70ac46bcad1ad768.tar.gz CMake-18009aaf5e1d8a436f251b6f70ac46bcad1ad768.tar.bz2 |
libarchive: backport rc4 crypto requirement update
Backport upstream libarchive commit 70f497f456 (As per Cryptographic
Requirements, 2017-03-19). Discard more bytes of the RC4 keystream
to reduce the possibility of non-random bytes.
-rw-r--r-- | Utilities/cmlibarchive/libarchive/archive_random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_random.c b/Utilities/cmlibarchive/libarchive/archive_random.c index a20b9b1..fcea6c6 100644 --- a/Utilities/cmlibarchive/libarchive/archive_random.c +++ b/Utilities/cmlibarchive/libarchive/archive_random.c @@ -222,7 +222,7 @@ arc4_stir(void) * Discard early keystream, as per recommendations in: * "(Not So) Random Shuffles of RC4" by Ilya Mironov. */ - for (i = 0; i < 1024; i++) + for (i = 0; i < 3072; i++) (void)arc4_getbyte(); arc4_count = 1600000; } |