diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2022-09-08 17:59:25 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2022-09-08 17:59:25 +0900 |
commit | 459a0e26a92608547485025ba702f65cd222b881 (patch) | |
tree | 2bdaeab6e54f605c3753e758f1f095954c969f3a /test/openssl | |
parent | 65e7207a07da23214be4a7c4cd4dc32f9f01e5fd (diff) | |
download | ruby-openssl-459a0e26a92608547485025ba702f65cd222b881.tar.gz |
test/openssl/test_cipher: skip AES-CCM tests on OpenSSL <= 1.1.1b
[ This is a backport to the 2.2 branch. ]
AES CCM mode in OpenSSL <= 1.1.1b was overly strict in the parameters
assignment order. This has been relaxed by OpenSSL 1.1.1c.
https://github.com/openssl/openssl/commit/b48e3be947ddc5da6b5a86db8341081c72b9a4ee
The test case is failing on Ubuntu 18.04 because it still uses the
initial 1.1.1 release and has the issue:
http://rubyci.s3.amazonaws.com/graviton2/ruby-master/log/20210316T120003Z.fail.html.gz
(cherry picked from commit ruby/ruby@44d67128a827c65d1a3867c5d8fd190d10aa1dd2)
(cherry picked from commit c7edb0a0f93ef6e137481d59103aec5fe09c3d66)
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_cipher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb index 65b36dd1..3652f9ca 100644 --- a/test/openssl/test_cipher.rb +++ b/test/openssl/test_cipher.rb @@ -214,7 +214,7 @@ class OpenSSL::TestCipher < OpenSSL::TestCase assert_raise(OpenSSL::Cipher::CipherError) { cipher.update(ct2) } end if has_cipher?("aes-128-ccm") && OpenSSL::Cipher.new("aes-128-ccm").authenticated? && - OpenSSL::OPENSSL_VERSION_NUMBER >= 0x10101000 # version >= v1.1.1 + OpenSSL::OPENSSL_VERSION_NUMBER >= 0x1010103f # version >= 1.1.1c def test_aes_gcm # GCM spec Appendix B Test Case 4 |