Skip to content

Commit 653e69d

Browse files
committed
doc: clarify getAuthTag with authTagLength
Refs: nodejs#40272 Refs: nodejs#20235
1 parent 2e2a6fe commit 653e69d

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)