Re: [PATCH 1/2] stream: Stream cipher wrapper

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

 



On Tue, Nov 06, 2007 at 07:37:20PM +0000, Tan Swee Heng wrote:
> Added a "stream" template to support stream ciphers (eSTREAM
> candidates in particular) within the CryptoAPI framework.

Thanks for the patch.

Having reviewed it and the specification of Salsa20 I think
we can already support an Salsa20 implementation without the
addition of this new interface.

In fact, thanks the work Joy has done with CTR, the Salsa20
stream cipher can be expressed as

	ctr(salsa20,0,16,8)

where salsa20 is the Salsa20 expansion function.

So could you please update your patches so that it works under
this framework? So your salsa20 simple cipher should be OK as
it is minus the extra bits like setiv.  Plus you should add a
block cipher salsa20 algorithm that just invokes the above CTR
algorithm and constructs the IV in the appropriate manner.

Thanks,
-- 
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

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

  Powered by Linux