












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to hash functions in the context of cryptography. It explains the motivation behind using hash functions for message signing and verification, and discusses the properties required for a secure hash function. The document also covers various non-crypto hash functions and their vulnerabilities, as well as popular crypto hashes like md5 and sha-1.
Typology: Slides
1 / 20
This page cannot be seen from the preview
Don't miss anything!













Part 1 Cryptography 1
Part 1 Cryptography 2
o Alice sends M and S = [M]
Alice
to Bob
o Bob verifies that M = {S}
Alice
o Is it OK to just send S?
Alice
o Alice sends M and S = [h(M)]
Alice
to Bob
o Bob verifies that h(M) = {S}
Alice
Part 1 Cryptography 4
N
Part 1 Cryptography 5
o 1 365/365 364/365 (365N+1)/
o Set equal to 1/2 and solve: N = 23
Part 1 Cryptography 7
0
1
2
n-
i
0
1
2
n-
Part 1 Cryptography 8
0
1
2
n-
o h(X) = nX
0
+(n-1)X
1
+(n-2)X
2
n-
o h(10101010,00001111)h(00001111,10101010)
Part 1 Cryptography 10
o 128 bit output
o Note: MD5 collision recently found
o 160 bit output
Part 1 Cryptography 11
o Change to 1 bit of input should affect about
half of output bits
o Avalanche effect after few rounds
o But simple rounds
Part 1 Cryptography 13
Part 1 Cryptography 14
o Alice, Bob, Charlie submit hashes h(A), h(B), h(C)
o All hashes received and posted online
o Then bids A, B and C revealed
Part 1 Cryptography 16
(X
0
,Y
0
(X )
1
,Y
1
)
(0,S)
Two points determine a line
Give (X
0
0
) to Alice
Give (X
1
1
) to Bob
Then Alice and Bob must
cooperate to find secret S
Also works in discrete case
Easy to make “m out of n”
scheme for any m n X
2 out of 2
Part 1 Cryptography 17
(X
0
,Y
0
)
(X
1
,Y
1
)
(0,S)
Give (X
0
0
) to Alice
Give (X
1
1
) to Bob
Give (X
2
2
) to Charlie
Then any two of Alice, Bob
and Charlie can cooperate to
find secret S
But no one can find secret S
A “2 out of 3” scheme X
(X
2
,Y
2
)
2 out of 3
Part 1 Cryptography 19
o Say, three different government agencies
o Two must cooperate to recover the key
Part 1 Cryptography 20
(X
0
,Y
0
)
(X
1
,Y
1
)
(0,K)
0
0
1
1
2
2
(X
2
,Y
2
)