Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call cipher.SetKey() before cipher.BlockSize() (Issue 408)
Variable block size ciphers need the key set before they can return an accurate size for BlockSize(). This issue surfaced during Kalyna testing with authenticated encryption modes. In particular, EAX mode, which effectively uses CMAC: AlgorithmParameters params = MakeParameters(Name::BlockSize(), 64) (Name::IV(), ConstByteArrayParameter((const byte *)iv, 64)); EAX<Kalyna>::Encryption kalyna; kalyna.SetKey(key, 64, params);
- Loading branch information
e226523
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prior to this commit, the result was:
After the commit the result is:
We're making progress.
Also see Issue 408.