Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Whirlpool (hash function)

From Wikipedia, the free encyclopedia
Cryptographic hash function
"WHIRLPOOL" redirects here. For other uses, seeWhirlpool (disambiguation).
Whirlpool
General
DesignersVincent Rijmen,Paulo S. L. M. Barreto
First published2000, 2001, 2003
Derived fromSquare,AES
CertificationNESSIE
Detail
Digest sizes512 bits
Security claimsLarge hashsum size
StructureMiyaguchi-Preneel
Rounds10
Best publiccryptanalysis
In 2009, arebound attack was announced that presents full collisions against 4.5 rounds of Whirlpool in 2120 operations, semi-free-start collisions against 5.5 rounds in 2120 time and semi-free-start near-collisions against 7.5 rounds in 2128 time.[1]

Incomputer science andcryptography,Whirlpool (sometimes styledWHIRLPOOL) is acryptographic hash function. It was designed byVincent Rijmen (co-creator of theAdvanced Encryption Standard) andPaulo S. L. M. Barreto, who first described it in 2000.

The hash has been recommended by theNESSIE project. It has also been adopted by theInternational Organization for Standardization (ISO) and theInternational Electrotechnical Commission (IEC) as part of the joint ISO/IEC 10118-3international standard.

Design features

[edit]
TheWhirlpool Galaxy (M51), which inspired the name of the algorithm.[2]

Whirlpool is a hash designed after theSquareblock cipher, and is considered to be in that family of block cipher functions.

Whirlpool is aMiyaguchi-Preneel construction based on a substantially modifiedAdvanced Encryption Standard (AES).

Whirlpool takes a message of any length less than 2256 bits and returns a 512-bitmessage digest.[3]

The authors have declared that

"WHIRLPOOL is not (and will never be)patented. It may be used free of charge for any purpose."[2]

Version changes

[edit]

The original Whirlpool will be calledWhirlpool-0, the first revision of Whirlpool will be calledWhirlpool-T and the latest version will be calledWhirlpool in the following test vectors.

  • In the first revision in 2001, theS-box was changed from a randomly generated one with good cryptographic properties to one which has better cryptographic properties and is easier to implement in hardware.
  • In the second revision (2003), a flaw in thediffusion matrix was found that lowered the estimated security of the algorithm below its potential.[4] Changing the 8x8 rotating matrix constants from (1, 1, 3, 1, 5, 8, 9, 5) to (1, 1, 4, 1, 8, 5, 2, 9) solved this issue.

Internal structure

[edit]

The Whirlpool hash function is aMerkle–Damgård construction based on anAES-likeblock cipher W inMiyaguchi–Preneel mode.[2]

Theblock cipher W consists of an 8×8 state matrixS{\displaystyle S} of bytes, for a total of 512 bits.

The encryption process consists of updating the state with four round functions over 10 rounds. The four round functions are SubBytes (SB), ShiftColumns (SC), MixRows (MR) and AddRoundKey (AK). During each round the new state is computed asS=AKMRSCSB(S){\displaystyle S=AK\circ MR\circ SC\circ SB(S)}.

SubBytes

[edit]

TheSubBytes operation applies a non-linear permutation (the S-box) to each byte of the state independently. The 8-bit S-box is composed of 3 smaller 4-bit S-boxes.

ShiftColumns

[edit]

TheShiftColumns operation cyclically shifts each byte in each column of the state. Columnj has its bytes shifted downwards byj positions.

MixRows

[edit]

TheMixRows operation is a right-multiplication of each row by an 8×8 matrix overGF(28){\displaystyle GF({2^{8}})}. The matrix is chosen such that thebranch number (an important property when looking at resistance todifferential cryptanalysis) is 9, which is maximal.

AddRoundKey

[edit]

TheAddRoundKey operation uses bitwisexor to add a key calculated by the key schedule to the current state. The key schedule is identical to the encryption itself, except the AddRoundKey function is replaced by anAddRoundConstant function that adds a predetermined constant in each round.

Whirlpool hashes

[edit]

The Whirlpool algorithm has undergone two revisions since its original 2000 specification.

People incorporating Whirlpool will most likely use the most recent revision of Whirlpool; while there are no known security weaknesses in earlier versions of Whirlpool, the most recent revision has better hardware implementation efficiency characteristics, and is also likely to be more secure. As mentioned earlier, it is also the version adopted in the ISO/IEC 10118-3international standard.

The 512-bit (64-byte) Whirlpool hashes (also termedmessage digests) are typically represented as 128-digithexadecimal numbers.
The following demonstrates a 43-byteASCII input (not including quotes) and the corresponding Whirlpool hashes:

VersionInput StringComputed Hash
Whirlpool-0"The quick brown fox jumps over the lazy dog"
 4F8F5CB531E3D49A61CF417CD133792CCFA501FD8DA53EE368FED20E5FE0248C 3A0B64F98A6533CEE1DA614C3A8DDEC791FF05FEE6D971D57C1348320F4EB42D
Whirlpool-T"The quick brown fox jumps over the lazy dog"
 3CCF8252D8BBB258460D9AA999C06EE38E67CB546CFFCF48E91F700F6FC7C183 AC8CC3D3096DD30A35B01F4620A1E3A20D79CD5168544D9E1B7CDF49970E87F1
Whirlpool"The quick brown fox jumps over the lazy dog"
 B97DE512E91E3828B40D2B0FDCE9CEB3C4A71F9BEA8D88E75C4FA854DF36725F D2B52EB6544EDCACD6F8BEDDFEA403CB55AE31F03AD62A5EF54E42EE82C3FB35

Implementations

[edit]

The authors providereference implementations of the Whirlpool algorithm, including a version written inC and a version written inJava.[2] These reference implementations have been released into the public domain.[2]

Research on the security analysis of the Whirlpool function however, has revealed that on average, the introduction of 8 random faults is sufficient to compromise the 512-bit Whirlpool hash message being processed and the secret key of HMAC-Whirlpool within the context of Cloud of Things (CoTs). This emphasizes the need for increased security measures in its implementation.[5]

Adoption

[edit]

Two of the first widely used mainstream cryptographic programs that started using Whirlpool wereFreeOTFE, followed byTrueCrypt in 2005.[citation needed]

VeraCrypt (a fork ofTrueCrypt) included Whirlpool (the final version) as one of its supported hash algorithms.[6]

See also

[edit]

References

[edit]
  1. ^Florian Mendel1, Christian Rechberger, Martin Schläffer, Søren S. Thomsen (2009-02-24).The Rebound Attack: Cryptanalysis of Reduced Whirlpool and Grøstl(PDF). Fast Software Encryption: 16th International Workshop.{{cite conference}}: CS1 maint: multiple names: authors list (link) CS1 maint: numeric names: authors list (link)
  2. ^abcdePaulo S. L. M. Barreto (2008-11-25)."The WHIRLPOOL Hash Function". Archived fromthe original on 2017-11-29. Retrieved2018-08-09.
  3. ^Barreto, Paulo S. L. M. & Rijmen, Vincent (2003-05-24)."The WHIRLPOOL Hashing Function". Archived fromthe original(ZIP) on 2017-10-26. Retrieved2018-08-09.{{cite journal}}:Cite journal requires|journal= (help)
  4. ^Kyoji, Shibutani & Shirai, Taizo (2003-03-11)."On the diffusion matrix employed in the Whirlpool hashing function"(PDF). Retrieved2018-08-09.{{cite journal}}:Cite journal requires|journal= (help)
  5. ^Li, W., Gao, Z., Gu, D., Ge, C., Liao, L., Zhou, Z., Liu, Y., & Liu, Z. (2017). Security Analysis of the Whirlpool Hash Function in the Cloud of Things. KSII Transactions on Internet and Information Systems, 11(1), 536–551.https://doi.org/10.3837/tiis.2017.01.028
  6. ^"Whirlpool".VeraCrypt Documentation. IDRIX. Retrieved2018-08-09.

External links

[edit]
Common functions
SHA-3 finalists
Other functions
Password hashing/
key stretching functions
General purpose
key derivation functions
MAC functions
Authenticated
encryption
modes
Attacks
Design
Standardization
Utilization
General
Mathematics
1–9999
10000–19999
20000–29999
30000+
Retrieved from "https://en.wikipedia.org/w/index.php?title=Whirlpool_(hash_function)&oldid=1305283485"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp