mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-04 14:50:23 +00:00
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.
This commit is contained in:
@@ -222,7 +222,7 @@ arc4_stir(void)
|
|||||||
* Discard early keystream, as per recommendations in:
|
* Discard early keystream, as per recommendations in:
|
||||||
* "(Not So) Random Shuffles of RC4" by Ilya Mironov.
|
* "(Not So) Random Shuffles of RC4" by Ilya Mironov.
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < 1024; i++)
|
for (i = 0; i < 3072; i++)
|
||||||
(void)arc4_getbyte();
|
(void)arc4_getbyte();
|
||||||
arc4_count = 1600000;
|
arc4_count = 1600000;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user