summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-07-24 12:30:26 +0000
committerAndy Polyakov <appro@openssl.org>2005-07-24 12:30:26 +0000
commit612a91110f8682a2be5ffd5dc75b6787bc175fcb (patch)
treedcb063335861b4092fe31c1a4d77d8ff85fe9c8c
parent2337eb58233a68b3f97cfa18f3d30f7385478f0c (diff)
downloadopenssl-new-612a91110f8682a2be5ffd5dc75b6787bc175fcb.tar.gz
Engage SHA-256/-512 x86_64 assembler module.
-rwxr-xr-xConfigure4
-rw-r--r--TABLE6
-rw-r--r--crypto/sha/Makefile4
3 files changed, 9 insertions, 5 deletions
diff --git a/Configure b/Configure
index f73efe310a..b1edef8a89 100755
--- a/Configure
+++ b/Configure
@@ -118,7 +118,7 @@ my $x86_elf_asm="x86cpuid-elf.o:bn86-elf.o co86-elf.o:dx86-elf.o yx86-elf.o:ax86
my $x86_coff_asm="x86cpuid-cof.o:bn86-cof.o co86-cof.o:dx86-cof.o yx86-cof.o:ax86-cof.o:bx86-cof.o:mx86-cof.o:sx86-cof.o s512sse2-cof.o:cx86-cof.o:rx86-cof.o:rm86-cof.o:r586-cof.o";
my $x86_out_asm="x86cpuid-out.o:bn86-out.o co86-out.o:dx86-out.o yx86-out.o:ax86-out.o:bx86-out.o:mx86-out.o:sx86-out.o s512sse2-out.o:cx86-out.o:rx86-out.o:rm86-out.o:r586-out.o";
-my $x86_64_asm="x86_64cpuid.o:x86_64-gcc.o::aes-x86_64.o::md5-x86_64.o:::rc4-x86_64.o::";
+my $x86_64_asm="x86_64cpuid.o:x86_64-gcc.o::aes-x86_64.o::md5-x86_64.o:sha256-x86_64.o sha512-x86_64.o::rc4-x86_64.o::";
my $ia64_asm="ia64cpuid.o:bn-ia64.o::aes_core.o aes_cbc.o aes-ia64.o::md5-ia64.o:sha1-ia64.o sha256-ia64.o sha512-ia64.o::rc4-ia64.o::";
my $no_asm="::::::::::";
@@ -1182,7 +1182,7 @@ if ($sha1_obj =~ /\.o$/)
$cflags.=" -DSHA1_ASM" if ($sha1_obj =~ /sx86/ || $sha1_obj =~ /sha1/);
$cflags.=" -DSHA256_ASM" if ($sha1_obj =~ /sha256/);
$cflags.=" -DSHA512_ASM" if ($sha1_obj =~ /sha512/);
- if ($sha1_obj =~ /x86/)
+ if ($sha1_obj =~ /sx86/)
{ if ($no_sse2)
{ $sha1_obj =~ s/\S*sse2\S+//; }
elsif ($cflags !~ /OPENSSL_IA32_SSE2/)
diff --git a/TABLE b/TABLE
index 6554a20dda..1ba5592509 100644
--- a/TABLE
+++ b/TABLE
@@ -257,7 +257,7 @@ $des_obj =
$aes_obj = aes-x86_64.o
$bf_obj =
$md5_obj = md5-x86_64.o
-$sha1_obj =
+$sha1_obj = sha256-x86_64.o sha512-x86_64.o
$cast_obj =
$rc4_obj = rc4-x86_64.o
$rmd160_obj =
@@ -2876,7 +2876,7 @@ $des_obj =
$aes_obj = aes-x86_64.o
$bf_obj =
$md5_obj = md5-x86_64.o
-$sha1_obj =
+$sha1_obj = sha256-x86_64.o sha512-x86_64.o
$cast_obj =
$rc4_obj = rc4-x86_64.o
$rmd160_obj =
@@ -3686,7 +3686,7 @@ $des_obj =
$aes_obj = aes-x86_64.o
$bf_obj =
$md5_obj = md5-x86_64.o
-$sha1_obj =
+$sha1_obj = sha256-x86_64.o sha512-x86_64.o
$cast_obj =
$rc4_obj = rc4-x86_64.o
$rmd160_obj =
diff --git a/crypto/sha/Makefile b/crypto/sha/Makefile
index 3c96519cbd..834f059337 100644
--- a/crypto/sha/Makefile
+++ b/crypto/sha/Makefile
@@ -64,6 +64,10 @@ sha256-ia64.s: asm/sha512-ia64.pl
(cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
sha512-ia64.s: asm/sha512-ia64.pl
(cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
+sha256-x86_64.s: asm/sha512-x86_64.pl
+ $(PERL) asm/sha512-x86_64.pl $@
+sha512-x86_64.s: asm/sha512-x86_64.pl
+ $(PERL) asm/sha512-x86_64.pl $@
files:
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO