]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Merge branch 'memxor-reorg' into master.
authorNiels Möller <nisse@lysator.liu.se>
Sun, 11 Jan 2015 10:45:56 +0000 (11:45 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 11 Jan 2015 10:45:56 +0000 (11:45 +0100)
1  2 
ChangeLog

diff --cc ChangeLog
index bb299f1c26d836e9cd61e47ff51840c22fa38fce,0fc8da987f66fa9a24b754996cc8a596a1269f27..816aa79a039825559392c76525849a6583bd3cc1
+++ b/ChangeLog
@@@ -1,23 -1,46 +1,70 @@@
++2015-01-11  Niels Möller  <nisse@lysator.liu.se>
++
++      Merged memxor-reorg changes, starting at 2014-10-23.
++
+ 2015-01-10  Niels Möller  <nisse@lysator.liu.se>
+       * arm/memxor.asm (memxor3): Moved to new file.
+       * arm/memxor3.asm: New file.
+ 2014-11-24  Niels Möller  <nisse@lysator.liu.se>
+       * x86_64/memxor3.asm (memxor3): New file, code moved from old
+       memxor.asm.
+       * x86_64/memxor.asm (memxor): Rewritten, no longer jumps into
+       memxor3.
+       * configure.ac (asm_replace_list): Added memxor.asm and
+       memxor3.asm.
+ 2014-10-23  Niels Möller  <nisse@lysator.liu.se>
+       * configure.ac (IF_ASM): New substituted variable.
+       * testsuite/Makefile.in (VALGRIND): Allow partial loads only when
+       build includes assembly files.
+       * memxor-internal.h (READ_PARTIAL): New macro.
+       * memxor.c (memxor_different_alignment): Avoid out-of-bounds
+       reads, corresponding to valgrind's --partial-loads-ok. Use
+       READ_PARTIAL.
+       * memxor3.c: Analogous changes for unaligned operations.
+       * configure.ac (asm_replace_list): Deleted memxor.asm, now
+       incompatible with the memxor/memxor3 split.
+       * memxor3.c: New file, split off from memxor.c.
+       * memxor-internal.h: New file, declarations shared by memxor.c and
+       memxor3.c.
+       * memxor.c: memxor3 fucntions moved out from this file.
+       * Makefile.in (nettle_SOURCES): Added memxor3.c.
+       (DISTFILES): Added memxor-internal.h.
+       * memxor.c (memxor_common_alignment, memxor_different_alignment)
+       (memxor): Change loop order, iterate from the end.
+       (memxor3_common_alignment): Unroll twice.
+       (word_t): On x86_64, unconditionally define as uint64_t, to get 64
+       bits also in M$ windows. Replaced all uses of SIZEOF_LONG.
 +2014-12-12  Niels Möller  <nisse@lysator.liu.se>
 +
 +      * cbc.h (CBC_ENCRYPT, CBC_DECRYPT): Make type-checking hack
 +      stricter, warn if type of length argument is smaller than size_t.
 +      * ctr.h (CTR_CRYPT): Likewise.
 +      * eax.h (EAX_SET_KEY, EAX_SET_NONCE, EAX_UPDATE, EAX_ENCRYPT)
 +      (EAX_DECRYPT, EAX_DIGEST): Likewise.
 +      * gcm.h (GCM_SET_KEY, GCM_ENCRYPT, GCM_DECRYPT, GCM_DIGEST):
 +      Likewise.
 +
 +2014-11-24  Niels Möller  <nisse@lysator.liu.se>
 +
 +      * gcm.h (GCM_SET_KEY): Rename macro argument KEY to avoid
 +      collision with a struct tag. Spotted by Nikos Mavrogiannopoulos.
 +
 +      * testsuite/eddsa-verify-test.c (test_eddsa): Fixed test case bug,
 +      showing up as use of uninitialized data with valgrind.
 +
 +2014-10-23  Niels Möller  <nisse@lysator.liu.se>
 +
        * examples/nettle-benchmark.c (time_memxor): Allocate buffers as
        arrays of unsigned long, for more reliable alignment.