1. 25 Jul, 2010 2 commits
    • Niels Möller's avatar
      * camellia.h (struct camellia_ctx): Eliminate the two unused · 55d15220
      Niels Möller authored
      subkeys, and renumber the remaining ones.
      * camellia-crypt-internal.c (_camellia_crypt): Updated for
      renumbered subkeys.
      * camellia-set-encrypt-key.c (camellia_set_encrypt_key): Likewise.
      * camellia-set-decrypt-key.c (camellia_invert_key): Likewise.
      
      Rev: nettle/ChangeLog:1.101
      Rev: nettle/camellia-crypt-internal.c:1.2
      Rev: nettle/camellia-set-decrypt-key.c:1.2
      Rev: nettle/camellia-set-encrypt-key.c:1.4
      Rev: nettle/camellia.h:1.5
      55d15220
    • Niels Möller's avatar
      *** empty log message *** · adcde24f
      Niels Möller authored
      Rev: nettle/ChangeLog:1.100
      adcde24f
  2. 24 Jul, 2010 4 commits
    • Niels Möller's avatar
      Spacing fix. · 9ec781b7
      Niels Möller authored
      Rev: nettle/ChangeLog:1.99
      9ec781b7
    • Niels Möller's avatar
      *** empty log message *** · db384a66
      Niels Möller authored
      Rev: nettle/ChangeLog:1.98
      db384a66
    • Niels Möller's avatar
      * aes.h (aes_invert_key): Declare it. · c0371ee1
      Niels Möller authored
      * aes-set-decrypt-key.c (aes_invert_key): New function, key
      inversion code extracted from aes_set_decrypt_key.
      (aes_set_decrypt_key): Use aes_invert_key.
      
      Rev: nettle/ChangeLog:1.97
      Rev: nettle/aes-set-decrypt-key.c:1.2
      Rev: nettle/aes.h:1.3
      c0371ee1
    • Niels Möller's avatar
      * camellia-set-encrypt-key.c (camellia_setup128): Generate · c1552ab2
      Niels Möller authored
      unmodified subkeys according to the spec. Moved clever combination
      of subkeys to camellia_set_encrypt_key.
      (camellia_setup256): Likewise.
      (camellia_set_encrypt_key): Moved subkey post-processing code
      here, and reduce code duplication between 128-bit keys and larger
      keys.
      
      * camellia.c: Deleted file, split into several new files...
      * camellia-table.c (_camellia_table): New file with the constant
      sbox tables.
      * camellia-set-encrypt-key.c: New file.
      (camellia_setup128): Generate unmodified subkeys according to the
      spec. Moved clever combination of subkeys to camellia_set_encrypt_key.
      (camellia_setup256): Likewise.
      
      * camellia-set-decrypt-key.c: New file.
      (camellia_invert_key): Key inversion function.
      (camellia_set_decrypt_key): New key setup function.
      * camellia-internal.h: New file.
      * camellia-crypt.c (camellia_crypt): New file, new wrapper
      function passing the sbox table to _camellia_crypt.
      * camellia-crypt-internal.c (_camellia_crypt): New file, with main
      encrypt/decrypt function.
      * Makefile.in (nettle_SOURCES): Updated list of camellia source files.
      (DISTFILES): Added camellia-internal.h.
      
      Rev: nettle/ChangeLog:1.96
      Rev: nettle/Makefile.in:1.26
      Rev: nettle/camellia-crypt-internal.c:1.1
      Rev: nettle/camellia-crypt.c:1.1
      Rev: nettle/camellia-internal.h:1.1
      Rev: nettle/camellia-set-decrypt-key.c:1.1
      Rev: nettle/camellia-set-encrypt-key.c:1.1
      Rev: nettle/camellia-table.c:1.1
      Rev: nettle/camellia.c:1.5(DEAD)
      c1552ab2
  3. 20 Jul, 2010 3 commits
    • Niels Möller's avatar
      * camellia-meta.c: Use _NETTLE_CIPHER_SEP_SET_KEY. · 5af86074
      Niels Möller authored
      * camellia.h (struct camellia_ctx): Replaced flag camellia128 by
      expanded key length nkeys.
      
      * camellia.c (camellia_set_encrypt_key): Renamed, from...
      (camellia_set_key): ... old name.
      (camellia_invert_key): New function.
      (camellia_set_decrypt_key): New function, using
      camellia_invert_key.
      (camellia_crypt): Renamed, from...
      (camellia_encrypt): ... old name.
      (camellia_decrypt): Deleted, no longer needed. camellia_crypt used
      for both encryption and decryption.
      
      Rev: nettle/ChangeLog:1.95
      Rev: nettle/camellia-meta.c:1.2
      Rev: nettle/camellia.c:1.4
      Rev: nettle/camellia.h:1.4
      5af86074
    • Niels Möller's avatar
      *** empty log message *** · 1cff2b5a
      Niels Möller authored
      Rev: nettle/ChangeLog:1.94
      1cff2b5a
    • Niels Möller's avatar
      * camellia.c: Rewrote to use 64-bit type for subkeys and use · f441a523
      Niels Möller authored
      64-bit operations throughout. Performance on x86_32, when compiled
      with gcc-4.4.4, is reduced by roughly 15%, this should be fixed
      later.
      
      * camellia.h (struct camellia_ctx): Use type uint64_t for subkeys.
      
      Rev: nettle/ChangeLog:1.93
      Rev: nettle/camellia.c:1.3
      Rev: nettle/camellia.h:1.3
      f441a523
  4. 07 Jul, 2010 4 commits
    • Niels Möller's avatar
      Added camellia ciphers. · 118e2618
      Niels Möller authored
      Rev: nettle/ChangeLog:1.92
      Rev: nettle/examples/nettle-benchmark.c:1.8
      118e2618
    • Niels Möller's avatar
      * aes.h (aes_encrypt, aes_decrypt): Declare ctx argument as const. · c8f4cc35
      Niels Möller authored
      Also updated implementation.
      * blowfish.h (blowfish_encrypt, blowfish_decrypt): Likewise.
      * cast128.h (cast128_encrypt, cast128_decrypt): Likewise.
      * serpent.h (serpent_encrypt, serpent_decrypt): Likewise.
      * twofish.h (twofish_encrypt, twofish_decrypt): Likewise.
      
      Rev: nettle/ChangeLog:1.91
      Rev: nettle/aes-decrypt.c:1.2
      Rev: nettle/aes-encrypt.c:1.2
      Rev: nettle/aes.h:1.2
      Rev: nettle/blowfish.c:1.3
      Rev: nettle/blowfish.h:1.3
      Rev: nettle/cast128.c:1.2
      Rev: nettle/cast128.h:1.2
      Rev: nettle/serpent.c:1.2
      Rev: nettle/serpent.h:1.2
      Rev: nettle/twofish.c:1.2
      Rev: nettle/twofish.h:1.2
      c8f4cc35
    • Niels Möller's avatar
      *** empty log message *** · 99db0536
      Niels Möller authored
      Rev: nettle/ChangeLog:1.90
      99db0536
    • Niels Möller's avatar
      * Makefile.in (nettle_SOURCES): Added camellia.c and · a4d89a90
      Niels Möller authored
      camellia-meta.c.
      (HEADERS): Added camellia.h.
      
      * camellia-meta.c: New file.
      
      * camellia.h: Rewrote interface to match nettle conventions.
      
      * camellia.c: Converted to nettle conventions.
      (camellia_encrypt128, camellia_encrypt256): Unified to new
      function...
      (camellia_encrypt): ...New function, with a loop doing 6
      regular rounds, one FL round and one FLINV round per iteration,
      with iteration count depending on the key size.
      
      Rev: nettle/ChangeLog:1.89
      Rev: nettle/Makefile.in:1.25
      Rev: nettle/camellia-meta.c:1.1
      Rev: nettle/camellia.c:1.2
      Rev: nettle/camellia.h:1.2
      a4d89a90
  5. 05 Jul, 2010 1 commit
  6. 30 Jun, 2010 2 commits
  7. 04 Jun, 2010 1 commit
  8. 02 Jun, 2010 1 commit
  9. 01 Jun, 2010 1 commit
  10. 26 May, 2010 3 commits
    • Niels Möller's avatar
      *** empty log message *** · 60a9b1b1
      Niels Möller authored
      Rev: nettle/ChangeLog:1.82
      60a9b1b1
    • Niels Möller's avatar
      *** empty log message *** · e9c0dfa1
      Niels Möller authored
      Rev: nettle/ChangeLog:1.81
      e9c0dfa1
    • Niels Möller's avatar
      (_nettle_generate_pocklington_prime): New · 6ce825c7
      Niels Möller authored
      function. Rely on mpz_probab_prime_p (for lack of a trial division
      function) for trial division.
      (nettle_random_prime): Rewritten. Uses the prime table for the
      smallest sizes, then trial division using a new set of tables, and
      then Maurer's algorithm, calling the new
      _nettle_generate_pocklington_prime for the final search.
      
      Rev: nettle/ChangeLog:1.80
      Rev: nettle/bignum-random-prime.c:1.4
      Rev: nettle/bignum.h:1.5
      6ce825c7
  11. 25 May, 2010 1 commit
  12. 20 May, 2010 1 commit
  13. 09 Apr, 2010 3 commits
  14. 31 Mar, 2010 2 commits
  15. 30 Mar, 2010 2 commits
    • Niels Möller's avatar
      *** empty log message *** · 01d379c6
      Niels Möller authored
      Rev: nettle/ChangeLog:1.72
      01d379c6
    • Niels Möller's avatar
      * Makefile.in (hogweed_SOURCES): Added dsa-sha1-sign.c, · ed5015c3
      Niels Möller authored
      dsa-sha1-verify.c, dsa-sha256-sign.c, and dsa-sha256-verify.c.
      
      * dsa.h: Updated and added dsa declarations.
      
      * dsa-sha256-verify.c (dsa_sha256_verify_digest): New file, new
      function.
      (dsa_sha256_verify): New function.
      * dsa-sha256-sign.c (dsa_sha256_sign_digest): New file, new
      function.
      (dsa_sha256_sign): New function.
      
      * dsa-sha1-verify.c (dsa_sha1_verify_digest): New file. Moved and
      renamed function, from dsa_verify_digest, rewrote to use
      _dsa_verify.
      (dsa_sha1_verify): Analogous change, renamed from dsa_verify.
      * dsa-sha1-sign.c (dsa_sha1_sign_digest): New file. Moved and
      renamed function, from dsa_sign_digest, rewrote to use _dsa_sign,
      and added return value.
      (dsa_sha1_sign): Analogous change, renamed from dsa_sign.
      
      * dsa-verify.c (_dsa_verify): New general verification function,
      for any hash.
      * dsa-sign.c (_dsa_sign): New general signing function, for any
      hash. Returns success code, like the rsa signture functions.
      
      Rev: nettle/ChangeLog:1.71
      Rev: nettle/Makefile.in:1.22
      Rev: nettle/dsa-sha1-sign.c:1.1
      Rev: nettle/dsa-sha1-verify.c:1.1
      Rev: nettle/dsa-sha256-sign.c:1.1
      Rev: nettle/dsa-sha256-verify.c:1.1
      Rev: nettle/dsa-sign.c:1.3
      Rev: nettle/dsa-verify.c:1.3
      Rev: nettle/dsa.h:1.4
      ed5015c3
  16. 29 Mar, 2010 3 commits
  17. 28 Mar, 2010 1 commit
  18. 27 Mar, 2010 2 commits
  19. 26 Mar, 2010 2 commits
  20. 25 Mar, 2010 1 commit