1. 16 Feb, 2011 2 commits
    • Niels Möller's avatar
      *** empty log message *** · c64d97a4
      Niels Möller authored
      Rev: nettle/ChangeLog:1.157
    • 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
  2. 14 Feb, 2011 5 commits
  3. 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
  4. 10 Feb, 2011 5 commits
  5. 09 Feb, 2011 3 commits
    • Niels Möller's avatar
      *** empty log message *** · 6e532461
      Niels Möller authored
      Rev: nettle/ChangeLog:1.144
    • Niels Möller's avatar
      *** empty log message *** · 1fb0a70b
      Niels Möller authored
      Rev: nettle/ChangeLog:1.143
    • 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
  6. 08 Feb, 2011 4 commits
    • Niels Möller's avatar
      *** empty log message *** · 8b753af5
      Niels Möller authored
      Rev: nettle/ChangeLog:1.141
    • 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
    • Niels Möller's avatar
      * gcm.c (GHASH_POLYNOMIAL): Use unsigned long for this constant. · 41a660e1
      Niels Möller authored
      (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
    • Niels Möller's avatar
      * gcm.c: Use the new union gcm_block for all gf operations. · 6b34ff5a
      Niels Möller authored
      * 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
  7. 07 Feb, 2011 5 commits
  8. 06 Feb, 2011 3 commits
  9. 05 Feb, 2011 2 commits
  10. 07 Jan, 2011 2 commits
  11. 14 Dec, 2010 1 commit
  12. 07 Dec, 2010 1 commit
  13. 26 Nov, 2010 2 commits
    • Niels Möller's avatar
      Reapplied optimizations (150% speedup on x86_32) and other fixes, · 58ae58cd
      Niels Möller authored
      relicensing them as LGPL.
      * blowfish.c (do_encrypt): Renamed, to...
      (encrypt): ...new name.
      (F): Added context argument. Shift input explicitly, instead of
      reading individual bytes via memory.
      (R): Added context argument.
      (encrypt): Deleted a bunch of local variables. Using the context
      pointer for everything should consume less registers.
      (decrypt): Likewise.
      (initial_ctx): Arrange constants into a struct, to simplify key setup.
      (blowfish_set_key): Some simplification.
      Rev: nettle/ChangeLog:1.123
      Rev: nettle/blowfish.c:1.5
    • Simon Josefsson's avatar
      *** empty log message *** · 8ce0ab12
      Simon Josefsson authored and Niels Möller's avatar Niels Möller committed
      Rev: nettle/ChangeLog:1.122
      Rev: nettle/blowfish.c:1.4
  14. 25 Nov, 2010 1 commit
  15. 16 Nov, 2010 1 commit
  16. 01 Nov, 2010 1 commit
  17. 26 Oct, 2010 1 commit