Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby-OSSL 0.7.1
-
Fix Version/s: JRuby-OSSL 0.7.2
-
Component/s: OpenSSL
-
Labels:None
-
Environment:any
-
Number of attachments :
Description
Funny but net-ssh depends on this behavior. Cipher#iv=, too.
0% cat reset.rb
require 'openssl'
cipher = OpenSSL::Cipher::Cipher.new("RC4")
cipher.encrypt
cipher.key = "\0\1\2\3" * (128/8/4)
str = cipher.update('hello,world')
str += cipher.final
p str
cipher.reset
cipher.iv = "\0" * 16
str = cipher.update('hello,world')
str += cipher.final
p str
0% ruby -v reset.rb
ruby 1.9.3dev (2010-09-16 trunk 29265) [x86_64-linux]
"%E\x96\xDAZ\xEF\xB2$/\x9F\x02"
">aV\xB0\xE1l\xF3oyL\x9B"
0% jruby reset.rb
"%E\226\332Z\357\262$/\237\002"
"%E\226\332Z\357\262$/\237\002"
Issue Links
- is depended upon by
-
JRUBY-5094
Net::SSH "connection closed by remote host (Net::SSH::Disconnect)"
-