mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
b48e3be947
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
This commit is contained in:
parent
6c7cb00c09
commit
44d67128a8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue