doc: clarify getAuthTag with authTagLength

Refs: https://github.com/nodejs/node/issues/40272
Refs: https://github.com/nodejs/node/pull/20235

PR-URL: https://github.com/nodejs/node/pull/40713
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Tobias Nießen 2021-11-03 17:14:55 +01:00 committed by Michaël Zasso
parent 1d35950ee0
commit dd601619d3
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600

View File

@ -551,6 +551,9 @@ added: v1.0.0
The `cipher.getAuthTag()` method should only be called after encryption has
been completed using the [`cipher.final()`][] method.
If the `authTagLength` option was set during the `cipher` instance's creation,
this function will return exactly `authTagLength` bytes.
### `cipher.setAAD(buffer[, options])`
<!-- YAML