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>
Thu, 23 Aug 2018 20:20:35 +0000 (22:20 +0200)
commitfcc4ee09473cac511eca90faa003661c7786e4f9
treeb632f6792647ed32472a8d898437553df80a5ba3
parent0b89db6b2acb6cca36f812ba51119927563b3cac
crypto/bn: add more fixed-top routines.

Add bn_{mul|sqr}_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.

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