> We had to disable the Tweak at the moment. We are arriving at the wrong 
> result for G2 after Key Injection, but its not readily apparent why (so it 
> has not been fixed). It was disabled at 
> https://github.com/weidai11/cryptopp/commit/f60f21268751.
>
> As soon as we get to the bottom of the key injection issue for tweaks, it 
> will be re-enabled
>

Arg... A typo was holding things up...

The original code used the following in UncheckedSetKey, which is where 
ciphers are keyed:

    m_tweak[2] = m_tweak[0] + m_tweak[1];

The correct code is:

    m_tweak[2] = m_tweak[0] ^ m_tweak[1];

We also needed a helper function for PutDecodedDatumInto. The test vectors 
are little-endian, so they don't copy/paste into a text file.

I'm going to add some test vectors and check-in the change.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to