]> git.ipfire.org Git - thirdparty/nettle.git/log
thirdparty/nettle.git
14 years agoIgnore autom4te.cache.
Niels Möller [Fri, 3 Jun 2011 21:07:58 +0000 (23:07 +0200)] 
Ignore autom4te.cache.

Rev: nettle/.cvsignore:1.3

14 years ago* serpent.c (ROUNDS): Deleted macro.
Niels Möller [Wed, 1 Jun 2011 21:17:14 +0000 (23:17 +0200)] 
* serpent.c (ROUNDS): Deleted macro.
(serpent_block_t): Deleted array typedef.
(KEYXOR): New macro, replacing BLOCK_XOR.
(BLOCK_COPY, SBOX, SBOX_INVERSE): Deleted macros.
(LINEAR_TRANSFORMATION): Use four separate arguments.
(LINEAR_TRANSFORMATION_INVERSE): Likewise.
(ROUND): Take separate arguments for all input and output words.
(ROUND_INVERSE): Likewise.
(ROUND_LAST, ROUND_FIRST_INVERSE): Deleted macros.
(serpent_set_key): Moved loop termination test.
(serpent_encrypt): Rewrote with unrolling of just eight rounds,
and without serpent_block_t.
(serpent_decrypt): Likewise.

Rev: nettle/ChangeLog:1.174
Rev: nettle/serpent.c:1.7

14 years agoAdded do { ... } while (0) around block macros.
Niels Möller [Wed, 1 Jun 2011 20:04:31 +0000 (22:04 +0200)] 
Added do { ... } while (0) around block macros.
(serpent_key_t): Deleted array typedef.
(ROL32, ROR32): Renamed macros, were rol and ror.
(KS_RECURRENCE, KS): New macros.
(serpent_key_pad): Renamed, from...
(serpent_key_prepare): ...old name.
(serpent_subkeys_generate): Deleted function.
(serpent_set_key): Rewrote the generation of subkeys. Reduced both
temporary storage and code size (less unrolling)

Rev: nettle/ChangeLog:1.173
Rev: nettle/serpent.c:1.6

