We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4a254a commit 36aea91Copy full SHA for 36aea91
test/test_pkcs11_crypt.rb
@@ -58,7 +58,7 @@ def test_endecrypt_des
58
assert_equal 16, cryptogram.length, 'The cryptogram should contain some data'
59
refute_equal cryptogram, plaintext1, 'The cryptogram should be different to plaintext'
60
61
- cryptogram2 = ''
+ cryptogram2 = String.new
62
cryptogram2 << session.encrypt( {DES3_CBC_PAD: "\0"*8}, secret_key ) do |cipher|
63
cryptogram2 << cipher.update(plaintext1[0, 8])
64
cryptogram2 << cipher.update(plaintext1[8..-1])
0 commit comments