Skip to content

Update crypto.md to correct description of `decipher.setAuthTag`

Rodrigo Muino Tomonari requested to merge github/fork/jbuhacoff/patch-2 into master

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 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.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading