Update crypto.md to correct description of `decipher.setAuthTag`
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), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines