Re: Into the Fire
From: Bryan Olson (fakeaddress_at_nowhere.org)
Date: 07/31/03
- Next message: Christian: "Re: Addition vs Multiplication on Pentium IV Processors"
- Previous message: Lars Fricke: "Re: Into the Fire"
- In reply to: Mark Wooding: "Re: Into the Fire"
- Next in thread: Mark Wooding: "Re: Into the Fire"
- Reply: Mark Wooding: "Re: Into the Fire"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 31 Jul 2003 13:54:37 GMT
Mark Wooding wrote:
> Bryan Olson wrote:
>
>
>>Eve happens to know the plaintext, and is able to block delivery of
>>Alice's message to Bob. This gives Eve 1000 bytes of the keystream.
>>She then makes up a 980-byte message, encrypts it with the first 980
>>known key byes, then computes the 10-byte MAC using the next 20 known
>>bytes. Eve sends her message to Bob, who decrypts it to the text Eve
>>chose, and finds that the MAC verifies.
>
>
> But that's not the way these MACs work. The two parties choose a
> /fixed/ and /secret/ hash function from an AXU family for an entire
> session,
There is exactly one message in the session.
> and then for each message, compute the message hash using the
> selected hash function and mask it with the next lump of pad.
Only the key is shared and secret. If Alice and Bob need to
choose a secret hash function uniformly from among 2^80
candidates, that takes 80 bits of key. Then masking an 80-bit
hash requires another 80 bits of key. Note that I have Alice
and Eve using 20 bytes of keystream to compute a 10-byte digest.
Don't confuse the internal workings of the MAC with how it's
used: it takes message and key, and returns a digest. If we
want n-bits of entropy in the MAC, and require that showing the
attacker a message and MAC provide no information on how to MAC
a different message, the function will require at least 2*n bits
of key. Internally, the function may use n bits to select from
a family of hashes and n bits to key the selected hash.
> Sorry: I thought you understood this.
My example problem is from an old post that explains the basic
theory of these functions:
http://www.google.com/groups?selm=82ei0e%242f2%241%40nnrp1.deja.com
> If the hash selection is encoded in the
> message then the scheme leaks which hash function is being used and Eve
> can /choose/ an advantageous hash value for her forgery attempt, with
> the result that the scheme doesn't work.
There's no hash selection encoded in the message in my example.
Within the MAC, the hash is selected by key, as it must be,
since Bob and Alice have to use the same secret function. My
point is that the authentication keystream must be distinct from
the encipherment keystream.
-- --Bryan
- Next message: Christian: "Re: Addition vs Multiplication on Pentium IV Processors"
- Previous message: Lars Fricke: "Re: Into the Fire"
- In reply to: Mark Wooding: "Re: Into the Fire"
- Next in thread: Mark Wooding: "Re: Into the Fire"
- Reply: Mark Wooding: "Re: Into the Fire"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|