1. 25 Jul, 2010 1 commit
    • Niels Möller's avatar
      (camellia_set_encrypt_key): Inline · beafb5f3
      Niels Möller authored
      the expansion of camellia_setup128 and camellia_setup256, keeping
      the unexpanded key in scalar variables.
      (camellia_setup128): Deleted.
      (camellia_setup256): Deleted.
      
      Rev: nettle/camellia-set-encrypt-key.c:1.3
      beafb5f3
  2. 24 Jul, 2010 2 commits
    • Niels Möller's avatar
      * camellia-set-encrypt-key.c (camellia_set_encrypt_key): Reduced · 55357236
      Niels Möller authored
      code size, no complete loop unroll. Use one loop for each phase of
      the post-processing.
      
      Rev: nettle/camellia-set-encrypt-key.c:1.2
      55357236
    • 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