diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-05-03 11:42:17 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-05-03 11:42:17 +0200 |
commit | 66bf0965c3f4d2579349d5fc89071bac836afc62 (patch) | |
tree | db2ee1d80b0b2cb8242da9e95a243f996737b3ff /cast128.h | |
parent | 0b5a9b2adb48b94e170cb5c149c56bbfacbeccaf (diff) | |
download | nettle-66bf0965c3f4d2579349d5fc89071bac836afc62.tar.gz |
cast128: Reorganized context struct. Rewrite of key schedule.
Diffstat (limited to 'cast128.h')
-rw-r--r-- | cast128.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |