crypto: cleanse provider private key copies · nodejs/node@49f2ae2 · GitHub
Skip to content

Commit 49f2ae2

Browse files
panvaaduh95
authored andcommitted
crypto: cleanse provider private key copies
Clear provider-exported RSA, EC, and DH private BIGNUMs before freeing them. Also cleanse OSSL_PARAM builder copies and the plaintext DER intermediate used for encrypted traditional PEM output. Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #64547 Backport-PR-URL: #65087 Refs: #64211 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent a5d4ac8 commit 49f2ae2

2 files changed

Lines changed: 45 additions & 35 deletions

File tree

deps/ncrypto/ncrypto.cc

Lines changed: 38 additions & 28 deletions

deps/ncrypto/ncrypto.h

Lines changed: 7 additions & 7 deletions

0 commit comments

Comments
 (0)