[前][次][番号順一覧][スレッド一覧]

ruby-changes:28309

From: naruse <ko1@a...>
Date: Fri, 19 Apr 2013 07:45:22 +0900 (JST)
Subject: [ruby-changes:28309] naruse:r40361 (trunk): * test/openssl/test_cipher.rb: Correct a typo

naruse	2013-04-19 07:45:12 +0900 (Fri, 19 Apr 2013)

  New Revision: 40361

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40361

  Log:
    * test/openssl/test_cipher.rb: Correct a typo
      by jgls <joerg@j...>
      https://github.com/ruby/ruby/pull/291 fix GH-291

  Modified files:
    trunk/ChangeLog
    trunk/test/openssl/test_cipher.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40360)
+++ ChangeLog	(revision 40361)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Apr 19 07:43:52 2013  NARUSE, Yui  <naruse@r...>
+
+	* test/openssl/test_cipher.rb: Correct a typo
+	  by jgls <joerg@j...>
+	  https://github.com/ruby/ruby/pull/291 fix GH-291
+
 Thu Apr 18 16:58:51 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm_method.c (rb_mod_public_method): fix visibility on anonymous
Index: test/openssl/test_cipher.rb
===================================================================
--- test/openssl/test_cipher.rb	(revision 40360)
+++ test/openssl/test_cipher.rb	(revision 40361)
@@ -133,7 +133,7 @@ class OpenSSL::TestCipher < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/openssl/test_cipher.rb#L133
     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:: https://github.com/ruby/ruby/blob/trunk/test/openssl/test_cipher.rb#L143
     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:: https://github.com/ruby/ruby/blob/trunk/test/openssl/test_cipher.rb#L161
     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)
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]