summaryrefslogtreecommitdiff
path: root/aes-internal.h
Commit message (Collapse)AuthorAgeFilesLines
* Split aes-encrypt.c and aes-decrypt.c into one file per key size.Niels Möller2021-04-011-2/+1
| | | | | | | | | | | | | | | | | Move aes128_encrypt and similar functions to their own files. To make it easier for assembly implementations to override specific AES variants. * aes-decrypt.c: Split file, keep only legacy function aes_decrypt here. * aes-decrypt-table.c (_nettle_aes_decrypt_table): New file, moved table here. * aes128-decrypt.c (aes128_decrypt): New file, moved function here. * aes192-decrypt.c (aes192_decrypt): New file, moved function here. * aes256-decrypt.c (aes256_decrypt): New file, moved function here. * aes-encrypt.c: Split file, keep only legacy function aes_encrypt here. * aes128-encrypt.c (aes128_encrypt): New file, moved function here. * aes192-encrypt.c (aes192_encrypt): New file, moved function here. * aes256-encrypt.c (aes256_encrypt): New file, moved function here. * Makefile.in (nettle_SOURCES): Add new files.
* Delete name mangling of internal AES symbolsNiels Möller2020-11-301-20/+13
|
* Update copyright headers for dual licensing.Niels Möller2014-04-121-23/+31
|
* Updated copyright year.Niels Möller2013-06-251-1/+1
|
* New internal functions _aes_set_key and _aes_invert.Niels Möller2013-05-221-0/+9
|
* Separate rounds and key arguments to _aes_encrypt and _aes_decrypt.Niels Möller2013-05-171-2/+2
|
* Use size_t rather than unsigned for all cipher-related functions.Niels Möller2013-04-261-2/+2
|
* Updated FSF address. Patch from David Woodhouse.Niels Möller2012-07-071-2/+2
|
* Minor cleanup of SUBBYTE mmacro.Niels Möller2012-04-131-5/+5
|
* Use ROTL32 in the aes code.Niels Möller2012-03-311-2/+0
|
* Converted files to utf-8.Niels Möller2012-02-181-1/+1
|
* Reviewed FIXME-comments.Niels Möller2008-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | Rev: nettle/aes-decrypt-internal.c:1.2 Rev: nettle/aes-encrypt-internal.c:1.2 Rev: nettle/aes-internal.h:1.2 Rev: nettle/arctwo.h:1.2 Rev: nettle/base16-decode.c:1.2 Rev: nettle/base16-encode.c:1.2 Rev: nettle/base16.h:1.2 Rev: nettle/base64.h:1.2 Rev: nettle/bignum-random.c:1.2 Rev: nettle/bignum.c:1.2 Rev: nettle/bignum.h:1.3 Rev: nettle/rsa-sign.c:1.3 Rev: nettle/rsa-verify.c:1.3 Rev: nettle/rsa.c:1.3 Rev: nettle/rsa.h:1.2 Rev: nettle/sexp-transport-format.c:1.2 Rev: nettle/sexp.c:1.2 Rev: nettle/sexp.h:1.2
* * aes-internal.h (struct aes_table): Deleted idx and sparc_idxNiels Möller2005-10-171-11/+0
| | | | | | | | | | | | | arrays. * aes-encrypt-table.c (_aes_encrypt_table): Likewise. * aes-decrypt.c (_aes_decrypt_table): Likewise. * asm.m4 (AES): Likewise Rev: src/nettle/ChangeLog:1.358 Rev: src/nettle/aes-decrypt.c:1.7 Rev: src/nettle/aes-encrypt-table.c:1.5 Rev: src/nettle/aes-internal.h:1.13 Rev: src/nettle/asm.m4:1.14
* Reduced support for AES_SMALL.Niels Möller2005-10-141-11/+1
| | | | Rev: src/nettle/aes-internal.h:1.12
* (_aes_decrypt_table): Don't declare, it's noNiels Möller2005-10-141-11/+15
| | | | | | longer globally visible. Rev: src/nettle/aes-internal.h:1.11
* (AES_ROUND, AES_FINAL_ROUND): New macros.Niels Möller2005-10-141-7/+28
| | | | Rev: src/nettle/aes-internal.h:1.10
* * New name mangling, to reduce the risk of link collisions. AllNiels Möller2003-04-121-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions (except memxor) now use a nettle_ or _nettle prefix when seen by the linker. For most functions, the header file that declares a function also use #define to provide a shorter more readable name without the prefix. Rev: src/nettle/aes-internal.h:1.9 Rev: src/nettle/aes.h:1.6 Rev: src/nettle/arcfour.h:1.4 Rev: src/nettle/base16.h:1.2 Rev: src/nettle/base64.h:1.12 Rev: src/nettle/blowfish.h:1.8 Rev: src/nettle/cast128.h:1.4 Rev: src/nettle/cbc.h:1.4 Rev: src/nettle/des.h:1.8 Rev: src/nettle/dsa.h:1.7 Rev: src/nettle/hmac.h:1.5 Rev: src/nettle/knuth-lfib.h:1.2 Rev: src/nettle/md5-compat.h:1.2 Rev: src/nettle/md5.h:1.6 Rev: src/nettle/pgp.h:1.2 Rev: src/nettle/pkcs1.h:1.2 Rev: src/nettle/rsa-compat.h:1.3 Rev: src/nettle/rsa.h:1.22 Rev: src/nettle/serpent.h:1.6 Rev: src/nettle/sexp.h:1.15 Rev: src/nettle/sha.h:1.3 Rev: src/nettle/twofish.h:1.5 Rev: src/nettle/yarrow.h:1.10
* * aes-internal.h (struct aes_table): sparc_idx[0] should nowNiels Möller2002-05-151-1/+6
| | | | | | | | | | | | | | | | | | | contain index values shifted by the size of a word, and with 2 added. This saves some additions in the sparc assembler code. Updates aes-encrypt-table.c and aes-decrypt-table.c. * aes-internal.h (struct aes_table): Renamed the shift_idx field to sparc_idx, as it will be tweaked to improve the sparc code. Also reduced its size to [2][4]. (IDX_FACTOR): Deleted constant. * aes-encrypt-table.c (_aes_encrypt_table): Adapted initializer of sparc_idx. * aes-decrypt-table.c (_aes_decrypt_table): Likewise. * asm.m4: Deleted AES_SIDX2, to match struct aes_table. Rev: src/nettle/aes-decrypt-table.c:1.3 Rev: src/nettle/aes-encrypt-table.c:1.3 Rev: src/nettle/aes-internal.h:1.8
* * aes-internal.h (struct aes_table): Renamed the shift_idx fieldNiels Möller2002-05-151-3/+3
| | | | | | | | | | | | | | | to sparc_idx, as it will be tweaked to improve the sparc code. Also reduced its size to [2][4]. (IDX_FACTOR): Deleted constant. * aes-encrypt-table.c (_aes_encrypt_table): Adapted initializer of sparc_idx. * aes-decrypt-table.c (_aes_decrypt_table): Likewise. * asm.m4: Deleted AES_SIDX2, to match struct aes_table. Rev: src/nettle/aes-decrypt-table.c:1.2 Rev: src/nettle/aes-encrypt-table.c:1.2 Rev: src/nettle/aes-internal.h:1.7 Rev: src/nettle/asm.m4:1.9
* (struct aes_table): New subtable idx_shift.Niels Möller2002-02-151-0/+5
| | | | | | | | Updated tables in aes_encrypt.c and aes_decrypt.c. Rev: src/nettle/aes-decrypt.c:1.2 Rev: src/nettle/aes-encrypt.c:1.2 Rev: src/nettle/aes-internal.h:1.6
* (struct aes_table): New structure, including allNiels Möller2002-02-141-15/+27
| | | | | | | constant tables needed by the unified encryption or decryption function _aes_crypt. Rev: src/nettle/aes-internal.h:1.5
* (itable): New bigger table, generated by aesdata.c.Niels Möller2002-02-131-6/+7
| | | | | Rev: src/nettle/aes-internal.h:1.4 Rev: src/nettle/aes-tables.c:1.4
* * aes-internal.h (AES_SMALL): New macro.Niels Möller2002-02-121-2/+14
| | | | | Rev: src/nettle/aes-internal.h:1.3 Rev: src/nettle/aes-tables.c:1.3
* (dtbl): Replaced with table generated by aesdata.Niels Möller2002-02-121-3/+3
| | | | | Rev: src/nettle/aes-internal.h:1.2 Rev: src/nettle/aes-tables.c:1.2
* * aes-set-key.c, aes-tables.c: New files, split off from aes.c.Niels Möller2002-02-111-0/+51
Tables are now not static, but use a _aes_ prefix on their names. * aes-internal.h: New file. Rev: src/nettle/aes-internal.h:1.1 Rev: src/nettle/aes-set-key.c:1.1 Rev: src/nettle/aes-tables.c:1.1