summaryrefslogtreecommitdiffstats
path: root/crypto/sha/asm/sha1-ppc.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2006-10-17 07:00:23 +0000
committerAndy Polyakov <appro@openssl.org>2006-10-17 07:00:23 +0000
commitf0f61f6d0d506cf6235c736f5781dbf3b651323e (patch)
tree146eead63aa1138b7aa0966db1cc7f6cb04798a5 /crypto/sha/asm/sha1-ppc.pl
parentd68ff71004282eedd8faa4411187fee08f54f75f (diff)
Synchronize SHA1 assembler with md32_common.h update.
Diffstat (limited to 'crypto/sha/asm/sha1-ppc.pl')
-rwxr-xr-xcrypto/sha/asm/sha1-ppc.pl17
1 files changed, 13 insertions, 4 deletions
diff --git a/crypto/sha/asm/sha1-ppc.pl b/crypto/sha/asm/sha1-ppc.pl
index 704887b7ab..5c5c7d87ec 100755
--- a/crypto/sha/asm/sha1-ppc.pl
+++ b/crypto/sha/asm/sha1-ppc.pl
@@ -2,8 +2,9 @@
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
-# project. Rights for redistribution and usage in source and binary
-# forms are granted according to the OpenSSL license.
+# project. The module is, however, dual licensed under OpenSSL and
+# CRYPTOGAMS licenses depending on where you obtain it. For further
+# details see http://www.openssl.org/~appro/cryptogams/.
# ====================================================================
# I let hardware handle unaligned input(*), except on page boundaries
@@ -34,8 +35,13 @@ if ($output =~ /64\.s/) {
$PUSH ="stw";
} else { die "nonsense $output"; }
-( defined shift || open STDOUT,"| $^X ../perlasm/ppc-xlate.pl $output" ) ||
- die "can't call ../perlasm/ppc-xlate.pl: $!";
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+( $xlate="${dir}ppc-xlate.pl" and -f $xlate ) or
+( $xlate="${dir}../../perlasm/ppc-xlate.pl" and -f $xlate) or
+die "can't locate ppc-xlate.pl";
+
+( defined shift || open STDOUT,"| $^X $xlate $output" ) ||
+ die "can't call $xlate: $!";
$FRAME=24*$SIZE_T;
@@ -303,6 +309,9 @@ $code.=<<___;
bdnz- Lsha1_block_private
blr
___
+$code.=<<___;
+.asciz "SHA1 block transform for PPC, CRYPTOGAMS by <appro\@fy.chalmers.se>"
+___
$code =~ s/\`([^\`]*)\`/eval $1/gem;
print $code;