File tree 2 files changed +5
-12
lines changed
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -1290,21 +1290,16 @@ added: REPLACEME
1290
1290
-->
1291
1291
1292
1292
* {Object}
1293
+ * ` modulusLength ` : {number} Key size in bits (RSA, DSA).
1294
+ * ` publicExponent ` : {number} Public exponent (RSA).
1295
+ * ` divisorLength ` : {number} Size of ` q ` in bits (DSA).
1296
+ * ` namedCurve ` : {string} Name of the curve (EC).
1293
1297
1294
1298
This property exists only on asymmetric keys. Depending on the type of the key,
1295
1299
this object contains information about the key. None of the information obtained
1296
1300
through this property can be used to uniquely identify a key or to compromise
1297
1301
the security of the key.
1298
1302
1299
- For ` 'rsa' ` and ` 'rsa-pss' ` keys, this object has the properties ` modulusLength `
1300
- and ` publicExponent ` .
1301
-
1302
- For ` 'dsa' ` keys, this object has the properties ` modulusLength ` and
1303
- ` divisorLength ` .
1304
-
1305
- For ` 'ec' ` keys with a known curve, this object has the string property
1306
- ` namedCurve ` .
1307
-
1308
1303
### ` keyObject.asymmetricKeyType `
1309
1304
<!-- YAML
1310
1305
added: v11.6.0
Original file line number Diff line number Diff line change @@ -132,10 +132,8 @@ const [
132
132
const kAsymmetricKeyType = Symbol ( 'kAsymmetricKeyType' ) ;
133
133
const kAsymmetricKeyDetails = Symbol ( 'kAsymmetricKeyDetails' ) ;
134
134
135
- // TODO: should the returne details object be frozen or otherwise protected
136
- // from manipulation?
137
135
function normalizeKeyDetails ( details = { } ) {
138
- if ( ' publicExponent' in details ) {
136
+ if ( details . publicExponent !== undefined ) {
139
137
return {
140
138
...details ,
141
139
publicExponent :
You can’t perform that action at this time.
0 commit comments