Cryptographic Hash Functions
Cryptographic Hash Functions
Security (SEIT3062)
What are Cryptographic hash functions?
Hash functions are extremely useful and appear in almost
all information security applications.
A hash function is a mathematical function that converts
a numerical input value into another compressed
numerical value. The input to the hash function is of
arbitrary length but output is always of fixed length.
Values returned by a hash function are called message
digest or simply hash values.
Hash value(h) = H(M) ;
o M = message, H() = Hash function
The following picture is illustrated hash
function:
Features of Hash Functions
Fixed Length Output (Hash Value)
◦ Hash function coverts data of arbitrary length to a fixed length. This
process is often referred to as hashing the data.
◦ In general, the hash is much smaller than the input data, hence hash
functions are sometimes called compression functions.
◦ Since a hash is a smaller representation of a larger data, it is also
referred to as a digest.
◦ Hash function with n bit output is referred to as an n-bit hash function.
Popular hash functions generate values between 160 and 512 bits.
Efficiency of Operation
◦ Generally for any hash function h with input x, computation of h(x) is a
fast operation.
◦ Computationally hash functions are much faster than a symmetric
encryption.
Properties of Hash Functions
Pre-Image Resistance
This property means that it should be computationally hard to reverse a
hash function.
In other words, if a hash function h produced a hash value z, then it should
be a difficult process to find any input value x that hashes to z.
Collision Resistance
This property means it should be hard to find two different inputs of any
length that result in the same hash. This property is also referred to as
collision free hash function.
In other words, for a hash function h, it is hard to find any two different
inputs x and y such that h(x) = h(y).
Popular and Applications of Hash functions
RIPEMD
Secure Hash
Message
Function
Authentication
(SHA)
Message Digital
Digest (MD) Signature