Engage SHA1 IA64 assembler on IA64 platforms.
authorAndy Polyakov <appro@openssl.org>
Thu, 9 Dec 2004 15:39:55 +0000 (15:39 +0000)
committerAndy Polyakov <appro@openssl.org>
Thu, 9 Dec 2004 15:39:55 +0000 (15:39 +0000)
Configure
TABLE
crypto/sha/Makefile.ssl
crypto/sha/sha_locl.h

index ac3d86f771822524c2d9c9c3ee1a35243aacb68d..e2b6f99359136f62ce6947b6d02ff7257c434381 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -118,7 +118,7 @@ my $x86_elf_asm="x86cpuid-elf.o:asm/bn86-elf.o asm/co86-elf.o:asm/dx86-elf.o asm
 my $x86_coff_asm="x86cpuid-cof.o:asm/bn86-cof.o asm/co86-cof.o:asm/dx86-cof.o asm/yx86-cof.o::asm/bx86-cof.o:asm/mx86-cof.o:asm/sx86-cof.o asm/s512sse2-cof.o:asm/cx86-cof.o:asm/rx86-cof.o:asm/rm86-cof.o:asm/r586-cof.o";
 my $x86_out_asm="x86cpuid-out.o:bn86-out.o co86-out.o:dx86-out.o yx86-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 $ia64_asm=":asm/ia64.o::asm/aes-ia64.o:::asm/sha256-ia64.o asm/sha512-ia64.o::asm/rc4-ia64.o::";
+my $ia64_asm=":asm/ia64.o::asm/aes-ia64.o:::asm/sha1-ia64.o asm/sha256-ia64.o asm/sha512-ia64.o::asm/rc4-ia64.o::";
 
 my $no_asm="::::::::::";
 
diff --git a/TABLE b/TABLE
index 04c340a4db75870acbb6b3f3d11bc08a95bc6e6b..e9391294ac2935ba9e4ad66fd5ff0d767c90f218 100644 (file)
--- a/TABLE
+++ b/TABLE
@@ -257,7 +257,7 @@ $des_obj      =
 $aes_obj      = asm/aes-ia64.o
 $bf_obj       = 
 $md5_obj      = 
-$sha1_obj     = asm/sha256-ia64.o asm/sha512-ia64.o
+$sha1_obj     = asm/sha1-ia64.o asm/sha256-ia64.o asm/sha512-ia64.o
 $cast_obj     = 
 $rc4_obj      = asm/rc4-ia64.o
 $rmd160_obj   = 
@@ -2417,7 +2417,7 @@ $des_obj      =
 $aes_obj      = asm/aes-ia64.o
 $bf_obj       = 
 $md5_obj      = 
-$sha1_obj     = asm/sha256-ia64.o asm/sha512-ia64.o
+$sha1_obj     = asm/sha1-ia64.o asm/sha256-ia64.o asm/sha512-ia64.o
 $cast_obj     = 
 $rc4_obj      = asm/rc4-ia64.o
 $rmd160_obj   = 
@@ -2633,7 +2633,7 @@ $des_obj      =
 $aes_obj      = asm/aes-ia64.o
 $bf_obj       = 
 $md5_obj      = 
-$sha1_obj     = asm/sha256-ia64.o asm/sha512-ia64.o
+$sha1_obj     = asm/sha1-ia64.o asm/sha256-ia64.o asm/sha512-ia64.o
 $cast_obj     = 
 $rc4_obj      = asm/rc4-ia64.o
 $rmd160_obj   = 
@@ -2660,7 +2660,7 @@ $des_obj      =
 $aes_obj      = asm/aes-ia64.o
 $bf_obj       = 
 $md5_obj      = 
-$sha1_obj     = asm/sha256-ia64.o asm/sha512-ia64.o
+$sha1_obj     = asm/sha1-ia64.o asm/sha256-ia64.o asm/sha512-ia64.o
 $cast_obj     = 
 $rc4_obj      = asm/rc4-ia64.o
 $rmd160_obj   = 
@@ -3146,7 +3146,7 @@ $des_obj      =
 $aes_obj      = asm/aes-ia64.o
 $bf_obj       = 
 $md5_obj      = 
-$sha1_obj     = asm/sha256-ia64.o asm/sha512-ia64.o
+$sha1_obj     = asm/sha1-ia64.o asm/sha256-ia64.o asm/sha512-ia64.o
 $cast_obj     = 
 $rc4_obj      = asm/rc4-ia64.o
 $rmd160_obj   = 
@@ -3173,7 +3173,7 @@ $des_obj      =
 $aes_obj      = asm/aes-ia64.o
 $bf_obj       = 
 $md5_obj      = 
-$sha1_obj     = asm/sha256-ia64.o asm/sha512-ia64.o
+$sha1_obj     = asm/sha1-ia64.o asm/sha256-ia64.o asm/sha512-ia64.o
 $cast_obj     = 
 $rc4_obj      = asm/rc4-ia64.o
 $rmd160_obj   = 
index 8d85dd442c93b20c707ae9df253c438c362f79cd..16a4351b01c3cb4fcc026bcf4c2d7552dc02b3b8 100644 (file)
@@ -64,6 +64,8 @@ sx86-out.s: asm/sha1-586.pl ../perlasm/x86asm.pl
 s512sse2-out.s:     asm/sha512-sse2.pl ../perlasm/x86asm.pl
        (cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
 
+asm/sha1-ia64.s:   asm/sha1-ia64.pl
+       (cd asm; $(PERL) sha1-ia64.pl $(CFLAGS) ) > $@
 asm/sha256-ia64.s: asm/sha512-ia64.pl
        (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
 asm/sha512-ia64.s: asm/sha512-ia64.pl
index 210f22f7a67f3a9625adc40b6780daa815449b01..d1f64c5fd0636a7bd3f1e6c6ad7cb5d664ae9af2 100644 (file)
 #   define sha1_block_data_order               sha1_block_asm_data_order
 #   define DONT_IMPLEMENT_BLOCK_DATA_ORDER
 #   define HASH_BLOCK_DATA_ORDER_ALIGNED       sha1_block_asm_data_order
+#  elif defined(__ia64) || defined(__ia64__) || defined(_M_IA64)
+#   define sha1_block_host_order               sha1_block_asm_host_order
+#   define DONT_IMPLEMENT_BLOCK_HOST_ORDER
+#   define sha1_block_data_order               sha1_block_asm_data_order
+#   define DONT_IMPLEMENT_BLOCK_DATA_ORDER
 #  endif
 # endif
   void sha1_block_host_order (SHA_CTX *c, const void *p,size_t num);