File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -1290,21 +1290,16 @@ added: REPLACEME
12901290-->
12911291
12921292* {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).
12931297
12941298This property exists only on asymmetric keys. Depending on the type of the key,
12951299this object contains information about the key. None of the information obtained
12961300through this property can be used to uniquely identify a key or to compromise
12971301the security of the key.
12981302
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-
13081303### ` keyObject.asymmetricKeyType `
13091304<!-- YAML
13101305added: v11.6.0
Original file line number Diff line number Diff line change @@ -132,10 +132,8 @@ const [
132132 const kAsymmetricKeyType = Symbol ( 'kAsymmetricKeyType' ) ;
133133 const kAsymmetricKeyDetails = Symbol ( 'kAsymmetricKeyDetails' ) ;
134134
135- // TODO: should the returne details object be frozen or otherwise protected
136- // from manipulation?
137135 function normalizeKeyDetails ( details = { } ) {
138- if ( ' publicExponent' in details ) {
136+ if ( details . publicExponent !== undefined ) {
139137 return {
140138 ...details ,
141139 publicExponent :
You can’t perform that action at this time.
0 commit comments