summaryrefslogtreecommitdiff
path: root/twofish.c
Commit message (Collapse)AuthorAgeFilesLines
* twofish: Fix undefined shift.Niels Möller2016-03-151-7/+8
|
* Update copyright headers for dual licensing.Niels Möller2014-04-121-29/+33
|
* Dropped length argument from nettle_set_key_func.set_key-changesNiels Möller2014-01-291-1/+17
|
* Use size_t rather than unsigned for all cipher-related functions.Niels Möller2013-04-261-3/+3
|
* Updated FSF address. Patch from David Woodhouse.Niels Möller2012-07-071-2/+2
|
* Resurrected twofishdata.c, earlier known as generate_q.c.Niels Möller2012-02-271-66/+70
|
* Converted files to utf-8.Niels Möller2012-02-181-1/+1
|
* * aes.h (aes_encrypt, aes_decrypt): Declare ctx argument as const.Niels Möller2010-07-071-6/+6
| | | | | | | | | | | | | | | | | | | | | Also updated implementation. * blowfish.h (blowfish_encrypt, blowfish_decrypt): Likewise. * cast128.h (cast128_encrypt, cast128_decrypt): Likewise. * serpent.h (serpent_encrypt, serpent_decrypt): Likewise. * twofish.h (twofish_encrypt, twofish_decrypt): Likewise. Rev: nettle/ChangeLog:1.91 Rev: nettle/aes-decrypt.c:1.2 Rev: nettle/aes-encrypt.c:1.2 Rev: nettle/aes.h:1.2 Rev: nettle/blowfish.c:1.3 Rev: nettle/blowfish.h:1.3 Rev: nettle/cast128.c:1.2 Rev: nettle/cast128.h:1.2 Rev: nettle/serpent.c:1.2 Rev: nettle/serpent.h:1.2 Rev: nettle/twofish.c:1.2 Rev: nettle/twofish.h:1.2
* (q_table): Use a const pointer array.Niels Möller2004-10-051-4/+5
| | | | Rev: src/nettle/twofish.c:1.7
* * Reordered includes in most or all .c-files. All should now includeNiels Möller2003-05-121-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config.h. Rev: src/nettle/ChangeLog:1.195 Rev: src/nettle/aes-decrypt-table.c:1.4 Rev: src/nettle/aes-decrypt.c:1.5 Rev: src/nettle/aes-encrypt-table.c:1.4 Rev: src/nettle/aes-encrypt.c:1.5 Rev: src/nettle/aes-meta.c:1.3 Rev: src/nettle/aes-set-decrypt-key.c:1.2 Rev: src/nettle/aes-set-encrypt-key.c:1.2 Rev: src/nettle/aes.c:1.12 Rev: src/nettle/aesdata.c:1.2 Rev: src/nettle/arcfour-meta.c:1.2 Rev: src/nettle/arcfour.c:1.3 Rev: src/nettle/base16-decode.c:1.2 Rev: src/nettle/base16-encode.c:1.2 Rev: src/nettle/base16-meta.c:1.3 Rev: src/nettle/base64-decode.c:1.5 Rev: src/nettle/base64-encode.c:1.3 Rev: src/nettle/base64-meta.c:1.4 Rev: src/nettle/bignum-random.c:1.3 Rev: src/nettle/bignum.c:1.7 Rev: src/nettle/blowfish.c:1.4 Rev: src/nettle/buffer-init.c:1.3 Rev: src/nettle/buffer.c:1.8 Rev: src/nettle/cast128-meta.c:1.3 Rev: src/nettle/cast128.c:1.4 Rev: src/nettle/cbc.c:1.6 Rev: src/nettle/des-compat.c:1.10 Rev: src/nettle/des.c:1.7 Rev: src/nettle/des3.c:1.2 Rev: src/nettle/dsa-keygen.c:1.6 Rev: src/nettle/dsa-sign.c:1.7 Rev: src/nettle/dsa-verify.c:1.4 Rev: src/nettle/dsa.c:1.5 Rev: src/nettle/examples/io.c:1.4 Rev: src/nettle/examples/nettle-benchmark.c:1.8 Rev: src/nettle/examples/nettle-openssl.c:1.2 Rev: src/nettle/examples/rsa-keygen.c:1.10 Rev: src/nettle/examples/rsa-sign.c:1.5 Rev: src/nettle/examples/rsa-verify.c:1.4 Rev: src/nettle/hmac-md5.c:1.5 Rev: src/nettle/hmac-sha1.c:1.2 Rev: src/nettle/hmac-sha256.c:1.2 Rev: src/nettle/hmac.c:1.4 Rev: src/nettle/knuth-lfib.c:1.2 Rev: src/nettle/md5-compat.c:1.3 Rev: src/nettle/md5-meta.c:1.2 Rev: src/nettle/md5.c:1.6 Rev: src/nettle/memxor.c:1.2 Rev: src/nettle/nettle-internal.c:1.3 Rev: src/nettle/pgp-encode.c:1.4 Rev: src/nettle/pkcs1-rsa-md5.c:1.2 Rev: src/nettle/pkcs1-rsa-sha1.c:1.2 Rev: src/nettle/pkcs1.c:1.2 Rev: src/nettle/realloc.c:1.3 Rev: src/nettle/rsa-compat.c:1.8 Rev: src/nettle/rsa-decrypt.c:1.4 Rev: src/nettle/rsa-encrypt.c:1.5 Rev: src/nettle/rsa-keygen.c:1.5 Rev: src/nettle/rsa-md5-sign.c:1.2 Rev: src/nettle/rsa-md5-verify.c:1.2 Rev: src/nettle/rsa-sha1-sign.c:1.2 Rev: src/nettle/rsa-sha1-verify.c:1.2 Rev: src/nettle/rsa-sign.c:1.3 Rev: src/nettle/rsa-verify.c:1.2 Rev: src/nettle/rsa.c:1.12 Rev: src/nettle/rsa2openpgp.c:1.2 Rev: src/nettle/rsa2sexp.c:1.7 Rev: src/nettle/serpent-meta.c:1.2 Rev: src/nettle/serpent.c:1.4 Rev: src/nettle/sexp-format.c:1.9 Rev: src/nettle/sexp-transport-format.c:1.2 Rev: src/nettle/sexp-transport.c:1.4 Rev: src/nettle/sexp.c:1.14 Rev: src/nettle/sexp2bignum.c:1.5 Rev: src/nettle/sexp2dsa.c:1.4 Rev: src/nettle/sexp2rsa.c:1.11 Rev: src/nettle/sha1-meta.c:1.2 Rev: src/nettle/sha1.c:1.8 Rev: src/nettle/sha256-meta.c:1.2 Rev: src/nettle/sha256.c:1.3 Rev: src/nettle/tools/input.c:1.2 Rev: src/nettle/tools/misc.c:1.2 Rev: src/nettle/tools/output.c:1.3 Rev: src/nettle/tools/parse.c:1.2 Rev: src/nettle/tools/sexp-conv.c:1.14 Rev: src/nettle/twofish-meta.c:1.2 Rev: src/nettle/twofish.c:1.6 Rev: src/nettle/yarrow256.c:1.17 Rev: src/nettle/yarrow_key_event.c:1.4
* * twofish.c (twofish_decrypt): Fixed for();-bug in the block-loop.Niels Möller2001-09-031-2/+2
| | | | | | | Spotted by Jean-Pierre. (twofish_encrypt): Likewise. Rev: src/nettle/twofish.c:1.5
* Include string.h.Niels Möller2001-07-031-0/+1
| | | | | Rev: src/nettle/testsuite/testutils.c:1.4 Rev: src/nettle/twofish.c:1.4
* Fixed copyright notice.Niels Möller2001-06-171-2/+2
| | | | | | | | | | | | | | | | | | | | Rev: src/nettle/aes.c:1.3 Rev: src/nettle/aes.h:1.3 Rev: src/nettle/arcfour.c:1.2 Rev: src/nettle/arcfour.h:1.2 Rev: src/nettle/blowfish.h:1.5 Rev: src/nettle/cast128.c:1.2 Rev: src/nettle/cast128.h:1.2 Rev: src/nettle/des.c:1.3 Rev: src/nettle/des.h:1.3 Rev: src/nettle/macros.h:1.3 Rev: src/nettle/md5.c:1.2 Rev: src/nettle/md5.h:1.2 Rev: src/nettle/serpent.h:1.4 Rev: src/nettle/sha1.c:1.3 Rev: src/nettle/sha1.h:1.2 Rev: src/nettle/twofish.c:1.3 Rev: src/nettle/twofish.h:1.3
* * twofish.c: Adapted to nettle. Made constant tables const.Niels Möller2001-06-171-257/+158
| | | | | | | | | | Deleted bytes_to_word and word_to_bytes; use LE_READ_UINT32 and LE_WRITE_UINT32 instead. (twofish_selftest): Deleted. Moved the tests to the external testsuite. (twofish_set_key): Don't silently truncate too large keys. Rev: src/nettle/twofish.c:1.2
* * Added twofish implementation.Niels Möller2001-06-161-32/+21
| | | | | Rev: src/nettle/twofish.c:1.1 Rev: src/nettle/twofish.h:1.1
* *** empty log message ***Niels Möller2000-04-231-1/+0
| | | | Rev: src/symmetric/twofish.c:1.6
* * src/symmetric/twofish.c (twofish_selftest): Fixed. (Ray).J.H.M. Dassen1999-03-121-24/+14
| | | | Rev: src/symmetric/twofish.c:1.5
* * src/symmetric/twofish.c: Buglet fix by Ruud.Ruud de Rooij1999-03-121-3/+1
| | | | Rev: src/symmetric/twofish.c:1.4
* Moved UNUSED attribute to be compatible with gcc-2.x, x<8.Niels Möller1999-03-081-1/+1
| | | | Rev: src/symmetric/twofish.c:1.3
* * src/symmetric/twofish.c, src/symmetric/twofish.hNiels Möller1999-03-051-229/+236
| | | | | | | | | | | (twofish_selftest): Made non static. (twofish_setup): Removed memory allocation. Instead, a TWOFISH_pointer is given as an argument. (twofish_encrypt, twofish_decrypt): Use correct pointer types. No void * or casts. Rev: src/symmetric/include/twofish.h:1.2 Rev: src/symmetric/twofish.c:1.2
* Initial twofish supportRuud de Rooij1999-03-041-0/+574
Rev: src/symmetric/generate_q.c:1.1 Rev: src/symmetric/include/twofish.h:1.1 Rev: src/symmetric/twofish.c:1.1