summaryrefslogtreecommitdiff
path: root/cast128.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-05-03 11:42:17 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-05-03 11:42:17 +0200
commit66bf0965c3f4d2579349d5fc89071bac836afc62 (patch)
treedb2ee1d80b0b2cb8242da9e95a243f996737b3ff /cast128.h
parent0b5a9b2adb48b94e170cb5c149c56bbfacbeccaf (diff)
downloadnettle-66bf0965c3f4d2579349d5fc89071bac836afc62.tar.gz
cast128: Reorganized context struct. Rewrite of key schedule.
Diffstat (limited to 'cast128.h')
-rw-r--r--cast128.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cast128.h b/cast128.h
index 63636d21..abdf71df 100644
--- a/cast128.h
+++ b/cast128.h
@@ -53,8 +53,10 @@ extern "C" {
struct cast128_ctx
{
- uint32_t keys[32]; /* Key, after expansion */
- unsigned rounds; /* Number of rounds to use, 12 or 16 */
+ unsigned rounds; /* Number of rounds to use, 12 or 16 */
+ /* Expanded key, rotations (5 bits only) and 32-bit masks. */
+ unsigned char Kr[16];
+ uint32_t Km[16];
};
void