Hashing Flashcards
When is the function f: X -> Y one way?
A function is one way if its easy to compute but given y in Y it is difficult find an x in X with f(x) = y
When is a function f: X -> Y weakly collision resistant?
If for a given X it is difficult to find x’ in X different with f(x) = f(x’)
When is a function f: X -> Y is strongly collision resistant?
If it is difficult to find any x and x’ such that f(x) = f(x’)
What are the requirements for a good cryptographic hash function?
A cryptographic hash function is one-way and strongly collision-resistant
What does it mean to be weakly collision resistant?
A hash function is weakly collision resistant if it is difficult to find two different inputs that hash to the same output
What does it mean to be strongly collision-resistant?
Strongly collision resistant means that it is computationally infeasible to find any two distinct inputs that hash to the same output
What is MD5?
A cryptographic protocol used for authentication messages as well as content verification and digital signatures`
What is SHA?
Secure Hashing Algorithm.
What is hashing used for?
Hashing is used to generate a Message Authentication Code (MAC) that can be used to confirm that a received message is the same as the sent message