Name: StreamHash5
Digest size: 512 bits
Performance: ~0.55 cpb on Intel Skylake
The architecture of traditional hash functions, also known as MerkleβDamgΓ₯rd construction, is based on iterative processing their state block and successive input blocks with a one-way compression function. The StreamHash family of hash functions does not use a compression function. Instead of a single state block, they use a vector of independently processed state values. Each input block is mixed with each state vector value, and then transformed with an nonlinear functions. A different non-linear function is used to transform each state vector value.
Security of the MerkleβDamgΓ₯rd construction is based on the attacker being unable to control the output of the compression function. Dissimilarly, security of the StreamHash family is based the attacker being able to only control one value of the state vector at a time. Replacement of the complex, multi-round compression function with a simple, invertible, non-linear transformation results in material performance improvement, while maintaining the required security properties.
StreamHash5 state vector consists of 4 elements. The state vector is transformed with non-linear functions based on the well-studied AES round.
F1β(x) = aesenc(x, constβ)
F2β(x) = aesenc(aesenc(x, constβ), constβ)
Two AES rounds ensure full bit diffusion.
The initial digits of the Ο number are used as the constββ¦constβ values.
constβ constβ constβ constβ
(16 B) (16 B) (16 B) (16 B)
β β β β
inputβββββ³βΏβββββββ³βΏβββββββ³βΏββββββββββββ128
(16 B) βΎβΎ βΎβΎ βΎβΎ βΎβΎβΎ
[XOR] [XOR] [XOR] [XOR]
β β β β
βΎ βΎ βΎ βΎ
[F2β] [F2β] [F2β] [F2β]
β β β β
inputβββββ³βΏβββββββ³βΏβββββββ³βΏββββββββββββ256
(16 B) βΎβΎ βΎβΎ βΎβΎ βΎβΎβΎ
[XOR] [XOR] [XOR] [XOR]
β β β β
βΎ βΎ βΎ βΎ
[F2β] [F2β] [F2β] [F2β]
β β β β
β β β β
β β β β
β β β β
inputβββββ³βΏβββββββ³βΏβββββββ³βΏββββββββββββtotal input bits
(<=16 B) βΎβΎ βΎβΎ βΎβΎ βΎβΎβΎ
[XOR] [XOR] [XOR] [XOR]
β β β β
βΎ βΎ βΎ βΎ
[F2β] [F2β] [F2β] [F2β]
β β β β
βΎ βΎ βΎ βΎ
(intβ) (intβ) (intβ) (intβ)
constβ constβ constβ constβ
β β β β
intβββββ³βΏβββββββ³βΏβββββββ³βΏββββββββ
βΎβΎ βΎβΎ βΎβΎ βΎβΎ
[XOR] [XOR] [XOR] [XOR]
β β β β
βΎ βΎ βΎ βΎ
[F1β] [F1β] [F1β] [F1β]
β β β β
intβββββ³βΏβββββββ³βΏβββββββ³βΏββββββββ
βΎβΎ βΎβΎ βΎβΎ βΎβΎ
[XOR] [XOR] [XOR] [XOR]
β β β β
βΎ βΎ βΎ βΎ
[F1β] [F1β] [F1β] [F1β]
β β β β
β β β β (9 rounds skipped)
β β β β
intβββββ³βΏβββββββ³βΏβββββββ³βΏββββββββ
βΎβΎ βΎβΎ βΎβΎ βΎβΎ
[XOR] [XOR] [XOR] [XOR]
β β β β
βΎ βΎ βΎ βΎ
[F1β] [F1β] [F1β] [F1β]
β β β β
intβββββ³βΏβββββββ³βΏβββββββ³βΏββββββββ
βΎβΎ βΎβΎ βΎβΎ βΎβΎ
[XOR] [XOR] [XOR] [XOR]
β β β β
βΎ βΎ βΎ βΎ
(outβ) (outβ) (outβ) (outβ)
(message digest)
Computing preimage is presumed to be roughly equivalent to breaking 13 rounds of AES.
There are currently no known second preimage attacks easier than the generic bruteforce attack.
There are currently no known collision attacks easier than the generic birthday attack.
Noteworthy, creating freestart collisions appears to be feasible. No complexity estimation for this attack is currently available. We encourage further research of this topic.
Also, no path was proposed to use a freestart collision to achieve a full StreamHash5 collision.