mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
a861a3a93d
Previously an incorrectly sized key was either silently padded with NUL bytes or truncated. Especially the silent nature of this behavior makes it extremely easy to use weak encryption. A common mistake - which has also been extensively made in our tests - is to use a password instead of a key. Incorrectly sized keys will now be rejected.
4.6 KiB
4.6 KiB