@@ -1321,6 +1321,11 @@ This property is deprecated. Please use `crypto.setFips()` and
13211321<!-- YAML
13221322added: v0.1.94
13231323deprecated: v10.0.0
1324+ changes:
1325+ - version: REPLACEME
1326+ pr-url: https://github.com/nodejs/node/pull/???
1327+ description: The `authTagLength` option can now be used to produce shorter
1328+ authentication tags in GCM mode and defaults to 16 bytes.
13241329-->
13251330
13261331> Stability: 0 - Deprecated: Use [ ` crypto.createCipheriv() ` ] [ ] instead.
@@ -1336,7 +1341,9 @@ Creates and returns a `Cipher` object that uses the given `algorithm` and
13361341The ` options ` argument controls stream behavior and is optional except when a
13371342cipher in CCM mode is used (e.g. ` 'aes-128-ccm' ` ). In that case, the
13381343` 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.
13401347
13411348The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
13421349recent OpenSSL releases, ` openssl list-cipher-algorithms ` will display the
@@ -1366,6 +1373,10 @@ Adversaries][] for details.
13661373<!-- YAML
13671374added: v0.1.94
13681375changes:
1376+ - version: REPLACEME
1377+ pr-url: https://github.com/nodejs/node/pull/???
1378+ description: The `authTagLength` option can now be used to produce shorter
1379+ authentication tags in GCM mode and defaults to 16 bytes.
13691380 - version: v9.9.0
13701381 pr-url: https://github.com/nodejs/node/pull/18644
13711382 description: The `iv` parameter may now be `null` for ciphers which do not
@@ -1383,7 +1394,9 @@ initialization vector (`iv`).
13831394The ` options ` argument controls stream behavior and is optional except when a
13841395cipher in CCM mode is used (e.g. ` 'aes-128-ccm' ` ). In that case, the
13851396` 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.
13871400
13881401The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
13891402recent OpenSSL releases, ` openssl list-cipher-algorithms ` will display the
0 commit comments