From b0c687c1d2dc26e8c56f4abb4b6ff5c06a9ed9dc Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Tue, 19 Mar 2024 15:41:01 +1000 Subject: fix(ext/node): support Diffie-Hellman key type in `crypto.createPrivateKey()` (#22984) Towards #22489 Signed-off-by: Asher Gomez --- ext/node/ops/crypto/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') diff --git a/ext/node/ops/crypto/mod.rs b/ext/node/ops/crypto/mod.rs index cf44f48f7..3b33be3fc 100644 --- a/ext/node/ops/crypto/mod.rs +++ b/ext/node/ops/crypto/mod.rs @@ -1607,6 +1607,7 @@ pub fn op_node_create_public_key( named_curve: named_curve.to_string(), }) } + DH_KEY_AGREEMENT_OID => Ok(AsymmetricKeyDetails::Dh), _ => Err(type_error("Unsupported algorithm")), } } -- cgit v1.2.3