SHA1 algorithm is defined using 32-bit variables in big-endian. This
patch updates sha1-ppc.pl to generate code that byte swaps the input
data when needed.
Signed-off-by: Marcelo Cerri <[email protected]>
---
crypto/sha/asm/sha1-ppc.pl | 32 ++++++++++++++++++++++++++++----
1 file changed, 28 insertions(+), 4 deletions(-)
...
+$code.=<<___ if $LITTLE_ENDIAN;
+rotlwi $temp_reg,$dst,8
+rlwimi $temp_reg,$dst,24,0,7
+rlwimi $temp_reg,$dst,24,16,23
+clrldi $dst,$temp_reg,32
+___
+}
http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=3f9562a669b116a4cdd62922563b8d45a1cbf60d
eliminates redundant clrldi. Please verify and confirm that it's working.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]