Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: correct description of
decipher.setAuthTag
in crypto.md
Calling `decipher.setAuthTag` after `decipher.update` will result in an error like `Unsupported state or unable to authenticate data`. The example code in [CCM mode](https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_ccm_mode) is correct, but to demonstrate the mistake in the documentation you can take the same example and move the `setAuthTag` call to in between `update` and `final` you will see the error.
- Loading branch information