Hash functions and MAC Flashcards

1
Q

what are the properties of a hash function?

A

•A Hash Function produces a fingerprint of some
file/message/data
h = H(M)
•condenses a variable-length message M to a fixedsized
fingerprint
•Assumed to be public

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is weak vs strong collision resistance ?

A

Given x, it is infeasible to find y s.t. H(y) = H(x)
weak collision resistance
•It is infeasible to find any x,y s.t. H(y) = H(x)
strong collision resistance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

why is a salt needed when saving passwords?

A

Salts create unique passwords even in the instance of two users choosing the same passwords. Salts help us mitigate rainbow table attacks by forcing attackers to re-compute them using the salts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is Message Authentication Code (MAC)

A

•Generated by an algorithm that creates a small fixedsized
block depending on both message and some key
•need not be reversible
•Receiver performs same computation on message and
checks if it matches the MAC
•Provides assurance that message is unaltered and
comes from sender

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is Keyed Hash Functions (HMAC)?

A

Create a MAC using a hash function rather than a block
cipher
– because hash functions are generally faster
– not limited by export controls unlike block ciphers
– Hash includes a key along with the message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the birthday paradox ?

A

• How many people must there be in a room so that the
probability of two of them having the same birthday is
larger than 50%?
• One tends to be selfish in these cases and think: ”The
chance that another person has the same birthday as
me is 1/365. The chance that two other person has the
same birthday as me is (almost) 2/365.
• So, close to 183.” But this is wrong! This calculation is
correct when looking for matches to one specific
person.
if there are 23 people in the room there is a 50% probability .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly