]> git.ipfire.org Git - thirdparty/openssl.git/commit
bn/bn_lib.c: add BN_FLG_FIXED_TOP flag.
authorAndy Polyakov <appro@openssl.org>
Fri, 6 Jul 2018 13:02:29 +0000 (15:02 +0200)
committerAndy Polyakov <appro@openssl.org>
Thu, 12 Jul 2018 12:52:05 +0000 (14:52 +0200)
commit305b68f1a2b6d4d0aa07a6ab47ac372f067a40bb
tree8dad9c5e9d9f41f89956e504abd72444c8563013
parent6c90182a5f87af1a1e462536e7123ad2afb84c43
bn/bn_lib.c: add BN_FLG_FIXED_TOP flag.

The new flag marks vectors that were not treated with bn_correct_top,
in other words such vectors are permitted to be zero padded. For now
it's BN_DEBUG-only flag, as initial use case for zero-padded vectors
would be controlled Montgomery multiplication/exponentiation, not
general purpose. For general purpose use another type might be more
appropriate. Advantage of this suggestion is that it's possible to
back-port it...

bn/bn_div.c: fix memory sanitizer problem.
bn/bn_sqr.c: harmonize with BN_mul.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: David Benjamin <davidben@google.com>
(Merged from https://github.com/openssl/openssl/pull/6662)
crypto/bn/bn_div.c
crypto/bn/bn_lcl.h
crypto/bn/bn_lib.c
crypto/bn/bn_sqr.c