diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-03-19 15:41:01 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 11:11:01 +0530 |
commit | b0c687c1d2dc26e8c56f4abb4b6ff5c06a9ed9dc (patch) | |
tree | fabf46e89171a4cb14be9240419a1282cb307e28 /ext/node | |
parent | d366cf77e1b3da794f07b088233fc4f1e72c31ad (diff) |
fix(ext/node): support Diffie-Hellman key type in `crypto.createPrivateKey()` (#22984)
Towards #22489
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/ops/crypto/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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")), } } |