6. Cryptography: hash functions and MACs Flashcards
What is a one way function?
A function f is one-way if for all y there is no efficient algorithm to compute x such that f(x) = y
What is a collision resistant function?
A function f is collision resistant if there is no efficient algorithm that can find m1, m2 such that f(m1) = f(m2)
What is the Merkle–Damgård construction?
Builds a collision-resistant cryptographic hash functions from collision-resistant one-way compression functions Split the message (padded with its length) into fixed blocks, feed each block combined with the output of the previous round into the function (use initialisation vector for first)
How do you encrypt with RSA?
m^e mod n where m is the message, and (e, n) is the encryption key
How do you decrypt with RSA?
c^d mod n where c is the ciphertext, and (d, n) is the decryption key
Show RSA is consistent