diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_cipher.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb index 15cfb7b302..088dbc140d 100644 --- a/test/openssl/test_cipher.rb +++ b/test/openssl/test_cipher.rb @@ -133,7 +133,7 @@ class OpenSSL::TestCipher < Test::Unit::TestCase end end - if has_ciphers?(['aes-128-gcm', 'aes-192-gcm', 'aes-128-gcm']) + if has_ciphers?(['aes-128-gcm', 'aes-192-gcm', 'aes-256-gcm']) def test_authenticated cipher = OpenSSL::Cipher.new('aes-128-gcm') @@ -143,7 +143,7 @@ class OpenSSL::TestCipher < Test::Unit::TestCase end def test_aes_gcm - ['aes-128-gcm', 'aes-192-gcm', 'aes-128-gcm'].each do |algo| + ['aes-128-gcm', 'aes-192-gcm', 'aes-256-gcm'].each do |algo| pt = "You should all use Authenticated Encryption!" cipher, key, iv = new_encryptor(algo) @@ -161,7 +161,7 @@ class OpenSSL::TestCipher < Test::Unit::TestCase end def test_aes_gcm_short_tag - ['aes-128-gcm', 'aes-192-gcm', 'aes-128-gcm'].each do |algo| + ['aes-128-gcm', 'aes-192-gcm', 'aes-256-gcm'].each do |algo| pt = "You should all use Authenticated Encryption!" cipher, key, iv = new_encryptor(algo) |