Skip to content

Commit 20d7d65

Browse files
tniessentargos
authored andcommitted
doc: clarify getAuthTag with authTagLength
Refs: #40272 Refs: #20235 PR-URL: #40713 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 75288fb commit 20d7d65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/crypto.md

+3
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,9 @@ added: v1.0.0
551551
The `cipher.getAuthTag()` method should only be called after encryption has
552552
been completed using the [`cipher.final()`][] method.
553553

554+
If the `authTagLength` option was set during the `cipher` instance's creation,
555+
this function will return exactly `authTagLength` bytes.
556+
554557
### `cipher.setAAD(buffer[, options])`
555558

556559
<!-- YAML

0 commit comments

Comments
 (0)