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 authored and Michaël Zasso committed 2021-11-09 16:45:46 +01:00
1 parent 1d35950ee0
commit dd601619d3
1 file changed
+3
+3
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