From 8a03b8d4e71d43892cf334f71e5ba4246db0d212 Mon Sep 17 00:00:00 2001 From: Julien Vehent Date: Fri, 18 Sep 2015 14:49:51 -0400 Subject: [PATCH] fix pubkey quality test --- cipherscan | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cipherscan b/cipherscan index d6e9b25..a2d1756 100755 --- a/cipherscan +++ b/cipherscan @@ -751,10 +751,9 @@ display_results_in_terminal() { done|column -t echo pubkey_eval="KO" - if [[ ! -z $pubkey ]]; then - if (( $pubkey > 2047 )); then pubkey_eval="OK" fi + if [[ ($sigalg =~ RSA && $pubkey -gt 2047) || ($sigalg =~ DSA && $pubkey -gt 255) ]]; then fi sigalg_eval="OK" if [[ $sigalg =~ md5|sha1 ]]; then