Skip to content

Commit

Permalink
doc: clarify getAuthTag with authTagLength
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Nov 3, 2021
1 parent 2e2a6fe commit e20da31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e20da31

Please sign in to comment.