Compare commits
10 Commits
OpenSSL-fi
...
OpenSSL-fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1de6a62222 | ||
|
|
ac381944ac | ||
|
|
24fadf2a20 | ||
|
|
409abd2fec | ||
|
|
421de62232 | ||
|
|
c567812fa6 | ||
|
|
49dbcbaa4b | ||
|
|
df0884ffb7 | ||
|
|
0e480d5553 | ||
|
|
7c0d30038f |
@@ -45,10 +45,8 @@ sub ::generic
|
||||
undef $suffix if ($dst =~ m/^%[xm]/o || $src =~ m/^%[xm]/o);
|
||||
|
||||
if ($#_==0) { &::emit($opcode); }
|
||||
elsif ($opcode =~ m/^j/o && $#_==1) { &::emit($opcode,@arg); }
|
||||
elsif ($opcode eq "call" && $#_==1) { &::emit($opcode,@arg); }
|
||||
elsif ($opcode eq "clflush" && $#_==1){ &::emit($opcode,@arg); }
|
||||
elsif ($opcode =~ m/^set/&& $#_==1) { &::emit($opcode,@arg); }
|
||||
elsif ($#_==1 && $opcode =~ m/^(call|clflush|j|loop|set)/o)
|
||||
{ &::emit($opcode,@arg); }
|
||||
else { &::emit($opcode.$suffix,@arg);}
|
||||
|
||||
1;
|
||||
|
||||
@@ -279,6 +279,10 @@ int main(int argc, char **argv)
|
||||
rhash, rhashlen);
|
||||
}
|
||||
}
|
||||
if (in && in != stdin)
|
||||
fclose(in);
|
||||
if (out && out != stdout)
|
||||
fclose(out);
|
||||
return 0;
|
||||
parse_error:
|
||||
fprintf(stderr, "Error Parsing request file\n");
|
||||
|
||||
@@ -484,6 +484,10 @@ int main(int argc, char **argv)
|
||||
BN_free(cy);
|
||||
if (group)
|
||||
EC_GROUP_free(group);
|
||||
if (in && in != stdin)
|
||||
fclose(in);
|
||||
if (out && out != stdout)
|
||||
fclose(out);
|
||||
if (rv)
|
||||
fprintf(stderr, "Error Parsing request file\n");
|
||||
return rv;
|
||||
|
||||
@@ -67,8 +67,8 @@ int fips_post_failed(int id, int subid, void *ex);
|
||||
int fips_post_corrupt(int id, int subid, void *ex);
|
||||
int fips_post_status(void);
|
||||
|
||||
#define FIPS_MODULE_VERSION_NUMBER 0x20000006L
|
||||
#define FIPS_MODULE_VERSION_TEXT "FIPS 2.0-rc6 unvalidated test module xx XXX xxxx"
|
||||
#define FIPS_MODULE_VERSION_NUMBER 0x20000009L
|
||||
#define FIPS_MODULE_VERSION_TEXT "FIPS 2.0-rc9 unvalidated test module xx XXX xxxx"
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -8,6 +8,9 @@ my @ARGS = @ARGV;
|
||||
|
||||
my $top = shift @ARGS;
|
||||
my $target = shift @ARGS;
|
||||
my $tmptarg = $target;
|
||||
|
||||
$tmptarg =~ s/\.[^\\\/\.]+$/.tmp/;
|
||||
|
||||
my $runasm = 1;
|
||||
|
||||
@@ -48,11 +51,22 @@ while (<IN>)
|
||||
|
||||
my ($from, $to);
|
||||
|
||||
#delete any temp file lying around
|
||||
|
||||
unlink $tmptarg;
|
||||
|
||||
#rename target temporarily
|
||||
rename($target, "tmptarg.s") || die "Can't rename $target";
|
||||
my $rencnt = 0;
|
||||
# On windows the previous file doesn't always close straight away
|
||||
# so retry the rename operation a few times if it fails.
|
||||
while (!rename($target, $tmptarg))
|
||||
{
|
||||
sleep 2;
|
||||
die "Can't rename $target" if ($rencnt++ > 10);
|
||||
}
|
||||
|
||||
#edit target
|
||||
open(IN,"tmptarg.s") || die "Can't open temporary file";
|
||||
open(IN,$tmptarg) || die "Can't open temporary file";
|
||||
open(OUT, ">$target") || die "Can't open output file $target";
|
||||
|
||||
while (<IN>)
|
||||
@@ -75,16 +89,12 @@ if ($runasm)
|
||||
|
||||
# restore target
|
||||
unlink $target;
|
||||
rename "tmptarg.s", $target;
|
||||
rename $tmptarg, $target;
|
||||
|
||||
die "Error executing assembler!" if $rv != 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
# Don't care about target
|
||||
unlink "tmptarg.s";
|
||||
unlink $tmptarg;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ print "$fips_cc -DHMAC_SHA1_SIG=\\\"$fips_hash\\\" $fips_cc_args $fips_libdir/fi
|
||||
system "$fips_cc -DHMAC_SHA1_SIG=\\\"$fips_hash\\\" $fips_cc_args $fips_libdir/fips_premain.c";
|
||||
die "Second stage Compile failure" if $? != 0;
|
||||
|
||||
|
||||
print "$fips_link @ARGV\n";
|
||||
system "$fips_link @ARGV";
|
||||
die "Second stage Link failure" if $? != 0;
|
||||
|
||||
Reference in New Issue
Block a user