Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix applying DES-CBC when using OpenSSL 3
After calling `#final` on the cipher object, it will return garbage from that moment forward. The cipher object can therefore not be reused in the iteration over keys. Reinitialize it everytime instead. This seems to be new behaviour in Ruby/OpenSSL3. See also: https://ruby.github.io/openssl/OpenSSL/Cipher.html#class-OpenSSL::Cipher-label-Calling+Cipher-23final
- Loading branch information