1. 07 Jun, 2011 3 commits
  2. 06 Jun, 2011 2 commits
    • Niels Möller's avatar
      * Makefile.in (DISTFILES): Added serpent-internal.h. · 00a6c2d1
      Niels Möller authored
      (nettle_SOURCES): Replaced serpent.c by serpent-set-key.c,
      serpent-encrypt.c, and serpent-decrypt.c.
      
      * serpent.c: Replaced by several new files.
      * serpent-set-key.c: New file.
      * serpent-encrypt.c: New file.
      * serpent-decrypt.c: New file.
      * serpent-internal.h: New file.
      
      Rev: nettle/ChangeLog:1.176
      Rev: nettle/Makefile.in:1.34
      Rev: nettle/serpent-decrypt.c:1.1
      Rev: nettle/serpent-encrypt.c:1.1
      Rev: nettle/serpent-internal.h:1.1
      Rev: nettle/serpent-set-key.c:1.1
      Rev: nettle/serpent.c:1.9(DEAD)
      00a6c2d1
    • Niels Möller's avatar
      Process two blocks at a time in parallel. Measured speedup of 10%--25% · 229f766b
      Niels Möller authored
      (higher for encryption) on x86_64.
      
      Rev: nettle/ChangeLog:1.175
      Rev: nettle/serpent.c:1.8
      229f766b
  3. 01 Jun, 2011 2 commits
    • Niels Möller's avatar
      * serpent.c (ROUNDS): Deleted macro. · e57e557f
      Niels Möller authored
      (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
      e57e557f
    • Niels Möller's avatar
      Added do { ... } while (0) around block macros. · 763ed53e
      Niels Möller authored
      (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
      763ed53e
  4. 31 May, 2011 4 commits
  5. 30 May, 2011 1 commit
  6. 21 May, 2011 1 commit
  7. 06 May, 2011 2 commits
  8. 27 Apr, 2011 1 commit
  9. 15 Apr, 2011 1 commit
  10. 23 Mar, 2011 4 commits
    • Niels Möller's avatar
      *** empty log message *** · 751558ba
      Niels Möller authored
      Rev: nettle/ChangeLog:1.162
      751558ba
    • Niels Möller's avatar
      *** empty log message *** · 9579451e
      Niels Möller authored
      Rev: nettle/ChangeLog:1.161
      9579451e
    • Niels Möller's avatar
      *** empty log message *** · e670b44f
      Niels Möller authored
      Rev: nettle/ChangeLog:1.160
      e670b44f
    • Daniel Kahn Gillmor's avatar
      Contributed by Daniel Kahn Gillmor: · d83027b1
      Daniel Kahn Gillmor authored
      * 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
      d83027b1
  11. 18 Feb, 2011 1 commit
  12. 16 Feb, 2011 2 commits
    • Niels Möller's avatar
      *** empty log message *** · c64d97a4
      Niels Möller authored
      Rev: nettle/ChangeLog:1.157
      c64d97a4
    • Niels Möller's avatar
      * gcm-aes.c (gcm_aes_set_iv): Use GCM_SET_IV. · 53f5da92
      Niels Möller authored
      (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
      53f5da92
  13. 14 Feb, 2011 5 commits
  14. 13 Feb, 2011 1 commit
    • Niels Möller's avatar
      * gcm.h (GCM_UPDATE): Renamed, from... · 4961af0a
      Niels Möller authored
      (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
      4961af0a
  15. 10 Feb, 2011 5 commits
  16. 09 Feb, 2011 3 commits
    • Niels Möller's avatar
      *** empty log message *** · 6e532461
      Niels Möller authored
      Rev: nettle/ChangeLog:1.144
      6e532461
    • Niels Möller's avatar
      *** empty log message *** · 1fb0a70b
      Niels Möller authored
      Rev: nettle/ChangeLog:1.143
      1fb0a70b
    • Niels Möller's avatar
      * gcm.c (gcm_set_key): Replaced context argument by a struct · 5f07c78b
      Niels Möller authored
      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
      5f07c78b
  17. 08 Feb, 2011 2 commits
    • Niels Möller's avatar
      *** empty log message *** · 8b753af5
      Niels Möller authored
      Rev: nettle/ChangeLog:1.141
      8b753af5
    • Niels Möller's avatar
      * gcm.c (gcm_gf_shift): Added a separate result argument. · 56691ae4
      Niels Möller authored
      (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
      56691ae4