HOME

TheInfoList



OR:

The pseudo-Hadamard transform is a reversible transformation of a bit string that provides cryptographic diffusion. See
Hadamard transform The Hadamard transform (also known as the Walsh–Hadamard transform, Hadamard–Rademacher–Walsh transform, Walsh transform, or Walsh–Fourier transform) is an example of a generalized class of Fourier transforms. It performs an orthogonal ...
. 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, ''a''' and ''b''', from these we use the equations: :a' = a + b \, \pmod :b' = a + 2b\, \pmod To reverse this, clearly: :b = b' - a' \, \pmod :a = 2a' - b' \, \pmod


Generalization

The above equations can be expressed in
matrix algebra In abstract algebra, a matrix ring is a set of matrices with entries in a ring ''R'' that form a ring under matrix addition and matrix multiplication . The set of all matrices with entries in ''R'' is a matrix ring denoted M''n''(''R'')Lang, ''U ...
, by considering ''a'' and ''b'' as two elements of a vector, and the transform itself as multiplication by a matrix of the form: :H_1 = \begin 2 & 1 \\ 1 & 1 \end The inverse can then be derived by inverting the matrix. However, the matrix can be generalised to higher dimensions, allowing vectors of any power-of-two size to be transformed, using the following recursive rule: :H_n = \begin 2 \times H_ & H_ \\ H_ & H_ \end For example: :H_2 = \begin 4 & 2 & 2 & 1 \\ 2 & 2 & 1 & 1 \\ 2 & 1 & 2 & 1 \\ 1 & 1 & 1 & 1 \end


See also

*
SAFER In cryptography, SAFER (Secure And Fast Encryption Routine) is the name of a family of block ciphers designed primarily by James Massey (one of the designers of IDEA) on behalf of Cylink Corporation. The early SAFER K and SAFER SK designs share ...
*
Twofish In cryptography, Twofish is a symmetric key block cipher with a block size of 128 bits and key sizes up to 256 bits. It was one of the five finalists of the Advanced Encryption Standard contest, but it was not selected for standardization. Twof ...
This is the Kronecker product of an Arnold Cat Map matrix with a Hadamard matrix.


References

* James Massey, "On the Optimality of SAFER+ Diffusion", 2nd AES Conference, 1999

* Bruce Schneier, John Kelsey, Doug Whiting, David Wagner, Chris Hall, "
Twofish In cryptography, Twofish is a symmetric key block cipher with a block size of 128 bits and key sizes up to 256 bits. It was one of the five finalists of the Advanced Encryption Standard contest, but it was not selected for standardization. Twof ...
: A 128-Bit Block cipher, Block Cipher", 1998

* Helger Lipmaa. On Differential Properties of Pseudo-Hadamard Transform and Related Mappings. INDOCRYPT 2002, LNCS 2551, pp 48-61, 200

{{crypto-stub


External links


Fast Pseudo-Hadamard Transforms
Theory of cryptography Transforms