Re: [PATCH 2/3] [eSTREAM] stream: Wrapper for eSTREAM ciphers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Herbert,

On Nov 14, 2007 11:07 AM, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote:
> What I'm suggesting is that you implement the stream ciphers that
> use an IV directly using the blkcipher interface, and not the cipher
> interface.  That way you can do whatever you want with the IV.
The "Ah-ha!" moment! :-) Finally I get what you are saying. Ok, sounds
like a good idea. I will try it out this evening and get back to you
when I am done.

> That's right.  Apart from Salsa you shouldn't have to use the cipher
> interface at all.  Which means that what the cipher interface lacks
> is not a problem :)
I was under the wrong impression that only the templates use the
blkcipher interface.

> Salsa can use the cipher interface because deep down it's a block
> cipher.  It's just being used in counter mode.
I might still implement it using the blkcipher interface as it seems
strange to call it via "ctr(salsa20,..)" as it is meant to be a stream
cipher after all. I always find "ecb(arc4)" kind of strange. :-)

Swee Heng
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux