Docsity

CS 475 Lecture 9: Hashes, HMAC, and Authentication - Prof. Rachel A. Greenstadt, Study Guides, Projects, Research of Cryptography and System Security

Partial preview of the text

Download CS 475 Lecture 9: Hashes, HMAC, and Authentication - Prof. Rachel A. Greenstadt and more Study Guides, Projects, Research Cryptography and System Security in PDF only on Docsity!

CS 475 : Lecture 9

Hashes, HMAC, and

Authentication

Rachel Greenstadt

February 3, 2009

Reminders

Graded project 1 : not surprising, you got credit

for exploits you did

Anyone care to explain sploits 1-4 and 7?

No one exploited target5, target6, or target-ec

I’ll give partial credit for exploits on these until

March 6 (then I’ll go over them in class)

Project 2 out (crypto/network programming)

Collision Resistance

Strong collision resistance

Hard to find any x,y such that h(x)=h(y)

Weak collision resistance / preimage attacks

First preimage attack: given hash h 1 , find m such

that h(m) = h 1

Second preimage attack : Given message m 1 find

message m 2 such that h(m 1 ) = h(m 2 )

Birthday Attacks on

Collision Resistance

Given function h, goal is find two inputs x,y such

that h(x) = h(y)

Based on the birthday paradox: A group of 23 or

more people will have the same probability > 50%

H different outputs, then expected 1.25*sqrt(H) to

find a match

so 2

outputs for SHA-1, leads to approx 2

tries

  • SHA-

SHA-1 Compression

Function

Authentication without

Encryption

Integrity and Authentication: only someone who knows key

can compute MAC for a given message

HMAC

Construct MAC by applying cryptographic hash function to message and key

Could also use encryption instead of hashing, but…

Hashing is faster than encryption in software

Library code for hash functions widely available

Can easily replace one hash function with another

There used to be US export restrictions on encryption

Invented by Bellare, Canetti, and Krawczyk (1996)

HMAC strength established by cryptographic analysis

Mandatory for IP security, also used in SSL/TLS

Combine encryption and MAC for confidentiality and integrity

Encrypt-and-MAC

Attacks

Confidentiality considers indistinguishability

under...

Chosen Plaintext Attack (CPA) An attacker can obtain the ciphertext for any provided plaintext (but does not have the key).

Chosen Ciphertext Attack (CCA) An attacker can obtain the plaintext for any provided ciphertext (but does not have the key).

Integrity

PTXT - Integrity of Plaintext - computationally infeasible to produce a ciphertext decrypting to a message that the sender had never encrypted.

CTXT - Integrity of Ciphertext To be computationally infeasible to produce a ciphertext not previously produced by the sender.