[openssl-commits] [openssl] master update

Andy Polyakov appro at openssl.org
Mon Apr 25 09:49:15 UTC 2016


The branch master has been updated
       via  a82a9f71ad0149380a680cae4c0cc693e6324679 (commit)
      from  acde647fb0347f64af8f8678b73ce41f2f499c02 (commit)


- Log -----------------------------------------------------------------
commit a82a9f71ad0149380a680cae4c0cc693e6324679
Author: Andy Polyakov <appro at openssl.org>
Date:   Sat Apr 23 19:16:56 2016 +0200

    chacha/asm/chacha-ppc.pl: get misalignment corner case right on big-endian.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/chacha/asm/chacha-ppc.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/crypto/chacha/asm/chacha-ppc.pl b/crypto/chacha/asm/chacha-ppc.pl
index 2bb3fce..4c5d2d1 100755
--- a/crypto/chacha/asm/chacha-ppc.pl
+++ b/crypto/chacha/asm/chacha-ppc.pl
@@ -527,9 +527,11 @@ $code.=<<___;
 	?lvsl	$outperm,0,$out			# prepare for unaligned store
 	?vperm	$outmask,$outmask,$T0,$outperm
 
+	be?lvsl	$T0,0, at x[0]			# 0x00..0f
 	be?vspltisb $T1,3			# 0x03..03
-	be?vxor	$inpperm,$inpperm,$T1		# swap bytes within words
+	be?vxor	$T0,$T0,$T1			# swap bytes within words
 	be?vxor	$outperm,$outperm,$T1
+	be?vperm $inpperm,$inpperm,$inpperm,$T0
 
 	b	Loop_outer_vmx
 


More information about the openssl-commits mailing list