We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cipher#iv_len is not returning the proper value for an ECB mode AES cipher.
Cipher#iv_len
MRI:
2.5.1 :002 > OpenSSL::Cipher.new("AES-128-ECB").iv_len => 0
JRuby:
jruby-9.1.15.0 :002 > OpenSSL::Cipher.new("AES-128-ECB").iv_len => 16
Since ECB mode does not rely on an IV, else if ( "ECB".equals(mode) ) should be above if ( "AES".equals(base) ) here so it returns 0
else if ( "ECB".equals(mode) )
if ( "AES".equals(base) )
https://github.com/jruby/jruby-openssl/blob/master/src/main/java/org/jruby/ext/openssl/Cipher.java#L630
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Cipher#iv_len
is not returning the proper value for an ECB mode AES cipher.MRI:
JRuby:
Since ECB mode does not rely on an IV,
else if ( "ECB".equals(mode) )
should be aboveif ( "AES".equals(base) )
here so it returns 0https://github.com/jruby/jruby-openssl/blob/master/src/main/java/org/jruby/ext/openssl/Cipher.java#L630
The text was updated successfully, but these errors were encountered: