Add support for Salsa20.
authorWerner Koch <wk@gnupg.org>
Thu, 18 Jul 2013 19:32:05 +0000 (21:32 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 18 Jul 2013 19:32:05 +0000 (21:32 +0200)
commitc4885092088431e7928e4459fda20cc0e8ceb201
tree3282d123480be1f0cbdc3e92832f91ac26ae9a0d
parentf6d6e0200fa823d377a342efacaf3d61e4303dc3
Add support for Salsa20.

* src/gcrypt.h.in (GCRY_CIPHER_SALSA20): New.
* cipher/salsa20.c: New.
* configure.ac (available_ciphers): Add Salsa20.
* cipher/cipher.c: Register Salsa20.
(cipher_setiv): Allow to divert an IV to a cipher module.
* src/cipher-proto.h (cipher_setiv_func_t): New.
(cipher_extra_spec): Add field setiv.
* src/cipher.h: Declare Salsa20 definitions.
* tests/basic.c (check_stream_cipher): New.
(check_stream_cipher_large_block): New.
(check_cipher_modes): Run new test functions.
(check_ciphers): Add simple test for Salsa20.

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
cipher/Makefile.am
cipher/cipher.c
cipher/salsa20.c [new file with mode: 0644]
configure.ac
doc/gcrypt.texi
src/cipher-proto.h
src/cipher.h
src/gcrypt.h.in
tests/basic.c