summaryrefslogtreecommitdiff
path: root/fips
diff options
context:
space:
mode:
authorsteve <steve>2011-10-12 17:18:38 +0000
committersteve <steve>2011-10-12 17:18:38 +0000
commitb45e03758e8984b12a1866b0d7ce2b2808f3abf6 (patch)
tree8d5d10f9e7912b80116b753b4802748cc2a0ac06 /fips
parent813aafd47d358c3a736c8d7b4e591370306d5fb8 (diff)
downloadopenssl-b45e03758e8984b12a1866b0d7ce2b2808f3abf6.tar.gz
Skip ECDH sanity check. Add --compare-all to run comparison tests on
all files instead of sanity checks.
Diffstat (limited to 'fips')
-rw-r--r--fips/fipsalgtest.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/fips/fipsalgtest.pl b/fips/fipsalgtest.pl
index 1abbc2fb5..9f62d2c60 100644
--- a/fips/fipsalgtest.pl
+++ b/fips/fipsalgtest.pl
@@ -487,6 +487,7 @@ my %verify_special = (
"RSA:SigGenRSA" => "fips_rsavtest -x931",
"RSA:SigGenPSS(0)" => "fips_rsavtest -saltlen 0",
"RSA:SigGenPSS(62)" => "fips_rsavtest -saltlen 62",
+ "ECDH Ephemeral Primitives Only:KAS_ECC_CDH_PrimitiveTest" => "skip"
);
my $win32 = $^O =~ m/mswin/i;
@@ -509,6 +510,7 @@ my $no_warn_missing = 0;
my $no_warn_bogus = 0;
my $rmcmd = "rm -rf";
my $mkcmd = "mkdir";
+my $cmpall = 0;
my %fips_enabled = (
dsa => 1,
@@ -569,6 +571,9 @@ foreach (@ARGV) {
} elsif ( $_ eq "--generate" ) {
$verify = 0;
}
+ elsif ( $_ eq "--compare-all" ) {
+ $cmpall = 1;
+ }
elsif ( $_ eq "--notest" ) {
$notest = 1;
}
@@ -1045,10 +1050,15 @@ END
}
}
if ($verify) {
- if ( exists $verify_special{"$ttype:$tname"} ) {
+ if ( exists $verify_special{"$ttype:$tname"} && !$cmpall) {
my $vout = $rsp;
$vout =~ s/\.rsp$/.ver/;
$tcmd = $verify_special{"$ttype:$tname"};
+ if ($tcmd eq "skip") {
+ print STDERR "DEBUG: No verify possible: skipped.\n" if $debug;
+ $scheckok++;
+ next;
+ }
$cmd = "$tprefix$tcmd ";
$cmd .= "\"$out\" \"$vout\"";
system($cmd);