Content-Length: 292265 | pFad | http://github.com/jruby/jruby-openssl/commit/050856c2c72b852f225826af8e4fffe58ffedfe4

06 [test] remove a special test case (#331) · jruby/jruby-openssl@050856c · GitHub
Skip to content

Commit 050856c

Browse files
authored
[test] remove a special test case (#331)
1 parent a2be52f commit 050856c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/test/ruby/test_cipher.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -470,23 +470,19 @@ def test_encrypt_aes_cfb_20_incompatibility
470470

471471
def test_encrypt_aes_256_cbc_modifies_buffer
472472
cipher = OpenSSL::Cipher.new("AES-256-CBC")
473-
cipher.key = "a" * 32
474473
cipher.encrypt
474+
cipher.key = "a" * 32
475475
buffer = ''
476476
actual = cipher.update('bar' * 10, buffer)
477-
if jruby?
478-
expected = "\xE6\xD3Y\fc\xEE\xBA\xB2*\x0Fr\xD1\xC2b\x03\xD0"
479-
else
480-
expected = "8\xA7\xBE\xB1\xAE\x88j\xCB\xA3\xE9j\x00\xD2W_\x91"
481-
end
477+
expected = "\xE6\xD3Y\fc\xEE\xBA\xB2*\x0Fr\xD1\xC2b\x03\xD0"
482478
assert_equal actual, expected
483479
assert_equal buffer, expected
484480
end
485481

486482
def test_encrypt_aes_256_cbc_invalid_buffer
487483
cipher = OpenSSL::Cipher.new("AES-256-CBC")
488-
cipher.key = "a" * 32
489484
cipher.encrypt
485+
cipher.key = "a" * 32
490486
buffer = Object.new
491487
assert_raise(TypeError) { cipher.update('bar' * 10, buffer) }
492488
end

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jruby/jruby-openssl/commit/050856c2c72b852f225826af8e4fffe58ffedfe4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy