@@ -1129,6 +1129,9 @@ passing keys as strings or `Buffer`s due to improved security features.
11291129<!-- YAML
11301130added: v11.6.0
11311131changes:
1132+ - version: REPLACEME
1133+ pr-url: https://github.com/nodejs/node/pull/26960
1134+ description: Added support for `'rsa-pss'`
11321135 - version: REPLACEME
11331136 pr-url: https://github.com/nodejs/node/pull/26786
11341137 description: This property now returns `undefined` for KeyObject
@@ -1142,8 +1145,18 @@ changes:
11421145-->
11431146* {string}
11441147
1145- For asymmetric keys, this property represents the type of the embedded key
1146- (` 'rsa' ` , ` 'dsa' ` , ` 'ec' ` , ` 'ed25519' ` , ` 'ed448' ` , ` 'x25519' ` or ` 'x448' ` ).
1148+ For asymmetric keys, this property represents the type of the key. Supported key
1149+ types are:
1150+
1151+ * ` 'rsa' ` (OID 1.2.840.113549.1.1.1)
1152+ * ` 'rsa-pss' ` (OID 1.2.840.113549.1.1.10)
1153+ * ` 'dsa' ` (OID 1.2.840.10040.4.1)
1154+ * ` 'ec' ` (OID 1.2.840.10045.2.1)
1155+ * ` 'x25519' ` (OID 1.3.101.110)
1156+ * ` 'x448' ` (OID 1.3.101.111)
1157+ * ` 'ed25519' ` (OID 1.3.101.112)
1158+ * ` 'ed448' ` (OID 1.3.101.113)
1159+
11471160This property is ` undefined ` for unrecognized ` KeyObject ` types and symmetric
11481161keys.
11491162
@@ -1271,6 +1284,9 @@ console.log(verify.verify(publicKey, signature));
12711284<!-- YAML
12721285added: v0.1.92
12731286changes:
1287+ - version: REPLACEME
1288+ pr-url: https://github.com/nodejs/node/pull/26960
1289+ description: This function now supports RSA-PSS keys.
12741290 - version: v11.6.0
12751291 pr-url: https://github.com/nodejs/node/pull/24234
12761292 description: This function now supports key objects.
@@ -1296,7 +1312,9 @@ object, the following additional properties can be passed:
12961312 * ` crypto.constants.RSA_PKCS1_PSS_PADDING `
12971313
12981314 Note that ` RSA_PKCS1_PSS_PADDING ` will use MGF1 with the same hash function
1299- used to sign the message as specified in section 3.1 of [ RFC 4055] [ ] .
1315+ used to sign the message as specified in section 3.1 of [ RFC 4055] [ ] , unless
1316+ an MGF1 hash function has been specified as part of the key in compliance with
1317+ section 3.3 of [ RFC 4055] [ ] .
13001318* ` saltLength ` : {integer} - salt length for when padding is
13011319 ` RSA_PKCS1_PSS_PADDING ` . The special value
13021320 ` crypto.constants.RSA_PSS_SALTLEN_DIGEST ` sets the salt length to the digest
@@ -1369,6 +1387,9 @@ This can be called many times with new data as it is streamed.
13691387<!-- YAML
13701388added: v0.1.92
13711389changes:
1390+ - version: REPLACEME
1391+ pr-url: https://github.com/nodejs/node/pull/26960
1392+ description: This function now supports RSA-PSS keys.
13721393 - version: v11.7.0
13731394 pr-url: https://github.com/nodejs/node/pull/25217
13741395 description: The key can now be a private key.
@@ -1395,7 +1416,9 @@ object, the following additional properties can be passed:
13951416 * ` crypto.constants.RSA_PKCS1_PSS_PADDING `
13961417
13971418 Note that ` RSA_PKCS1_PSS_PADDING ` will use MGF1 with the same hash function
1398- used to verify the message as specified in section 3.1 of [ RFC 4055] [ ] .
1419+ used to verify the message as specified in section 3.1 of [ RFC 4055] [ ] , unless
1420+ an MGF1 hash function has been specified as part of the key in compliance with
1421+ section 3.3 of [ RFC 4055] [ ] .
13991422* ` saltLength ` : {integer} - salt length for when padding is
14001423 ` RSA_PKCS1_PSS_PADDING ` . The special value
14011424 ` crypto.constants.RSA_PSS_SALTLEN_DIGEST ` sets the salt length to the digest
0 commit comments