inspired by a cloudflare diff, cleanse old memory when expanding a bignum.
authortedu <tedu@openbsd.org>
Mon, 5 May 2014 18:38:42 +0000 (18:38 +0000)
committertedu <tedu@openbsd.org>
Mon, 5 May 2014 18:38:42 +0000 (18:38 +0000)
commite7e0ff11ef54730650821e620f023d443925dbea
tree7c975dd8046322cb8faca51893182498a31f2756
parent4671a004574bec2ae4ae776803f6f30b4d53c629
inspired by a cloudflare diff, cleanse old memory when expanding a bignum.
however, instead of trying to audit all the places where a secret bignum
is used, apply the big hammer and clear all bignums when freed.
ok deraadt miod
lib/libcrypto/bn/bn_lib.c
lib/libssl/src/crypto/bn/bn_lib.c