You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to re-initialise the cipher object before decryption. Acorn128 keeps track of the current stream position. The encryption request is for bytes 0 to 15 and the decryption request is for bytes 16 to 31. Because the offsets are different they will encrypt/decrypt differently.
You should call setKey(), setIV(), and optionally addAuthData() again before decryption to reset the stream offset to 0. See the TestAcorn example code for the pattern.
I am trying Acorn128. My trial code is very simple:
And I get wrong decrypted data. Here is the output:
The text was updated successfully, but these errors were encountered: