File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1232,6 +1232,9 @@ passing keys as strings or `Buffer`s due to improved security features.
1232
1232
<!-- YAML
1233
1233
added: v11.6.0
1234
1234
changes:
1235
+ - version: REPLACEME
1236
+ pr-url: https://github.com/nodejs/node/pull/31178
1237
+ description: Added support for `'dh'`.
1235
1238
- version: v12.0.0
1236
1239
pr-url: https://github.com/nodejs/node/pull/26960
1237
1240
description: Added support for `'rsa-pss'`
@@ -1260,6 +1263,7 @@ types are:
1260
1263
* ` 'x448' ` (OID 1.3.101.111)
1261
1264
* ` 'ed25519' ` (OID 1.3.101.112)
1262
1265
* ` 'ed448' ` (OID 1.3.101.113)
1266
+ * ` 'dh' ` (OID 1.2.840.113549.1.3.1)
1263
1267
1264
1268
This property is ` undefined ` for unrecognized ` KeyObject ` types and symmetric
1265
1269
keys.
Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ constexpr size_t kFsStatsBufferLength =
194
194
V (commonjs_string, " commonjs" ) \
195
195
V (config_string, " config" ) \
196
196
V (constants_string, " constants" ) \
197
+ V (crypto_dh_string, " dh" ) \
197
198
V (crypto_dsa_string, " dsa" ) \
198
199
V (crypto_ec_string, " ec" ) \
199
200
V (crypto_ed25519_string, " ed25519" ) \
Original file line number Diff line number Diff line change @@ -3326,6 +3326,8 @@ Local<Value> KeyObject::GetAsymmetricKeyType() const {
3326
3326
return env ()->crypto_rsa_pss_string ();
3327
3327
case EVP_PKEY_DSA:
3328
3328
return env ()->crypto_dsa_string ();
3329
+ case EVP_PKEY_DH:
3330
+ return env ()->crypto_dh_string ();
3329
3331
case EVP_PKEY_EC:
3330
3332
return env ()->crypto_ec_string ();
3331
3333
case EVP_PKEY_ED25519:
You can’t perform that action at this time.
0 commit comments