14 years ago*** empty log message ***
Niels Möller [Tue, 31 May 2011 21:14:15 +0000 (23:14 +0200)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.172

14 years ago(test_main): Enabled test with short, 40-bit, key.
Niels Möller [Tue, 31 May 2011 21:14:03 +0000 (23:14 +0200)] 
(test_main): Enabled test with short, 40-bit, key.

Rev: nettle/testsuite/serpent-test.c:1.6

14 years ago(byte_swap_32): Deleted macro.
Niels Möller [Tue, 31 May 2011 21:13:16 +0000 (23:13 +0200)] 
(byte_swap_32): Deleted macro.
(serpent_key_prepare): Use LE_READ_UINT32. Don't require aligned
input, and support arbitrary key sizes.

Rev: nettle/ChangeLog:1.171
Rev: nettle/serpent.c:1.5

14 years agoSerpent rewrite.
Simon Josefsson [Tue, 31 May 2011 20:56:10 +0000 (22:56 +0200)] 
Serpent rewrite.

Rev: nettle/ChangeLog:1.170
Rev: nettle/Makefile.in:1.33
Rev: nettle/serpent.c:1.4
Rev: nettle/serpent_sboxes.h:1.2(DEAD)

14 years ago*** empty log message ***
Niels Möller [Tue, 31 May 2011 20:44:36 +0000 (22:44 +0200)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.169

14 years ago(test_main): Added some tests for padding of keys of length which is
Niels Möller [Tue, 31 May 2011 20:44:23 +0000 (22:44 +0200)] 
(test_main): Added some tests for padding of keys of length which is
not a multiple of four bytes.

Rev: nettle/testsuite/serpent-test.c:1.5

14 years agoFixed register list.
Niels Möller [Mon, 30 May 2011 21:07:44 +0000 (23:07 +0200)] 
Fixed register list.

Rev: nettle/x86_64/README:1.2

14 years ago*** empty log message ***
Niels Möller [Mon, 30 May 2011 21:00:27 +0000 (23:00 +0200)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.168

14 years ago(test_main): Add test vectors from libgcrypt.
Simon Josefsson [Mon, 30 May 2011 21:00:02 +0000 (23:00 +0200)] 
(test_main): Add test vectors from libgcrypt.

Rev: nettle/testsuite/serpent-test.c:1.4

14 years ago(dsa_generate_keypair): Avoid double init of mpz
Nikos Mavrogiannopoulos [Sat, 21 May 2011 10:51:32 +0000 (12:51 +0200)] 
(dsa_generate_keypair): Avoid double init of mpz
variable. Spotted by Nikos Mavrogiannopoulos.

Rev: nettle/ChangeLog:1.167
Rev: nettle/dsa-keygen.c:1.10

14 years ago*** empty log message ***
Niels Möller [Fri, 6 May 2011 11:47:13 +0000 (13:47 +0200)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.166

14 years ago(arcfour_stream): Deleted obsolete define.
Niels Möller [Fri, 6 May 2011 11:46:55 +0000 (13:46 +0200)] 
(arcfour_stream): Deleted obsolete define.

Rev: nettle/arcfour.h:1.2

14 years agoFix link flags for shared libraries on Solaris, which needs -h to set
Dagobert Michelsen [Fri, 6 May 2011 11:45:38 +0000 (13:45 +0200)] 
Fix link flags for shared libraries on Solaris, which needs -h to set
the soname. Patch contributed by Dagobert Michelsen.

Rev: nettle/ChangeLog:1.165
Rev: nettle/configure.ac:1.30

14 years ago*** empty log message ***
Niels Möller [Wed, 27 Apr 2011 19:21:37 +0000 (21:21 +0200)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.164

14 years ago(find_algorithm): Require exact match.
Niels Möller [Wed, 27 Apr 2011 19:21:16 +0000 (21:21 +0200)] 
(find_algorithm): Require exact match.

Rev: nettle/tools/nettle-hash.c:1.2

14 years ago*** empty log message ***
Niels Möller [Fri, 15 Apr 2011 19:00:00 +0000 (21:00 +0200)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.163

14 years agoReverted broken byte-order change from 2001-06-17:
Niels Möller [Fri, 15 Apr 2011 18:59:46 +0000 (20:59 +0200)] 
Reverted broken byte-order change from 2001-06-17:
* serpent.c (serpent_set_key): Use correct byteorder.
(serpent_encrypt): Likewise.
(serpent_decrypt): Likewise.

Rev: nettle/serpent.c:1.3

14 years ago(decode_hex_reverse): New function.
Niels Möller [Fri, 15 Apr 2011 18:59:37 +0000 (20:59 +0200)] 
(decode_hex_reverse): New function.
(RH, RHL): New macros.
(test_main): Byte reverse inputs and outputs for the testvectors
taken from the serpent submission package. Enable test vectors
from http://www.cs.technion.ac.il/~biham/Reports/Serpent/.

Rev: nettle/testsuite/serpent-test.c:1.3

14 years ago*** empty log message ***
Niels Möller [Wed, 23 Mar 2011 21:28:12 +0000 (22:28 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.162

14 years ago(xalloc): Deleted function, now it's in misc.c instead.
Niels Möller [Wed, 23 Mar 2011 21:27:53 +0000 (22:27 +0100)] 
(xalloc): Deleted function, now it's in misc.c instead.

Rev: nettle/tools/sexp-conv.c:1.6

14 years ago*** empty log message ***
Niels Möller [Wed, 23 Mar 2011 12:01:54 +0000 (13:01 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.161

14 years agoUse LSH_FUNC_STRERROR.
Niels Möller [Wed, 23 Mar 2011 12:01:49 +0000 (13:01 +0100)] 
Use LSH_FUNC_STRERROR.

Rev: nettle/configure.ac:1.29

14 years ago*** empty log message ***
Niels Möller [Wed, 23 Mar 2011 12:01:29 +0000 (13:01 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.160

14 years ago* tools/Makefile.in (TARGETS): Added nettle-hash, and related
Niels Möller [Wed, 23 Mar 2011 12:01:11 +0000 (13:01 +0100)] 
* tools/Makefile.in (TARGETS): Added nettle-hash, and related
build rules.
(SOURCES): Added nettle-hash.c.

* tools/nettle-hash.c: New file.

Rev: nettle/tools/Makefile.in:1.5
Rev: nettle/tools/nettle-hash.c:1.1

14 years ago(xalloc): New function.
Niels Möller [Wed, 23 Mar 2011 11:58:48 +0000 (12:58 +0100)] 
(xalloc): New function.

Rev: nettle/tools/misc.c:1.3
Rev: nettle/tools/misc.h:1.3

14 years ago(main): Made the OPT_* constants local, and
Niels Möller [Wed, 23 Mar 2011 11:58:26 +0000 (12:58 +0100)] 
(main): Made the OPT_* constants local, and
fixed numerical values to start with non-ASCII 0x300.

Rev: nettle/tools/pkcs1-conv.c:1.5

14 years agoContributed by Daniel Kahn Gillmor:
Daniel Kahn Gillmor [Wed, 23 Mar 2011 10:35:00 +0000 (11:35 +0100)] 
Contributed by Daniel Kahn Gillmor:
* testsuite/Makefile.in (TS_NETTLE_SOURCES): Added
meta-hash-test.c, meta-cipher-test.c, and meta-armor-test.c.

* testsuite/meta-hash-test.c: New file.
* testsuite/meta-cipher-test.c: New file.
* testsuite/meta-armor-test.c: New file.

Rev: nettle/testsuite/.test-rules.make:1.10
Rev: nettle/testsuite/Makefile.in:1.13
Rev: nettle/testsuite/meta-armor-test.c:1.1
Rev: nettle/testsuite/meta-cipher-test.c:1.1
Rev: nettle/testsuite/meta-hash-test.c:1.1

14 years agoContributed by Daniel Kahn Gillmor:
Daniel Kahn Gillmor [Wed, 23 Mar 2011 10:34:47 +0000 (11:34 +0100)] 
Contributed by Daniel Kahn Gillmor:
* testsuite/Makefile.in (TS_NETTLE_SOURCES): Added
meta-hash-test.c, meta-cipher-test.c, and meta-armor-test.c.

* nettle.texinfo: Document nettle_hashes and nettle_ciphers.

* nettle-meta.h: Declare algorithm lists nettle_ciphers,
nettle_hashes, nettle_armors.

* Makefile.in (nettle_SOURCES): Added nettle-meta-hashes.c,
nettle-meta-ciphers.c, and nettle-meta-armors.c.

* nettle-meta-armors.c: New file.
* nettle-meta-ciphers.c: New file.
* nettle-meta-hashes.c: New file.

Rev: nettle/ChangeLog:1.159
Rev: nettle/Makefile.in:1.32
Rev: nettle/nettle-meta-armors.c:1.1
Rev: nettle/nettle-meta-ciphers.c:1.1
Rev: nettle/nettle-meta-hashes.c:1.1
Rev: nettle/nettle-meta.h:1.10
Rev: nettle/nettle.texinfo:1.22

14 years agoFixed typo, spotted by Daniel Kahn Gillmor.
Daniel Kahn Gillmor [Mon, 21 Mar 2011 06:47:03 +0000 (07:47 +0100)] 
Fixed typo, spotted by Daniel Kahn Gillmor.

Rev: nettle/nettle.texinfo:1.21

14 years ago(Cipher functions): Deleted duplicated entries for arctwo.
Niels Möller [Thu, 17 Mar 2011 09:23:08 +0000 (10:23 +0100)] 
(Cipher functions): Deleted duplicated entries for arctwo.

Rev: nettle/nettle.texinfo:1.20

14 years agoAdded link for CBC information leakage.
Niels Möller [Mon, 28 Feb 2011 16:08:45 +0000 (17:08 +0100)] 
Added link for CBC information leakage.

Rev: nettle/nettle.texinfo:1.19

14 years ago(arcfour_stream): Deleted function. It's not very useful, and neither
Niels Möller [Fri, 18 Feb 2011 18:52:31 +0000 (19:52 +0100)] 
(arcfour_stream): Deleted function. It's not very useful, and neither
documented nor tested.

Rev: nettle/ChangeLog:1.158
Rev: nettle/arcfour.c:1.2

14 years ago*** empty log message ***
Niels Möller [Wed, 16 Feb 2011 19:58:52 +0000 (20:58 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.157

14 years agoFleshed out section on gcm.
Niels Möller [Wed, 16 Feb 2011 10:26:22 +0000 (11:26 +0100)] 
Fleshed out section on gcm.

Rev: nettle/nettle.texinfo:1.18

14 years ago(CBC_ENCRYPT): Avoid using NULL; we don't ensure that it
Niels Möller [Wed, 16 Feb 2011 09:40:45 +0000 (10:40 +0100)] 
(CBC_ENCRYPT): Avoid using NULL; we don't ensure that it
is defined.
(CBC_DECRYPT): Likewise.

Rev: nettle/cbc.h:1.3

14 years ago* gcm-aes.c (gcm_aes_set_iv): Use GCM_SET_IV.
Niels Möller [Wed, 16 Feb 2011 09:33:59 +0000 (10:33 +0100)] 
* gcm-aes.c (gcm_aes_set_iv): Use GCM_SET_IV.
(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

14 years ago*** empty log message ***
Niels Möller [Mon, 14 Feb 2011 15:34:53 +0000 (16:34 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.155

14 years agoSplit node on cipher modes, and started on the GCM documentation.
Niels Möller [Mon, 14 Feb 2011 15:34:36 +0000 (16:34 +0100)] 
Split node on cipher modes, and started on the GCM documentation.

Rev: nettle/nettle.texinfo:1.17

14 years ago*** empty log message ***
Niels Möller [Mon, 14 Feb 2011 13:31:43 +0000 (14:31 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.154

14 years ago* testsuite/gcm-test.c (test_gcm_aes): Deleted function, replaced
Niels Möller [Mon, 14 Feb 2011 13:31:19 +0000 (14:31 +0100)] 
* testsuite/gcm-test.c (test_gcm_aes): Deleted function, replaced
by test_aead.
(test_main): Use test_aead.

Rev: nettle/testsuite/gcm-test.c:1.8

14 years ago(test_aead): New function, replacing
Niels Möller [Mon, 14 Feb 2011 13:30:20 +0000 (14:30 +0100)] 
(test_aead): New function, replacing
test_gcm_aes and before that test_cipher_gcm.

Rev: nettle/testsuite/testutils.c:1.14
Rev: nettle/testsuite/testutils.h:1.8

14 years ago* nettle-internal.c (nettle_gcm_aes128): New const struct.
Niels Möller [Mon, 14 Feb 2011 13:28:46 +0000 (14:28 +0100)] 
* nettle-internal.c (nettle_gcm_aes128): New const struct.
(nettle_gcm_aes192): Likewise.
(nettle_gcm_aes256): Likewise.

Rev: nettle/nettle-internal.c:1.4

14 years ago(struct nettle_aead): Tentative interface for
Niels Möller [Mon, 14 Feb 2011 13:27:35 +0000 (14:27 +0100)] 
(struct nettle_aead): Tentative interface for
authenticated encryption with associated data.

Rev: nettle/nettle-internal.h:1.3

14 years ago*** empty log message ***
Niels Möller [Mon, 14 Feb 2011 13:06:26 +0000 (14:06 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.153

14 years ago(time_gcm): Renamed. Updated for gcm_aes_auth to gcm_aes_update
Niels Möller [Mon, 14 Feb 2011 13:06:10 +0000 (14:06 +0100)] 
(time_gcm): Renamed. Updated for gcm_aes_auth to gcm_aes_update
renaming. Benchmark both encryption and hashing.
(time_gmac): ...old name.

Rev: nettle/examples/nettle-benchmark.c:1.20

14 years agoRenamed some macro arguments.
Niels Möller [Mon, 14 Feb 2011 11:32:45 +0000 (12:32 +0100)] 
Renamed some macro arguments.

Rev: nettle/nettle-meta.h:1.9

14 years ago*** empty log message ***
Niels Möller [Mon, 14 Feb 2011 10:34:35 +0000 (11:34 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.152

14 years ago(des_set_key_hack): Don't touch the bits
Niels Möller [Mon, 14 Feb 2011 10:34:14 +0000 (11:34 +0100)] 
(des_set_key_hack): Don't touch the bits
parity, since thay are now ignored.
(des3_set_key_hack): Likewise.

Rev: nettle/nettle-internal.c:1.3

14 years ago* cast128-meta.c (nettle_cast128): Don't pass keysize.
Niels Möller [Mon, 14 Feb 2011 10:29:21 +0000 (11:29 +0100)] 
* cast128-meta.c (nettle_cast128): Don't pass keysize.
* nettle-meta.h (_NETTLE_CIPHER_FIX): Deleted keysize parameter
derived from the appropriate constant instead.

Rev: nettle/cast128-meta.c:1.2

14 years ago(_NETTLE_CIPHER_FIX): Deleted keysize parameter.
Niels Möller [Mon, 14 Feb 2011 10:27:43 +0000 (11:27 +0100)] 
(_NETTLE_CIPHER_FIX): Deleted keysize parameter.

Rev: nettle/nettle-meta.h:1.8

14 years ago*** empty log message ***
Niels Möller [Mon, 14 Feb 2011 09:49:44 +0000 (10:49 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.151

14 years ago(test_gcm_aes): Updated for gcm_aes_auth to gcm_aes_update renaming.
Niels Möller [Mon, 14 Feb 2011 09:49:26 +0000 (10:49 +0100)] 
(test_gcm_aes): Updated for gcm_aes_auth to gcm_aes_update renaming.

Rev: nettle/testsuite/gcm-test.c:1.7

14 years ago* gcm.h (GCM_UPDATE): Renamed, from...
Niels Möller [Sun, 13 Feb 2011 14:33:07 +0000 (15:33 +0100)] 
* gcm.h (GCM_UPDATE): Renamed, from...
(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

14 years ago(GCM_TABLE_BITS): Increase table size to 8 bits,
Niels Möller [Sun, 13 Feb 2011 14:17:22 +0000 (15:17 +0100)] 
(GCM_TABLE_BITS): Increase table size to 8 bits,
corresponding to 4 KByte of key-dependent tables.

Rev: nettle/gcm.h:1.10

14 years agoSpelling fix.
Niels Möller [Sun, 13 Feb 2011 14:16:05 +0000 (15:16 +0100)] 
Spelling fix.

Rev: nettle/memxor.c:1.4

14 years agoAdded more test cases, appearantly demonstrating that the serpent
Niels Möller [Fri, 11 Feb 2011 10:21:17 +0000 (11:21 +0100)] 
Added more test cases, appearantly demonstrating that the serpent
implementation is broken.

Rev: nettle/testsuite/serpent-test.c:1.2

14 years ago*** empty log message ***
Niels Möller [Thu, 10 Feb 2011 22:58:08 +0000 (23:58 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.149

14 years agoNew file. Improves performance by 22% for the
Niels Möller [Thu, 10 Feb 2011 22:57:39 +0000 (23:57 +0100)] 
New file. Improves performance by 22% for the
unaligned01 case and 35% for the unaligned12 case, benchmarked on
Intel SU1400.

Rev: nettle/x86_64/memxor.asm:1.1

14 years ago*** empty log message ***
Niels Möller [Thu, 10 Feb 2011 19:43:40 +0000 (20:43 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.148

14 years ago* examples/nettle-benchmark.c (cgt_works_p): New function.
Niels Möller [Thu, 10 Feb 2011 19:34:09 +0000 (20:34 +0100)] 
* examples/nettle-benchmark.c (cgt_works_p): New function.
(cgt_time_start): Likewise.
(cgt_time_end): Likewise.
(clock_time_start): Likewise.
(clock_time_end): Likewise.
(time_function): Read clock via function pointers time_start and
time_end, so we can select method at runtime.
(xalloc): Use die function.
(main): Choose timing function. If available, try clock_gettime,
and fall back to clock if it doesn't exist.

Rev: nettle/examples/nettle-benchmark.c:1.19

14 years agoTypo fix.
Niels Möller [Thu, 10 Feb 2011 19:29:34 +0000 (20:29 +0100)] 
Typo fix.

Rev: nettle/testsuite/gcm-test.c:1.6

14 years ago*** empty log message ***
Niels Möller [Thu, 10 Feb 2011 19:09:43 +0000 (20:09 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.147

14 years ago(die): New function.
Niels Möller [Thu, 10 Feb 2011 19:09:36 +0000 (20:09 +0100)] 
(die): New function.
(TIME_END, TIME_START): Check return value from clock_gettime.

Rev: nettle/examples/nettle-benchmark.c:1.18

14 years ago(union gcm_block): Use correct length for w array.
Niels Möller [Thu, 10 Feb 2011 10:21:21 +0000 (11:21 +0100)] 
(union gcm_block): Use correct length for w array.

Rev: nettle/ChangeLog:1.146
Rev: nettle/gcm.h:1.9

14 years ago*** empty log message ***
Niels Möller [Thu, 10 Feb 2011 10:11:43 +0000 (11:11 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.145

14 years ago(test_main): Added the rest of the testcases from the spec.
Niels Möller [Thu, 10 Feb 2011 10:11:18 +0000 (11:11 +0100)] 
(test_main): Added the rest of the testcases from the spec.

Rev: nettle/testsuite/gcm-test.c:1.5

14 years agoAdded more test cases.
Niels Möller [Thu, 10 Feb 2011 09:31:37 +0000 (10:31 +0100)] 
Added more test cases.

Rev: nettle/testsuite/gcm-test.c:1.4

14 years ago*** empty log message ***
Niels Möller [Wed, 9 Feb 2011 21:58:42 +0000 (22:58 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.144

14 years ago* testsuite/gcm-test.c (test_main): Enabled testcases 5 and 6,
Niels Möller [Wed, 9 Feb 2011 21:58:25 +0000 (22:58 +0100)] 
* testsuite/gcm-test.c (test_main): Enabled testcases 5 and 6,
with different IV lengths.

Rev: nettle/testsuite/gcm-test.c:1.3

14 years ago* gcm-aes.c (gcm_aes_set_iv): Updated for gcm_set_iv change.
Niels Möller [Wed, 9 Feb 2011 21:57:40 +0000 (22:57 +0100)] 
* gcm-aes.c (gcm_aes_set_iv): Updated for gcm_set_iv change.

Rev: nettle/gcm-aes.c:1.2

14 years ago* gcm.c (gcm_hash_sizes): New function.
Niels Möller [Wed, 9 Feb 2011 21:57:05 +0000 (22:57 +0100)] 
* gcm.c (gcm_hash_sizes): New function.
(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

14 years ago*** empty log message ***
Niels Möller [Wed, 9 Feb 2011 21:35:34 +0000 (22:35 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.143

14 years ago(time_gmac): Use gcm_aes interface.
Niels Möller [Wed, 9 Feb 2011 21:35:18 +0000 (22:35 +0100)] 
(time_gmac): Use gcm_aes interface.

Rev: nettle/examples/nettle-benchmark.c:1.17

14 years ago* testsuite/gcm-test.c (test_gcm_aes): New function, replacing
Niels Möller [Wed, 9 Feb 2011 21:34:46 +0000 (22:34 +0100)] 
* testsuite/gcm-test.c (test_gcm_aes): New function, replacing
test_cipher_gcm and using the new gcm_aes interface.
(test_main): Updated to use test_gcm_aes.
* testsuite/testutils.c (test_cipher_gcm): Deleted function.

Rev: nettle/testsuite/gcm-test.c:1.2
Rev: nettle/testsuite/testutils.c:1.13
Rev: nettle/testsuite/testutils.h:1.7

14 years ago(nettle_SOURCES): Added gcm-aes.c.
Niels Möller [Wed, 9 Feb 2011 21:32:08 +0000 (22:32 +0100)] 
(nettle_SOURCES): Added gcm-aes.c.

Rev: nettle/Makefile.in:1.31

14 years agoNew file.
Niels Möller [Wed, 9 Feb 2011 21:31:20 +0000 (22:31 +0100)] 
New file.
(gcm_aes_set_key): New function.
(gcm_aes_set_iv): Likewise.
(gcm_aes_auth): Likewise.
(gcm_aes_encrypt): Likewise.
(gcm_aes_decrypt): Likewise.
(gcm_aes_digest): Likewise.

Rev: nettle/gcm-aes.c:1.1

14 years ago* gcm.c (gcm_set_key): Replaced context argument by a struct
Niels Möller [Wed, 9 Feb 2011 21:31:07 +0000 (22:31 +0100)] 
* gcm.c (gcm_set_key): Replaced context argument by a struct
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

14 years ago*** empty log message ***
Niels Möller [Tue, 8 Feb 2011 20:11:49 +0000 (21:11 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.141

14 years ago* gcm.h (struct gcm_ctx): The hash key is now always an array,
Niels Möller [Tue, 8 Feb 2011 20:11:35 +0000 (21:11 +0100)] 
* gcm.h (struct gcm_ctx): The hash key is now always an array,
named h, with array size depending on GCM_TABLE_BITS.

Rev: nettle/gcm.h:1.6

14 years ago* gcm.c (gcm_gf_shift): Added a separate result argument.
Niels Möller [Tue, 8 Feb 2011 20:07:06 +0000 (21:07 +0100)] 
* gcm.c (gcm_gf_shift): Added a separate result argument.
(gcm_gf_mul): Compile bitwise version only when GCM_TABLE_BITS ==
0. Simplified interface with just two arguments pointing to
complete blocks.
(gcm_gf_shift_4, gcm_gf_shift_8): Renamed table-based functions, from...
(gcm_gf_shift_chunk): ... old name.
(gcm_gf_mul): Renamed both table-based versions and made the
argument types compatible with the bitwise gcm_gf_mul.
(gcm_gf_mul_chunk): ... the old name.
(gcm_set_key): Initialize the table using adds and shifts only.
When GCM_TABLE_BITS > 0, this eliminates the only use of the
bitwise multiplication.
(gcm_hash): Simplified, now that we have the same interface for
gcm_gf_mul, regardless of table size.

Rev: nettle/ChangeLog:1.140
Rev: nettle/gcm.c:1.11

14 years ago* gcm.c (GHASH_POLYNOMIAL): Use unsigned long for this constant.
Niels Möller [Tue, 8 Feb 2011 11:20:38 +0000 (12:20 +0100)] 
* gcm.c (GHASH_POLYNOMIAL): Use unsigned long for this constant.
(gcm_gf_shift_chunk): Fixed bugs for the big endian 64-bit case,
e.g., sparc64. For both 4-bit and 8-bit tables.

Rev: nettle/ChangeLog:1.139
Rev: nettle/gcm.c:1.10

14 years ago* gcm.c: Use the new union gcm_block for all gf operations.
Niels Möller [Tue, 8 Feb 2011 10:42:54 +0000 (11:42 +0100)] 
* gcm.c: Use the new union gcm_block for all gf operations.

* 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

14 years ago* gcm.c (gcm_gf_shift_chunk) : Bug fix for little-endian 8-bit
Niels Möller [Mon, 7 Feb 2011 21:17:22 +0000 (22:17 +0100)] 
* gcm.c (gcm_gf_shift_chunk) : Bug fix for little-endian 8-bit
tables.

Rev: nettle/ChangeLog:1.137
Rev: nettle/gcm.c:1.8

14 years ago*** empty log message ***
Niels Möller [Mon, 7 Feb 2011 20:33:15 +0000 (21:33 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.136

14 years ago* gcm.c (gcm_gf_mul_chunk): Special case first and last iteration.
Niels Möller [Mon, 7 Feb 2011 20:33:10 +0000 (21:33 +0100)] 
* gcm.c (gcm_gf_mul_chunk): Special case first and last iteration.
(gcm_gf_add): New function, a special case of memxor. Use it for
all memxor calls with word-aligned 16 byte blocks. Improves
performance to 152 cycles/byte with no tables, 28 cycles per byte
with 4-bit tables and 10.5 cycles per byte with 8-bit tables.

Rev: nettle/gcm.c:1.7

14 years ago*** empty log message ***
Niels Möller [Mon, 7 Feb 2011 12:36:30 +0000 (13:36 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.135

14 years ago(gcm_gf_shift_chunk): New implementation for 8-bit tables.
Niels Möller [Mon, 7 Feb 2011 12:10:15 +0000 (13:10 +0100)] 
(gcm_gf_shift_chunk): New implementation for 8-bit tables.
(gcm_gf_mul_chunk): Likewise.
(gcm_set_key): Generate 8-bit tables.

Rev: nettle/gcm.c:1.6

14 years ago(SOURCES): Added gcmdata.c.
Niels Möller [Mon, 7 Feb 2011 08:52:28 +0000 (09:52 +0100)] 
(SOURCES): Added gcmdata.c.

Rev: nettle/ChangeLog:1.134
Rev: nettle/Makefile.in:1.30

14 years ago*** empty log message ***
Niels Möller [Mon, 7 Feb 2011 08:51:18 +0000 (09:51 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.133

14 years ago(GCM_TABLE_BITS): Set to 4.
Niels Möller [Mon, 7 Feb 2011 08:46:16 +0000 (09:46 +0100)] 
(GCM_TABLE_BITS): Set to 4.

Rev: nettle/gcm.h:1.4

14 years ago*** empty log message ***
Niels Möller [Sun, 6 Feb 2011 21:03:48 +0000 (22:03 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.132

14 years ago(TARGETS): Added gcmdata.
Niels Möller [Sun, 6 Feb 2011 21:03:18 +0000 (22:03 +0100)] 
(TARGETS): Added gcmdata.
(gcmdata): New rule.

Rev: nettle/Makefile.in:1.29

14 years agoIntroduced 4-bit tables. Gives gmac performance of 45 cycles per
Niels Möller [Sun, 6 Feb 2011 21:02:16 +0000 (22:02 +0100)] 
Introduced 4-bit tables. Gives gmac performance of 45 cycles per
byte (still on intel x86_64).
* gcm.c (gcm_gf_shift): Renamed. Tweaked little-endian masks.
(gcm_rightshift): ... old name.
(gcm_gf_mul): New argument for the output. Added length argument
for one of the inputs (implicitly padding with zeros).
(shift_table): New table (in 4-bit and 8-bit versions), generated
by gcmdata.
(gcm_gf_shift_chunk): New function shifting 4 bits at
a time.
(gcm_gf_mul_chunk): New function processing 4 bits at a time.
(gcm_set_key): Generation of 4-bit key table.
(gcm_hash): Use tables, when available.

Rev: nettle/gcm.c:1.5

14 years ago(main): New file.
Niels Möller [Sun, 6 Feb 2011 20:53:03 +0000 (21:53 +0100)] 
(main): New file.

Rev: nettle/gcmdata.c:1.1

14 years ago*** empty log message ***
Niels Möller [Sun, 6 Feb 2011 17:15:20 +0000 (18:15 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.131

14 years ago* gcm.c (gcm_rightshift): Moved the reduction of the shifted out
Niels Möller [Sun, 6 Feb 2011 17:15:04 +0000 (18:15 +0100)] 
* gcm.c (gcm_rightshift): Moved the reduction of the shifted out
bit here.
(gcm_gf_mul): Updated for gcm_rightshift change. Improves gmac
performance to 181 cycles/byte.

Rev: nettle/gcm.c:1.4

14 years ago*** empty log message ***
Niels Möller [Sun, 6 Feb 2011 14:41:22 +0000 (15:41 +0100)] 
*** empty log message ***

Rev: nettle/ChangeLog:1.130