From e39b7670f1f856a2f65353a010273ebd3c65fc9b Mon Sep 17 00:00:00 2001 From: aeris Date: Sat, 17 Dec 2016 14:41:38 +0100 Subject: [PATCH] Fix AEAD and weak key checks --- lib/cryptcheck/tls/grade.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cryptcheck/tls/grade.rb b/lib/cryptcheck/tls/grade.rb index 4e0703f..083091c 100644 --- a/lib/cryptcheck/tls/grade.rb +++ b/lib/cryptcheck/tls/grade.rb @@ -78,7 +78,7 @@ module CryptCheck CHECKS = [ # Keys [:dss_sign, Proc.new { |s| s.dss_sig? }, :critical], - [:weak_key, Proc.new { |s| %i(critical error warning).include? s.key.status } ], + [:weak_key, Proc.new { |s| %i(critical error warning) & [s.key.status] } ], # DH [:weak_dh, Proc.new { |s| (%i(critical error warning) & s.dh.collect(&:status).uniq).first } ], @@ -114,7 +114,7 @@ module CryptCheck [:ecdhe, Proc.new { |s| s.ecdhe? }, :good], [:ecdhe_only, Proc.new { |s| s.ecdhe_only? }, :perfect], - [:aead, Proc.new { |s| s.aead_only? }, :good], + [:aead, Proc.new { |s| s.aead? }, :good], #[:aead_only, Proc.new { |s| s.aead_only? }, :best], ]