[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Andy Polyakov appro at openssl.org
Sat Jun 9 12:50:00 UTC 2018


The branch OpenSSL_1_0_2-stable has been updated
       via  bd45a8d1ef338027e6892a7c886a373a4fafbf7d (commit)
      from  278f65eeabb28279661927ecbcc23e95aad34948 (commit)


- Log -----------------------------------------------------------------
commit bd45a8d1ef338027e6892a7c886a373a4fafbf7d
Author: Andy Polyakov <appro at openssl.org>
Date:   Fri Jun 8 15:02:39 2018 +0200

    bn/asm/sparcv9-mont.pl: iron another glitch in squaring code path.
    
    This module is used only with odd input lengths, i.e. not used in normal
    PKI cases, on contemporary processors. The problem was "illuminated" by
    fuzzing tests.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6440)
    
    (cherry picked from commit f55ef97b5c0f8559f393b72ebd4b2de32ad6d231)

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

Summary of changes:
 crypto/bn/asm/sparcv9-mont.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/crypto/bn/asm/sparcv9-mont.pl b/crypto/bn/asm/sparcv9-mont.pl
index 30db95e..2043ab0 100644
--- a/crypto/bn/asm/sparcv9-mont.pl
+++ b/crypto/bn/asm/sparcv9-mont.pl
@@ -483,6 +483,9 @@ $code.=<<___;
 	mulx	$npj,$mul1,$acc1
 	add	$tpj,$car1,$car1
 	ld	[$np+$j],$npj			! np[j]
+	srlx	$car1,32,$tmp0
+	and	$car1,$mask,$car1
+	add	$tmp0,$sbit,$sbit
 	add	$acc0,$car1,$car1
 	ld	[$tp+8],$tpj			! tp[j]
 	add	$acc1,$car1,$car1


More information about the openssl-commits mailing list