We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0df40 commit 91d04f9Copy full SHA for 91d04f9
test/openssl/test_cipher.rb
@@ -135,14 +135,11 @@ def test_ctr_if_exists
135
end
136
137
def test_ciphers
138
- OpenSSL::Cipher.ciphers.each{|name|
139
- next if /netbsd/ =~ RUBY_PLATFORM && /idea|rc5/i =~ name
140
- begin
141
- assert_kind_of(OpenSSL::Cipher, OpenSSL::Cipher.new(name))
142
- rescue OpenSSL::Cipher::CipherError => e
143
- raise unless /wrap/ =~ name and /wrap mode not allowed/ =~ e.message
144
- end
145
- }
+ ciphers = OpenSSL::Cipher.ciphers
+ assert_kind_of Array, ciphers
+ assert_include ciphers, "aes-128-cbc"
+ assert_include ciphers, "aes128" # alias of aes-128-cbc
+ assert_include ciphers, "aes-128-gcm"
146
147
148
def test_AES
0 commit comments