-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop trait for tweakable block ciphers #6
Comments
One thing worth noting is that tweak changes aren't necessarily free (some constructions even use tweak-dependent keys for the underlying block cipher), and an interface that can amortize this may be beneficial. EDIT: Optimally Secure Tweakable Blockciphers may be of interest; it shows tweakable block cipher constructions that can break the birthday bound, though they make use of tweak-dependent keys. EDIT 2: Even in LRW2, the construction works as |
For HCTR the TBC trait would need to recognize Variable Input Lengths and variable tweaks (depending on the AXU it is instantiated with). I don't think |
I will close it in favor of RustCrypto/traits#177. |
Recently added Threefish is a tweakable block cipher, thus we need an appropriate trait for it.
Currently I am thinking of using this:
In addition to it I think tweakable ciphers should auto implement
BlockCipher
using zero tweak.The text was updated successfully, but these errors were encountered: