On Thu, Nov 15, 2007 at 09:14:40AM +0800, Tan Swee Heng wrote: > > > 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. :-) Actually what I suggested is that you add a wrapper called salsa20 that then simply calls ctr(...) after constructing the IV. It's OK to have two algorithms of the same name provided that their types are different. So you can have a salsa20 blkcipher and also a salsa20 cipher. We don't really need to have two copies of the ctr code under crypto :) Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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