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