Pseudo-Hadamard transform

Pseudo-Hadamard transform

The pseudo-Hadamard transform is a reversible transformation of a bit string that provides cryptographic diffusion. See Hadamard transform.

The bit string must be of even length, so 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{2^n},

:b' = a + 2b, pmod{2^n},

To reverse this, clearly:

:b = b' - a' , pmod{2^n}

:a = 2a' - b' , pmod{2^n}

Generalisation

The above equations can be expressed in matrix algebra, 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 = egin{bmatrix} 2 & 1 \ 1 & 1 end{bmatrix}

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 = egin{bmatrix} 2 imes H_{n-1} & H_{n-1} \ H_{n-1} & H_{n-1} end{bmatrix}

For example:

:H_2 = egin{bmatrix} 4 & 2 & 2 & 1 \ 2 & 2 & 1 & 1 \ 2 & 1 & 2 & 1 \ 1 & 1 & 1 & 1 end{bmatrix}

ee also

* SAFER
* Twofish

References

* James Massey, "On the Optimality of SAFER+ Diffusion", 2nd AES Conference, 1999. [http://csrc.nist.gov/CryptoToolkit/aes/round1/conf2/papers/massey.pdf]
* Bruce Schneier, John Kelsey, Doug Whiting, David Wagner, Chris Hall, "Twofish: A 128-Bit Block Cipher", 1998. [http://www.schneier.com/paper-twofish-paper.html]
* Helger Lipmaa. On Differential Properties of Pseudo-Hadamard Transform and Related Mappings. INDOCRYPT 2002, LNCS 2551, pp 48-61, 2002.

External links

* [http://eprint.iacr.org/2004/010.pdf Fast Pseudo-Hadamard Transforms]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • 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 is named for the French… …   Wikipedia

  • Transformation de Hadamard-Walsh — Transformée de Hadamard La transformée d´Hadamard (aussi connue sous le nom de « transformée de Walsh Hadamard ») est un exemple d une classe généralisée d une transformée de Fourier. Elle est nommée d après le mathématicien français… …   Wikipédia en Français

  • Transformee de Hadamard — Transformée de Hadamard La transformée d´Hadamard (aussi connue sous le nom de « transformée de Walsh Hadamard ») est un exemple d une classe généralisée d une transformée de Fourier. Elle est nommée d après le mathématicien français… …   Wikipédia en Français

  • Transformée de hadamard — La transformée d´Hadamard (aussi connue sous le nom de « transformée de Walsh Hadamard ») est un exemple d une classe généralisée d une transformée de Fourier. Elle est nommée d après le mathématicien français Jacques Hadamard et… …   Wikipédia en Français

  • List of mathematics articles (P) — NOTOC P P = NP problem P adic analysis P adic number P adic order P compact group P group P² irreducible P Laplacian P matrix P rep P value P vector P y method Pacific Journal of Mathematics Package merge algorithm Packed storage matrix Packing… …   Wikipedia

  • Twofish — Infobox block cipher name = Twofish caption = The Twofish algorithm designers = Bruce Schneier publish date = 1998 derived from = Blowfish, SAFER, Square derived to = related to = certification = AES finalist key size = 128, 192 or 256 bits block …   Wikipedia

  • 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… …   Wikipedia

  • PHT — can stand for:* Philippine Time * Pseudo Hadamard transform * Prefix Hash Table …   Wikipedia

  • ABC (block cipher) — Infobox block cipher name = ABC designers = Dieter Schmidt publish date = May 27 2002 derived from = MMB, SAFER derived to = related to = certification = key size = 512 bits block size = 256 bits structure = Substitution permutation network… …   Wikipedia

  • SAFER — Создатель: Джеймс Мэсси Создан: 1993 г. Опубликован …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”