Skip to content

Commit c7edb0a

Browse files
committed
test/openssl/test_cipher: skip AES-CCM tests on OpenSSL <= 1.1.1b
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. openssl/openssl@b48e3be 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@44d6712)
1 parent bd3508d commit c7edb0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/openssl/test_cipher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def test_aes_ccm
214214
assert_raise(OpenSSL::Cipher::CipherError) { cipher.update(ct2) }
215215
end if has_cipher?("aes-128-ccm") &&
216216
OpenSSL::Cipher.new("aes-128-ccm").authenticated? &&
217-
OpenSSL::OPENSSL_VERSION_NUMBER >= 0x10101000 # version >= v1.1.1
217+
OpenSSL::OPENSSL_VERSION_NUMBER >= 0x1010103f # version >= 1.1.1c
218218

219219
def test_aes_gcm
220220
# GCM spec Appendix B Test Case 4

0 commit comments

Comments
 (0)