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.

Would it help to add a comment about this?

Wan-Teh
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to