phpseclib/phpseclib/Crypt
Tyson Andre 41eb0d8012 Fix logic error reading random bytes from /dev/urandom
Fixes a bug introduced in c2be7e648

Previously, this would return those bytes if the number of bytes read
was **less than** the number of bytes this was trying to read.

In practice, I believe this would mean bytes from /dev/urandom would never
get used.  (Noticed when upgrading phpseclib)
2020-04-03 07:33:58 -05:00
..
AES.php Merge branch 'phpdoc-1.0' into 1.0 2015-10-13 08:52:52 -05:00
Base.php Crypt: avoid bogus IV errors in ECB mode 2019-02-10 17:18:40 -06:00
Blowfish.php Crypt: some of the minimum key lengths were off 2017-12-19 07:04:36 -06:00
DES.php spelling fixes 2016-08-04 00:19:27 -05:00
Hash.php Hash: fix issues with the mode 2019-03-09 17:08:59 -06:00
Random.php Fix logic error reading random bytes from /dev/urandom 2020-04-03 07:33:58 -05:00
RC2.php Crypt: some of the minimum key lengths were off 2017-12-19 07:04:36 -06:00
RC4.php RC4: don't assume key is "\0" by default 2017-10-05 05:26:23 -05:00
Rijndael.php add PHP5-style constructors along side PHP4-style ones 2016-09-10 10:41:05 -07:00
RSA.php (#1423) make PSS verification work for non power of 2 keys 2019-10-20 13:27:01 -05:00
TripleDES.php add PHP5-style constructors along side PHP4-style ones 2016-09-10 10:41:05 -07:00
Twofish.php more adjustments for ARM CPU's 2017-12-17 14:52:43 -06:00