You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
crypto.generateKeyPair generates error ERR_OSSL_CRYPTO_MALLOC_FAILURE in node 17.2.0 #41428
Not sure if it's intended or not, but the error only occurs when the private key encryption passphrase is empty, when one is provided this works as expected, likewise when no encryption is requested it's fine.
Activity
panva commentedon Jan 7, 2022
Not sure if it's intended or not, but the error only occurs when the private key encryption passphrase is empty, when one is provided this works as expected, likewise when no encryption is requested it's fine.
cc @nodejs/crypto
Raynos commentedon Jan 7, 2022
I'm using this in my test suite, setting
passphraseto a string like'hello'does indeed allow me to run my test suite on both node 16 and node 17.RaisinTen commentedon Jan 14, 2022
I think this is a bug in OpenSSL, so I sent a report with my findings: openssl/openssl#17506
RaisinTen commentedon Jan 14, 2022
Also, cc @tniessen since you had worked on #35914
RaisinTen commentedon Jan 28, 2022
My fix landed in the OpenSSL repo: openssl/openssl#17507! Will cherry-pick it to https://github.com/quictls/openssl tomorrow.
mhdawson commentedon Feb 28, 2022
@RaisinTen was this cherry picked over?
RaisinTen commentedon Mar 1, 2022
@mhdawson I had sent the cherry-pick PR to the quictls repo - quictls/openssl#75 but I'm yet to get a review from the maintainers.
mhdawson commentedon Mar 1, 2022
Thanks for the update, was just wondering if it was progressing.,
RaisinTen commentedon Mar 13, 2022
Sent a cherry-pick pr to Node.js anyways because my change has already landed in the openssl repo - #42319
test,crypto: add and update empty passphrase regression tests
test,crypto: add and update empty passphrase regression tests
test,crypto: add and update empty passphrase regression tests
test,crypto: add and update empty passphrase regression tests
test,crypto: add and update empty passphrase regression tests
test,crypto: add and update empty passphrase regression tests