crypto/bn: add more fixed-top routines.
authorAndy Polyakov <appro@openssl.org>
Fri, 10 Aug 2018 17:31:22 +0000 (19:31 +0200)
committerAndy Polyakov <appro@openssl.org>
Tue, 28 Aug 2018 17:34:55 +0000 (19:34 +0200)
commit387d170b32ceeac450bfa50b81db9db9179dc880
tree55371091f0d01d939b6cc05a924172f8609a37a8
parent19096672b48b3282bb9f11c4adadbcdd545f54a3
crypto/bn: add more fixed-top routines.

Add bn_mul_fixed_top, bn_from_mont_fixed_top, bn_mod_sub_fixed_top.
Switch to bn_{mul|sqr}_fixed_top in bn_mul_mont_fixed_top and remove
memset in bn_from_montgomery_word.

(cherry picked from commit fcc4ee09473cac511eca90faa003661c7786e4f9)

Resolved conflicts:
crypto/bn/bn_mod.c
crypto/bn_int.h

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/6942)
crypto/bn/bn_mod.c
crypto/bn/bn_mont.c
crypto/bn/bn_mul.c
crypto/bn/bn_sqr.c
crypto/bn_int.h