Skip to content
Snippets Groups Projects
Commit f441a523 authored by Niels Möller's avatar Niels Möller
Browse files

* camellia.c: Rewrote to use 64-bit type for subkeys and use

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
parent 118e2618
No related branches found
No related tags found
No related merge requests found
2010-07-20 Niels Mller <nisse@lysator.liu.se>
* camellia.c: Rewrote to use 64-bit type for subkeys and use
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.
2010-07-07 Niels Mller <nisse@lysator.liu.se> 2010-07-07 Niels Mller <nisse@lysator.liu.se>
* aes.h (aes_encrypt, aes_decrypt): Declare ctx argument as const. * aes.h (aes_encrypt, aes_decrypt): Declare ctx argument as const.
......
This diff is collapsed.
...@@ -53,8 +53,7 @@ struct camellia_ctx ...@@ -53,8 +53,7 @@ struct camellia_ctx
post-whitening keys is folded fith the round keys, so that subkey post-whitening keys is folded fith the round keys, so that subkey
subkey #1 and the last one (#25 or #33) is not used. FIXME: subkey #1 and the last one (#25 or #33) is not used. FIXME:
Renumber to eliminate them. */ Renumber to eliminate them. */
/* FIXME: For 64-bit machines, don't split in 32-bit halves. */ uint64_t keys[34];
uint32_t keys[34][2];
}; };
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment