doc: note that the BN_new() initialises the BIGNUM
authorHubert Kario <hkario@redhat.com>
Fri, 29 Sep 2017 13:36:01 +0000 (15:36 +0200)
committerHubert Kario <hkario@redhat.com>
Fri, 29 Sep 2017 13:36:01 +0000 (15:36 +0200)
commit6787c60df982fe7631c97ca91eff83b5efac017f
tree2ef20f0904e4c3796e68fcb6660f31b9aac1aff4
parenteffdcf6c2a10afea8041addb8ccce2367ecaac0d
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/4442)
doc/crypto/BN_new.pod