bn/asm/sparcv9-mont.pl: fix squaring code path.
authorAndy Polyakov <appro@openssl.org>
Wed, 22 Mar 2017 09:51:25 +0000 (10:51 +0100)
committerAndy Polyakov <appro@openssl.org>
Fri, 24 Mar 2017 11:21:29 +0000 (12:21 +0100)
commitf49cf4afa0e408c527da08d076fec1159c3620d9
treeeab23bb95b09ad34047fbd5dc251a61495c29313
parent4e5d2aaa41d7e298f93641bad5296a6b4ec2cad4
bn/asm/sparcv9-mont.pl: fix 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: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 120a9e1a825bd0407639bedb1e8e15823cf7a545)
crypto/bn/asm/sparcv9-mont.pl