From f9a93cd83b07f5f13563ff67621f091f13606cfe Mon Sep 17 00:00:00 2001 From: Aeris Date: Sat, 21 Nov 2015 21:23:43 +0100 Subject: [PATCH] Cipher size is the weakest supported, not the strongest (+optimization) --- lib/cryptcheck/tls/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptcheck/tls/server.rb b/lib/cryptcheck/tls/server.rb index d2febe2..98b6298 100644 --- a/lib/cryptcheck/tls/server.rb +++ b/lib/cryptcheck/tls/server.rb @@ -51,7 +51,7 @@ module CryptCheck end def cipher_size - supported_ciphers.collect { |c| c.size }.sort.last + supported_ciphers.collect { |c| c.size }.min end def supported_protocols