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 @@ -192,6 +192,7 @@ constexpr size_t kFsStatsBufferLength =
192
192
V (commonjs_string, " commonjs" ) \
193
193
V (config_string, " config" ) \
194
194
V (constants_string, " constants" ) \
195
+ V (crypto_dh_string, " dh" ) \
195
196
V (crypto_dsa_string, " dsa" ) \
196
197
V (crypto_ec_string, " ec" ) \
197
198
V (crypto_ed25519_string, " ed25519" ) \
Original file line number Diff line number Diff line change @@ -3903,6 +3903,8 @@ Local<Value> KeyObject::GetAsymmetricKeyType() const {
3903
3903
return env ()->crypto_rsa_pss_string ();
3904
3904
case EVP_PKEY_DSA:
3905
3905
return env ()->crypto_dsa_string ();
3906
+ case EVP_PKEY_DH:
3907
+ return env ()->crypto_dh_string ();
3906
3908
case EVP_PKEY_EC:
3907
3909
return env ()->crypto_ec_string ();
3908
3910
case EVP_PKEY_ED25519:
You can’t perform that action at this time.
0 commit comments