We are getting the following warning after updating from PHP 5.5.18 to PHP 5.6.2:
mcrypt_decrypt(): Key of size 20 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported
The encryption algorithm appeared to work fine before this:
$decrypttext = mcrypt_decrypt(
MCRYPT_RIJNDAEL_256,
$this->keys[$key_label],
$crypttext,
MCRYPT_MODE_ECB,
$iv
);
It would be a major pain to have to re-encrypt everything, is there something I can pad the key with so that it works the same way as before?
Presumably there aren't any security vulnerabilities here.