Skip to content

Commit 36aea91

Browse files
committed
Avoid warning about frozen string literal
1 parent a4a254a commit 36aea91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_pkcs11_crypt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_endecrypt_des
5858
assert_equal 16, cryptogram.length, 'The cryptogram should contain some data'
5959
refute_equal cryptogram, plaintext1, 'The cryptogram should be different to plaintext'
6060

61-
cryptogram2 = ''
61+
cryptogram2 = String.new
6262
cryptogram2 << session.encrypt( {DES3_CBC_PAD: "\0"*8}, secret_key ) do |cipher|
6363
cryptogram2 << cipher.update(plaintext1[0, 8])
6464
cryptogram2 << cipher.update(plaintext1[8..-1])

0 commit comments

Comments
 (0)