mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
fix pubkey quality test
This commit is contained in:
parent
3dd0f58f4c
commit
8a03b8d4e7
@ -751,10 +751,9 @@ display_results_in_terminal() {
|
|||||||
done|column -t
|
done|column -t
|
||||||
echo
|
echo
|
||||||
pubkey_eval="KO"
|
pubkey_eval="KO"
|
||||||
if [[ ! -z $pubkey ]]; then
|
|
||||||
if (( $pubkey > 2047 )); then
|
|
||||||
pubkey_eval="OK"
|
pubkey_eval="OK"
|
||||||
fi
|
fi
|
||||||
|
if [[ ($sigalg =~ RSA && $pubkey -gt 2047) || ($sigalg =~ DSA && $pubkey -gt 255) ]]; then
|
||||||
fi
|
fi
|
||||||
sigalg_eval="OK"
|
sigalg_eval="OK"
|
||||||
if [[ $sigalg =~ md5|sha1 ]]; then
|
if [[ $sigalg =~ md5|sha1 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user