-
Jonathan Hefner authored
When given a key of invalid length, OpenSSL::Cipher raises a "key must be X bytes" error. However, EncryptedFile keys are packed before they are passed to OpenSSL::Cipher, so the actual length requirement is "2*X characters". This commit checks the key length, and raises a more helpful error if the key length is invalid. Closes #39528.
Jonathan Hefner authoredWhen given a key of invalid length, OpenSSL::Cipher raises a "key must be X bytes" error. However, EncryptedFile keys are packed before they are passed to OpenSSL::Cipher, so the actual length requirement is "2*X characters". This commit checks the key length, and raises a more helpful error if the key length is invalid. Closes #39528.
Loading