@@ -1321,6 +1321,11 @@ This property is deprecated. Please use `crypto.setFips()` and
1321
1321
<!-- YAML
1322
1322
added: v0.1.94
1323
1323
deprecated: v10.0.0
1324
+ changes:
1325
+ - version: REPLACEME
1326
+ pr-url: https://github.com/nodejs/node/pull/20235
1327
+ description: The `authTagLength` option can now be used to produce shorter
1328
+ authentication tags in GCM mode and defaults to 16 bytes.
1324
1329
-->
1325
1330
1326
1331
> Stability: 0 - Deprecated: Use [ ` crypto.createCipheriv() ` ] [ ] instead.
@@ -1336,7 +1341,9 @@ Creates and returns a `Cipher` object that uses the given `algorithm` and
1336
1341
The ` options ` argument controls stream behavior and is optional except when a
1337
1342
cipher in CCM mode is used (e.g. ` 'aes-128-ccm' ` ). In that case, the
1338
1343
` authTagLength ` option is required and specifies the length of the
1339
- authentication tag in bytes, see [ CCM mode] [ ] .
1344
+ authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
1345
+ option is not required but can be used to set the length of the authentication
1346
+ tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
1340
1347
1341
1348
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
1342
1349
recent OpenSSL releases, ` openssl list-cipher-algorithms ` will display the
@@ -1366,6 +1373,10 @@ Adversaries][] for details.
1366
1373
<!-- YAML
1367
1374
added: v0.1.94
1368
1375
changes:
1376
+ - version: REPLACEME
1377
+ pr-url: https://github.com/nodejs/node/pull/20235
1378
+ description: The `authTagLength` option can now be used to produce shorter
1379
+ authentication tags in GCM mode and defaults to 16 bytes.
1369
1380
- version: v9.9.0
1370
1381
pr-url: https://github.com/nodejs/node/pull/18644
1371
1382
description: The `iv` parameter may now be `null` for ciphers which do not
@@ -1383,7 +1394,9 @@ initialization vector (`iv`).
1383
1394
The ` options ` argument controls stream behavior and is optional except when a
1384
1395
cipher in CCM mode is used (e.g. ` 'aes-128-ccm' ` ). In that case, the
1385
1396
` authTagLength ` option is required and specifies the length of the
1386
- authentication tag in bytes, see [ CCM mode] [ ] .
1397
+ authentication tag in bytes, see [ CCM mode] [ ] . In GCM mode, the ` authTagLength `
1398
+ option is not required but can be used to set the length of the authentication
1399
+ tag that will be returned by ` getAuthTag() ` and defaults to 16 bytes.
1387
1400
1388
1401
The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
1389
1402
recent OpenSSL releases, ` openssl list-cipher-algorithms ` will display the
0 commit comments