summaryrefslogtreecommitdiff
path: root/gcm.h
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate old AES interface.Niels Möller2018-08-091-7/+10
| | | | Use new macro _NETTLE_ATTTRIBUTE_DEPRECATED.
* Improved type-checking hack in CBC_ENCRYPT and similar macros.Niels Möller2014-12-121-6/+10
|
* GCM_SET_KEY: Rename macro argument to avoid collision with struct tag.Niels Möller2014-11-241-2/+2
| | | | Spotted by Nikos Mavrogiannopoulos.
* Update copyright headers for dual licensing.Niels Möller2014-04-121-28/+35
|
* Define and use nettle_cipher_func, for block ciphers.Niels Möller2014-03-181-11/+8
|
* Support for gcm-camellia256.Niels Möller2014-02-161-0/+23
|
* Support for gcm-camellia128.Niels Möller2014-02-161-0/+25
|
* New constants, EAX_DIGEST_SIZE and GCM_DIGEST_SIZE.Niels Möller2014-02-121-1/+1
|
* Dropped length argument from nettle_set_key_func.set_key-changesNiels Möller2014-01-291-6/+3
|
* New gcm-aes interface.Niels Möller2014-01-261-8/+103
|
* Delete length argument from GCM_SET_KEY.Niels Möller2014-01-251-2/+2
|
* New type nettle_block16.Niels Möller2014-01-131-11/+4
|
* Use size_t rather than unsigned for all hash-related functions.Niels Möller2013-04-261-4/+4
|
* Use size_t rather than unsigned for all cipher-related functions.Niels Möller2013-04-261-7/+7
|
* Updated FSF address. Patch from David Woodhouse.Niels Möller2012-07-071-2/+2
|
* * gcm-aes.c (gcm_aes_set_iv): Use GCM_SET_IV.Niels Möller2011-02-161-13/+25
| | | | | | | | | | | | | | | | | | | | (gcm_aes_set_key): Deleted cast. (gcm_aes_encrypt): Likewise. (gcm_aes_decrypt): Likewise. (gcm_aes_digest): Likewise. (gcm_aes_update): One less argument to GCM_UPDATE. * gcm.h (GCM_SET_KEY): Added cast to nettle_crypt_func *. Help compiler type checking despite this cast. (GCM_ENCRYPT): Likewise. (GCM_DECRYPT): Likewise. (GCM_DIGEST): Likewise. (GCM_SET_IV): New macro, for completeness. (GCM_UPDATE): Deleted unused argument encrypt. Rev: nettle/ChangeLog:1.156 Rev: nettle/gcm-aes.c:1.4 Rev: nettle/gcm.h:1.12
* * gcm.h (GCM_UPDATE): Renamed, from...Niels Möller2011-02-131-10/+8
| | | | | | | | | | | | | | | (GCM_AUTH): ...old name. * gcm-aes.c (gcm_aes_update): Renamed, from... (gcm_aes_auth): ...old name. * gcm.c (gcm_update): Renamed, and fixed an assert. From... (gcm_auth): ...old name. Rev: nettle/ChangeLog:1.150 Rev: nettle/gcm-aes.c:1.3 Rev: nettle/gcm.c:1.14 Rev: nettle/gcm.h:1.11
* (GCM_TABLE_BITS): Increase table size to 8 bits,Niels Möller2011-02-131-1/+1
| | | | | | corresponding to 4 KByte of key-dependent tables. Rev: nettle/gcm.h:1.10
* (union gcm_block): Use correct length for w array.Niels Möller2011-02-101-1/+1
| | | | | Rev: nettle/ChangeLog:1.146 Rev: nettle/gcm.h:1.9
* * gcm.c (gcm_hash_sizes): New function.Niels Möller2011-02-091-1/+2
| | | | | | | | | (gcm_set_iv): Added support for IVs of arbitrary size. Needed another argument, for the hash subkey. (gcm_digest): Use gcm_hash_sizes. Rev: nettle/gcm.c:1.13 Rev: nettle/gcm.h:1.8
* * gcm.c (gcm_set_key): Replaced context argument by a structNiels Möller2011-02-091-25/+39
| | | | | | | | | | | | | | | | | | | | | | | | | gcm_key *. (gcm_hash): Replaced context argument by a struct gcm_key * and a pointer to the hashing state block. (gcm_auth): Added struct gcm_key * argument. (gcm_encrypt): Likewise. (gcm_decrypt): Likewise. (gcm_digest): Likewise. * gcm.h (struct gcm_key): Moved the key-dependent and message-independent state to its own struct. (struct gcm_ctx): ... and removed it here. (GCM_CTX): New macro. (GCM_SET_KEY): Likewise. (GCM_AUTH): Likewise. (GCM_ENCRYPT): Likewise. (GCM_DECRYPT): Likewise. (GCM_DIGEST): Likewise. (struct gcm_aes_ctx): New struct. Rev: nettle/ChangeLog:1.142 Rev: nettle/gcm.c:1.12 Rev: nettle/gcm.h:1.7
* * gcm.h (struct gcm_ctx): The hash key is now always an array,Niels Möller2011-02-081-4/+1
| | | | | | named h, with array size depending on GCM_TABLE_BITS. Rev: nettle/gcm.h:1.6
* * gcm.c: Use the new union gcm_block for all gf operations.Niels Möller2011-02-081-5/+12
| | | | | | | | * gcm.h (union gcm_block): New union, used to enforce alignment. Rev: nettle/ChangeLog:1.138 Rev: nettle/gcm.c:1.9 Rev: nettle/gcm.h:1.5
* (GCM_TABLE_BITS): Set to 4.Niels Möller2011-02-071-1/+1
| | | | Rev: nettle/gcm.h:1.4
* Typo fix.Niels Möller2011-02-051-1/+1
| | | | Rev: nettle/gcm.h:1.3
* * gcm.h: New file, contributed by Nikos Mavrogiannopoulos.Niels Möller2011-02-051-1/+1
| | | | Rev: nettle/gcm.h:1.2
* * gcm.c: New file.Nikos Mavrogiannopoulos2011-02-051-0/+157
* gcm.h: New file. Rev: nettle/gcm.c:1.1 Rev: nettle/gcm.h:1.1