summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-18 22:45:12 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-18 22:45:12 +0000
commit053e85e2be2bfa6e5e963c577b61d69cdd287edd (patch)
tree5d864e3c138017b8b6535eb85b6dbba5f8c937e3 /test/openssl
parent46d19a3a9528c8dde535b20693e2fb9f87552de4 (diff)
* test/openssl/test_cipher.rb: Correct a typo
by jgls <joerg@joergleis.com> https://github.com/ruby/ruby/pull/291 fix GH-291 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_cipher.rb6
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)