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:10 +0000 (12:21 +0100)
commit6fd7aa95f08f72fc3cd603fe009e0e74b2edb25d
tree217b9f5be87b1f9cf2755c71cb3b0a833db62f73
parenta9614a81c679d9c1bcc406f0174d9b9e9680500f
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