@@ -1129,6 +1129,9 @@ passing keys as strings or `Buffer`s due to improved security features.
1129
1129
<!-- YAML
1130
1130
added: v11.6.0
1131
1131
changes:
1132
+ - version: REPLACEME
1133
+ pr-url: https://github.com/nodejs/node/pull/26960
1134
+ description: Added support for `'rsa-pss'`
1132
1135
- version: REPLACEME
1133
1136
pr-url: https://github.com/nodejs/node/pull/26786
1134
1137
description: This property now returns `undefined` for KeyObject
@@ -1142,8 +1145,18 @@ changes:
1142
1145
-->
1143
1146
* {string}
1144
1147
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
+
1147
1160
This property is ` undefined ` for unrecognized ` KeyObject ` types and symmetric
1148
1161
keys.
1149
1162
@@ -1271,6 +1284,9 @@ console.log(verify.verify(publicKey, signature));
1271
1284
<!-- YAML
1272
1285
added: v0.1.92
1273
1286
changes:
1287
+ - version: REPLACEME
1288
+ pr-url: https://github.com/nodejs/node/pull/26960
1289
+ description: This function now supports RSA-PSS keys.
1274
1290
- version: v11.6.0
1275
1291
pr-url: https://github.com/nodejs/node/pull/24234
1276
1292
description: This function now supports key objects.
@@ -1296,7 +1312,9 @@ object, the following additional properties can be passed:
1296
1312
* ` crypto.constants.RSA_PKCS1_PSS_PADDING `
1297
1313
1298
1314
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] [ ] .
1300
1318
* ` saltLength ` : {integer} - salt length for when padding is
1301
1319
` RSA_PKCS1_PSS_PADDING ` . The special value
1302
1320
` 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.
1369
1387
<!-- YAML
1370
1388
added: v0.1.92
1371
1389
changes:
1390
+ - version: REPLACEME
1391
+ pr-url: https://github.com/nodejs/node/pull/26960
1392
+ description: This function now supports RSA-PSS keys.
1372
1393
- version: v11.7.0
1373
1394
pr-url: https://github.com/nodejs/node/pull/25217
1374
1395
description: The key can now be a private key.
@@ -1395,7 +1416,9 @@ object, the following additional properties can be passed:
1395
1416
* ` crypto.constants.RSA_PKCS1_PSS_PADDING `
1396
1417
1397
1418
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] [ ] .
1399
1422
* ` saltLength ` : {integer} - salt length for when padding is
1400
1423
` RSA_PKCS1_PSS_PADDING ` . The special value
1401
1424
` crypto.constants.RSA_PSS_SALTLEN_DIGEST ` sets the salt length to the digest
0 commit comments