Wan-Teh Chang a e'crit:
On Thu, Dec 3, 2009 at 8:54 AM, Gregory BELLIER
<gregory.bell...@gmail.com> wrote:
But, I still don't understand why we need to do a memcpy after the last
round to save the last ciphered block as the new IV into the context. In my
opinion, it's useless, this context won't be used anymore.
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/security/nss/lib/freebl/camellia.c&rev=1.2&mark=1541

I just wanted to add that we're using cx->iv for not only the
real IV but also the last block from the previous invocation
of camellia_encryptECB.

Once you understand how camellia_encryptECB is used
(as Bob explained), you'll find such reusing very natural.
I guess you mean CBC.
Would it help to add a comment about this?
Now, I'm ok. Thanks to Bob's last email, every thing is clear. Bob replied to my email you just quoted. I didn't think we may not have all the data once, in case of a network environment. I just kept thinking that we knew all along the data which were supposed to be ciphered.

Thank you for you concern.
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to