@@ -1316,6 +1316,11 @@ This property is deprecated. Please use `crypto.setFips()` and
13161316<!-- YAML
13171317added: v0.1.94
13181318deprecated: 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.
13191324-->
13201325
13211326> Stability: 0 - Deprecated: Use [ ` crypto.createCipheriv() ` ] [ ] instead.
@@ -1331,7 +1336,9 @@ Creates and returns a `Cipher` object that uses the given `algorithm` and
13311336The ` options ` argument controls stream behavior and is optional except when a
13321337cipher in CCM mode is used (e.g. ` 'aes-128-ccm' ` ). In that case, the
13331338` 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.
13351342
13361343The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
13371344recent OpenSSL releases, ` openssl list -cipher-algorithms `
@@ -1362,6 +1369,10 @@ Adversaries][] for details.
13621369<!-- YAML
13631370added: v0.1.94
13641371changes:
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.
13651376 - version: v9.9.0
13661377 pr-url: https://github.com/nodejs/node/pull/18644
13671378 description: The `iv` parameter may now be `null` for ciphers which do not
@@ -1379,7 +1390,9 @@ initialization vector (`iv`).
13791390The ` options ` argument controls stream behavior and is optional except when a
13801391cipher in CCM mode is used (e.g. ` 'aes-128-ccm' ` ). In that case, the
13811392` 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.
13831396
13841397The ` algorithm ` is dependent on OpenSSL, examples are ` 'aes192' ` , etc. On
13851398recent OpenSSL releases, ` openssl list -cipher-algorithms `
0 commit comments