Re: MAC / MIC / MD for short messages
- From: Mike Amling <nospam@xxxxxxxxxx>
- Date: Mon, 22 May 2006 21:32:50 GMT
Michael Meier wrote:
Hi,
hm, so to ensure that an attacker needs to break all two methods, I
encapsulate the methods with authentication-first. If I do the
encryption and authentication like this K{message | MAC}, I should have
ensured, that an attacker first needs to break the AES encryption to be
able to mess with the MAC code.
Now if we regard the encryption as secure, it shouldn't be necessary
any more to use an extremely strong MAC.
For a short MAC (say, 32 bits or fewer), a brute force attack works just as well whether the MAC is encrypted or not, right?
Then, the MAC ensures checking
for the correct decryption of the packet, but it is not target of an
attack any more, isn't it?
Sounds plausible, but it would be better to have a proof.
(Ok, now I cannot check the integrity of the packet any more before
decrypting it)
You'd have to decrypt the MAC to check it, but not necessarily decrypt the message. Just because you're encrypting the MAC doesn't mean that the MAC has to be of the plaintext. You could encrypt a MAC of the message's ciphertext. If you're using a stream cipher, you could reserve earlier bits of the stream for use on the MAC, so that later bits in the stream don't have to be generated by the recipient if the MAC check fails.
For me this method seems to be better than K{message} | MAC , (like it
is done with CCM). Now, the MAC is target of a possible forgery attack
to alter the encrypted packet and it is neccessary to use a long MAC,
e.g. 128 bits to secure it.
A proper MAC truncated to 64 bits still takes an attacker a long time to forge.
--Mike Amling
.
- Follow-Ups:
- Re: MAC / MIC / MD for short messages
- From: Ulf Reiman
- Re: MAC / MIC / MD for short messages
- References:
- MAC / MIC / MD for short messages
- From: Michael Meier
- Re: MAC / MIC / MD for short messages
- From: tomstdenis
- Re: MAC / MIC / MD for short messages
- From: Michael Meier
- Re: MAC / MIC / MD for short messages
- From: Joseph Ashwood
- Re: MAC / MIC / MD for short messages
- From: Michael Meier
- Re: MAC / MIC / MD for short messages
- From: Joseph Ashwood
- Re: MAC / MIC / MD for short messages
- From: Michael Meier
- MAC / MIC / MD for short messages
- Prev by Date: Re: java implementation of homomorphic encryption
- Next by Date: Re: Compression and crypto
- Previous by thread: Re: MAC / MIC / MD for short messages
- Next by thread: Re: MAC / MIC / MD for short messages
- Index(es):
Relevant Pages
|