提交 98bc8067 编写于 作者: D Dr. Stephen Henson

Skip ECDH sanity check. Add --compare-all to run comparison tests on

all files instead of sanity checks.
上级 a2b6dc97
...@@ -487,6 +487,7 @@ my %verify_special = ( ...@@ -487,6 +487,7 @@ my %verify_special = (
"RSA:SigGenRSA" => "fips_rsavtest -x931", "RSA:SigGenRSA" => "fips_rsavtest -x931",
"RSA:SigGenPSS(0)" => "fips_rsavtest -saltlen 0", "RSA:SigGenPSS(0)" => "fips_rsavtest -saltlen 0",
"RSA:SigGenPSS(62)" => "fips_rsavtest -saltlen 62", "RSA:SigGenPSS(62)" => "fips_rsavtest -saltlen 62",
"ECDH Ephemeral Primitives Only:KAS_ECC_CDH_PrimitiveTest" => "skip"
); );
my $win32 = $^O =~ m/mswin/i; my $win32 = $^O =~ m/mswin/i;
...@@ -509,6 +510,7 @@ my $no_warn_missing = 0; ...@@ -509,6 +510,7 @@ my $no_warn_missing = 0;
my $no_warn_bogus = 0; my $no_warn_bogus = 0;
my $rmcmd = "rm -rf"; my $rmcmd = "rm -rf";
my $mkcmd = "mkdir"; my $mkcmd = "mkdir";
my $cmpall = 0;
my %fips_enabled = ( my %fips_enabled = (
dsa => 1, dsa => 1,
...@@ -569,6 +571,9 @@ foreach (@ARGV) { ...@@ -569,6 +571,9 @@ foreach (@ARGV) {
} elsif ( $_ eq "--generate" ) { } elsif ( $_ eq "--generate" ) {
$verify = 0; $verify = 0;
} }
elsif ( $_ eq "--compare-all" ) {
$cmpall = 1;
}
elsif ( $_ eq "--notest" ) { elsif ( $_ eq "--notest" ) {
$notest = 1; $notest = 1;
} }
...@@ -1045,10 +1050,15 @@ END ...@@ -1045,10 +1050,15 @@ END
} }
} }
if ($verify) { if ($verify) {
if ( exists $verify_special{"$ttype:$tname"} ) { if ( exists $verify_special{"$ttype:$tname"} && !$cmpall) {
my $vout = $rsp; my $vout = $rsp;
$vout =~ s/\.rsp$/.ver/; $vout =~ s/\.rsp$/.ver/;
$tcmd = $verify_special{"$ttype:$tname"}; $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 = "$tprefix$tcmd ";
$cmd .= "\"$out\" \"$vout\""; $cmd .= "\"$out\" \"$vout\"";
system($cmd); system($cmd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册