Re: David's authenticated encryption mode.
- From: "David Gothberg" <david.gothberg@xxxxxxxxx>
- Date: 29 Aug 2006 11:46:12 -0700
Tom St Denis wrote:
It looks nice, but my concern is that an attacker can learn the
intermediate values of H[0], H[1], etc before the final output. Will
that affect the security of the MAC?
Tom
Thanks for thinking it looks nice. And yes, that the attacker can guess
some of the intermediate hashes probably is the main concern. I am no
cryptanalyst, but as far as I understand it should not be a problem for
several reasons:
The attacker can not figure out any previous state from a guessed
intermediate hash since it comes out of a secure one-way function.
And he can not learn any later state since it gets XORed with the key
again and then sent into the next secure one-way function that will mix
it up very well.
And if the attacker changes one encrypted block in transit he can only
in a controlled manner affect one cleartext block but the MAC will be
garbled and thus the attack detected by the receiver. The attacker can
not fix that by changing one of the following ciphertext blocks since
in the next block operation the intermediate hash he did change will be
so mixed up that he doesn't know how to fix that in the later blocks.
I hope my assumptions hold...
For those of you that don't see it: An attacker can guess a cleartext
message block, XOR that with the corresponding ciphertext block and
thus get the corresponding intermediate hash. Thus "guessing" an
intermediate hash.
By the way Tom, I love your crypto programming library.
Greetings from sunny Gothenburg, Sweden, Northern Europe,
.../David
--------------------------------
David Göthberg
http://www.pjort.com
Email: david(a)pjort.com
--------------------------------
.
- Follow-Ups:
- Re: David's authenticated encryption mode.
- From: Tom St Denis
- Re: David's authenticated encryption mode.
- References:
- David's authenticated encryption mode.
- From: David Gothberg
- Re: David's authenticated encryption mode.
- From: Tom St Denis
- David's authenticated encryption mode.
- Prev by Date: Re: Cross platform password string encryption
- Next by Date: Re: Curve25519-based EC-KCDSA
- Previous by thread: Re: David's authenticated encryption mode.
- Next by thread: Re: David's authenticated encryption mode.
- Index(es):
Relevant Pages
|
|