| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6f54c2b commit a9e4fdb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -520,8 +520,9 @@ cipher text should be discarded due to failed authentication. If the tag length | |||
| 520 | 520 | is invalid according to [NIST SP 800-38D][] or does not match the value of the | |
| 521 | 521 | `authTagLength` option, `decipher.setAuthTag()` will throw an error. | |
| 522 | 522 | ||
| 523 | - The `decipher.setAuthTag()` method must be called before | ||
| 524 | - [`decipher.final()`][] and can only be called once. | ||
| 523 | + The `decipher.setAuthTag()` method must be called before [`decipher.update()`][] | ||
| 524 | + for `CCM` mode or before [`decipher.final()`][] for `GCM` and `OCB` modes. | ||
| 525 | + `decipher.setAuthTag()` can only be called once. | ||
| 525 | 526 | ||
| 526 | 527 | ### `decipher.setAutoPadding([autoPadding])` | |
| 527 | 528 | <!-- YAML | |
| Back | FazBrowse Home | New Git URL |
0 commit comments