Skip to content

Commit e7f8f7d

Browse files
committed
src: shift more crypto impl details to ncrypto
nodejs/node#54028
1 parent 2030560 commit e7f8f7d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

patches/node/fix_handle_boringssl_and_openssl_incompatibilities.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,18 @@ index 8488fc57faaf722174032c5a927d150c76120d60..c51efc92d4818ee7701b4725585fb7e1
275275

276276
void KeyObjectHandle::CheckEcKeyData(const FunctionCallbackInfo<Value>& args) {
277277
diff --git a/src/crypto/crypto_random.cc b/src/crypto/crypto_random.cc
278-
index 48154df7dc91ed7c0d65323199bc2f59dfc68135..6431e5c3062890975854780d15ecb84370b81770 100644
278+
index b59e394d9a7e2c19fdf1f2b0177753ff488da0fa..91218f49da5392c6f769495ee7f9275a47ce09b1 100644
279279
--- a/src/crypto/crypto_random.cc
280280
+++ b/src/crypto/crypto_random.cc
281-
@@ -140,7 +140,7 @@ Maybe<bool> RandomPrimeTraits::AdditionalConfig(
281+
@@ -134,7 +134,7 @@ Maybe<void> RandomPrimeTraits::AdditionalConfig(
282282

283283
params->bits = bits;
284284
params->safe = safe;
285-
- params->prime.reset(BN_secure_new());
286-
+ params->prime.reset(BN_new());
285+
- params->prime = BignumPointer::NewSecure();
286+
+ params->prime = BignumPointer::New();
287287
if (!params->prime) {
288288
THROW_ERR_CRYPTO_OPERATION_FAILED(env, "could not generate prime");
289-
return Nothing<bool>();
289+
return Nothing<void>();
290290
diff --git a/src/crypto/crypto_rsa.cc b/src/crypto/crypto_rsa.cc
291291
index 23b2b8c56dec8ac600b8f14b78d9e80b7fa3ed3b..e7a8fe4181542252d9142ea9460cacc5b4acd00d 100644
292292
--- a/src/crypto/crypto_rsa.cc

0 commit comments

Comments
 (0)