[CRYPTO] 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. Signed-off-by:Tan Swee Heng <thesweeheng@gmail.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- crypto/Kconfig 12 additions, 0 deletionscrypto/Kconfig
- crypto/Makefile 1 addition, 0 deletionscrypto/Makefile
- crypto/salsa20_generic.c 243 additions, 0 deletionscrypto/salsa20_generic.c
- crypto/tcrypt.c 7 additions, 1 deletioncrypto/tcrypt.c
- crypto/tcrypt.h 161 additions, 0 deletionscrypto/tcrypt.h
Loading
Please register or sign in to comment