summaryrefslogtreecommitdiff
path: root/cbc.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers for dual licensing.Niels Möller2014-04-121-23/+31
|
* Define and use nettle_cipher_func, for block ciphers.Niels Möller2014-03-181-2/+2
|
* Use size_t rather than unsigned for all cipher-related functions.Niels Möller2013-04-261-5/+5
|
* Updated FSF address. Patch from David Woodhouse.Niels Möller2012-07-071-2/+2
|
* Consistently use foo_func *f (rather than foo_func f) for declaring function ↵Niels Möller2012-06-251-2/+2
| | | | pointer arguments.
* Converted files to utf-8.Niels Möller2012-02-181-1/+1
|
* (CBC_BUFFER_LIMIT): Reduced to 512 bytes.Niels Möller2011-07-011-49/+44
| | | | | | | (cbc_decrypt): For in-place operation, use overlapping memxor3 and eliminate a memcpy. Rev: nettle/cbc.c:1.3
* Fixed spelling in comment.Niels Möller2010-07-201-1/+1
| | | | Rev: nettle/cbc.c:1.2
* * cbc.h (nettle_crypt_func): Moved typedef here.Niels Möller2004-02-261-9/+3
| | | | | | | | * cbc.c (cbc_encrypt, cbc_decrypt_internal, cbc_decrypt): Use it for typing the f argument. Rev: src/nettle/cbc.c:1.10 Rev: src/nettle/cbc.h:1.7
* (cbc_encrypt, cbc_decrypt): Use a _const_ void *ctx argument.Niels Möller2004-02-251-9/+9
| | | | | Rev: src/nettle/cbc.c:1.9 Rev: src/nettle/cbc.h:1.6
* (TMP_DECL, TMP_ALLOC): New macros. When alloca is unavailable, theyNiels Möller2004-01-081-25/+24
| | | | | | | | | | | | | | | work by allocating a fix amount of stack and imposing a hard limit on what can be allocated. Updated all users of alloca. Rev: src/nettle/bignum-random.c:1.4 Rev: src/nettle/cbc.c:1.8 Rev: src/nettle/dsa-keygen.c:1.7 Rev: src/nettle/hmac.c:1.6 Rev: src/nettle/pkcs1-rsa-md5.c:1.3 Rev: src/nettle/pkcs1-rsa-sha1.c:1.3 Rev: src/nettle/rsa-decrypt.c:1.5 Rev: src/nettle/rsa-encrypt.c:1.8 Rev: src/nettle/sexp.c:1.15
* Use "config.h", not <config.h>.Niels Möller2003-05-121-1/+1
| | | | | | | | | | | Rev: src/nettle/cbc.c:1.7 Rev: src/nettle/hmac.c:1.5 Rev: src/nettle/knuth-lfib.c:1.3 Rev: src/nettle/md5-compat.c:1.4 Rev: src/nettle/md5-meta.c:1.3 Rev: src/nettle/md5.c:1.7 Rev: src/nettle/memxor.c:1.3 Rev: src/nettle/nettle-internal.c:1.4
* * 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
* (cbc_decrypt_internal): New function, doing the real CBCNiels Möller2002-02-111-15/+66
| | | | | | | | procesing and requiring that src != dst. (cbc_decrypt): Use cbc_decrypt_internal. If src == dst, use a buffer of limited size to copy the ciphertext. Rev: src/nettle/cbc.c:1.5
* * cbc.c (cbc_encrypt): Bug fix, encrypt block *after* XOR:ing theNiels Möller2001-09-091-1/+1
| | | | | | iv. Rev: src/nettle/cbc.c:1.4
* *** empty log message ***Niels Möller2001-09-091-6/+26
| | | | | Rev: src/nettle/ChangeLog:1.17 Rev: src/nettle/cbc.c:1.3
* Work-in-progress.Niels Möller2001-09-071-2/+17
| | | | | | Rev: src/nettle/Makefile.am:1.12 Rev: src/nettle/cbc.c:1.2 Rev: src/nettle/cbc.h:1.2
* * cbc.c, cbc.h: New files, for general CBC encryption.Niels Möller2001-09-061-0/+78
Rev: src/nettle/cbc.c:1.1 Rev: src/nettle/cbc.h:1.1