crypto: fix Argon2 bypassing FIPS mode · nodejs/node@ba27e72 · GitHub
Skip to content

Commit ba27e72

Browse files
panvaaduh95
authored andcommitted
crypto: fix Argon2 bypassing FIPS mode
The private OSSL_LIB_CTX used for OSSL_set_max_threads() inherits no configuration, so Argon2 escaped FIPS mode and --openssl-config. Check availability against the default context, and create the private one only when lanes > 1. Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #64776 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 5460c46 commit ba27e72

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

deps/ncrypto/ncrypto.cc

Lines changed: 17 additions & 8 deletions

0 commit comments

Comments
 (0)