Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Pseudo-Hadamard transform
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
The '''pseudo-Hadamard transform''' is a reversible transformation of a bit string that provides [[diffusion (cryptography)|cryptographic diffusion]]. See [[Hadamard transform]]. The bit string must be of even length so that it can be split into two bit strings ''a'' and ''b'' of equal lengths, each of ''n'' bits. To compute the transform for Twofish algorithm, ''a''<nowiki>'</nowiki> and ''b''<nowiki>'</nowiki>, from these we use the equations: :<math>a' = a + b \, \pmod{2^n}</math> :<math>b' = a + 2b\, \pmod{2^n}</math> To reverse this, clearly: :<math>b = b' - a' \, \pmod{2^n}</math> :<math>a = 2a' - b' \, \pmod{2^n}</math> On the other hand, the transformation for '''SAFER+''' encryption is as follows: :<math>a' = 2a + b \, \pmod{2^n}</math> :<math>b' = a + b\, \pmod{2^n}</math>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)