2007-11-15 19:52:41

by Tan Swee Heng

[permalink] [raw]
Subject: [PATCH 1/1] salsa20: Salsa20 stream cipher

This patch implements the Salsa20 stream cipher using the blkcipher interface.

The core cipher code comes from Daniel Bernstein's submission to eSTREAM:
http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/ref/

The test vectors comes from:
http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/

It has been tested successfully with "modprobe tcrypt mode=34" on an
UML instance.

Swee Heng


Attachments:
(No filename) (461.00 B)
patch1-salsa20.txt (16.82 kB)
Download all attachments

2007-11-18 13:38:12

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH 1/1] salsa20: Salsa20 stream cipher

On Fri, Nov 16, 2007 at 03:52:32AM +0800, Tan Swee Heng wrote:
> This patch implements the Salsa20 stream cipher using the blkcipher interface.
>
> The core cipher code comes from Daniel Bernstein's submission to eSTREAM:
> http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/ref/
>
> The test vectors comes from:
> http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/
>
> It has been tested successfully with "modprobe tcrypt mode=34" on an
> UML instance.

I was going to apply this but you didn't give a Signed-off-by
header. Please follow the instructions in Documentation/SubmittingPatches.

Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

2007-11-18 15:29:55

by Tan Swee Heng

[permalink] [raw]
Subject: [PATCH 1/1] salsa20: Salsa20 stream cipher

This patch implements the Salsa20 stream cipher using the blkcipher interface.

The core cipher code comes from Daniel Bernstein's submission to eSTREAM:
http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/ref/

The test vectors comes from:
http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/

It has been tested successfully with "modprobe tcrypt mode=34" on an
UML instance.

Regards,
Swee Heng

Signed-off-by: Tan Swee Heng <[email protected]>


Attachments:
(No filename) (524.00 B)
patch1-salsa20.txt (16.82 kB)
Download all attachments

2007-11-18 15:46:30

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH 1/1] salsa20: Salsa20 stream cipher

On Sun, Nov 18, 2007 at 11:29:52PM +0800, Tan Swee Heng wrote:
> This patch implements the Salsa20 stream cipher using the blkcipher interface.
>
> The core cipher code comes from Daniel Bernstein's submission to eSTREAM:
> http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/ref/
>
> The test vectors comes from:
> http://www.ecrypt.eu.org/stream/svn/viewcvs.cgi/ecrypt/trunk/submissions/salsa20/full/
>
> It has been tested successfully with "modprobe tcrypt mode=34" on an
> UML instance.
>
> Regards,
> Swee Heng
>
> Signed-off-by: Tan Swee Heng <[email protected]>

Patch applied. Thanks for the quick response!

BTW I made a small change to the Kconfig file so that it now selects
BLKCIPHER instead of ALGAPI.

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt