Skip to main content
HAVAL - A one-way hashing algorithm with variable length output
Faculty of Informatics - Papers (Archive)
  • Yuliang Zheng, University of Wollongong
  • Josef Pieprzyk
  • Jennifer Seberry, University of Wollongong
Publication Date
Publication Details

Yuliang Zheng, Josef Pieprzyk and Jennifer Seberry, HAVAL - A one-way hashing algorithm with variable length output, (Jennifer Seberry and Yuliang Zheng, (Eds.)), Advances in Cryptography - Auscrypt'92, Conference held at the Gold Coast, Australia, December 1992, 718, Lecture Notes in Computer Science, Springer-Verlag, Berlin--Heidelberg--New York, (1993), 83-104.


A one-way hashing algorithm is a deterministic algorithm that compresses an arbitrary long message into a value of specified length. The output value represents the fingerprint or digest of the message. A cryptographically useful property of a one-way hashing algorithm is that it is infeasible to find two distinct messages that have the same fingerprint. This paper proposes a one-way hashing algorithm called HAVAL. HAVAL compresses a message of arbitrary length into a fingerprint of 128, 160, 192, 224 or 256 bits. In addition, HAVAL has a parameter that controls the number of passes a message block (of 1024 bits) is processed. A message block can be processed in 3, 4 or 5 passes. By combining output length with pass, we can provide fifteen (15) choices for practical applications where different levels of security are required. The algorithm is very efficient and particularly suited for 32-bit computers which predominate the current workstation market. Experiments show that HAVAL is 60% faster than MD5 when 3 passes are required, 15% faster than MD5 when 4 passes are required, and as fast as MD5 when full 5 passes are required. It is conjectured that finding two collision messages requires the order of 2n/2 operations, where n is the number of bits in a fingerprint.

Citation Information
Yuliang Zheng, Josef Pieprzyk and Jennifer Seberry. "HAVAL - A one-way hashing algorithm with variable length output" (1993)
Available at: