doc: note that the BN_new() initialises the BIGNUM
authorHubert Kario <hkario@redhat.com>
Fri, 29 Sep 2017 13:40:43 +0000 (15:40 +0200)
committerRich Salz <rsalz@openssl.org>
Fri, 29 Sep 2017 16:53:14 +0000 (12:53 -0400)
commitd9a38e859dfe30a112c421dc7b32821370efd805
tree1295012d42c113ad63fd4480f1339f52bfb19c35
parent20d2aaf22e54d07ead144c5e79fdaf6903cdbf2d
doc: note that the BN_new() initialises the BIGNUM

BN_new() and BN_secure_new() not only allocate memory, but also
initialise it to deterministic value - 0.

Document that behaviour to make it explicit

backport from #4438

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4443)
doc/crypto/BN_new.pod