diff options
author | lloyd <[email protected]> | 2006-08-13 11:36:39 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-13 11:36:39 +0000 |
commit | daf52d03dc898dc1e3b05649532986a998f4d88c (patch) | |
tree | c724fc77f895eec2e69666cc559909c72ce8580c /include/aes.h | |
parent | f72c813aace629bd1705950b6e181a718f35b8cb (diff) |
Merge the AES TD and TE arrays, so assembly versions can used indexed
addressing rather than having to keep all four pointers around.
Unfortunately GCC does not seem to be taking advantage of this.
Diffstat (limited to 'include/aes.h')
-rw-r--r-- | include/aes.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/aes.h b/include/aes.h index 377d7479a..c8a1b1569 100644 --- a/include/aes.h +++ b/include/aes.h @@ -27,8 +27,7 @@ class AES : public BlockCipher void key(const byte[], u32bit); static u32bit S(u32bit); static const byte SE[256], SD[256]; - static const u32bit TE0[256], TE1[256], TE2[256], TE3[256], - TD0[256], TD1[256], TD2[256], TD3[256]; + static const u32bit TE[1024], TD[1024]; SecureBuffer<u32bit, 52> EK, DK; SecureBuffer<byte, 32> ME, MD; u32bit ROUNDS; |