diff options
author | lloyd <[email protected]> | 2008-11-17 05:20:39 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-17 05:20:39 +0000 |
commit | 1647a64afd4658aaf5ac5c1079df80d62dc36c39 (patch) | |
tree | db16ec2aa7a935dd1d784093dd836129262025f7 /src/block/aes/aes.h | |
parent | 80eb8ab8c4a3bc1e6bb841d9dd2ab3d609786745 (diff) |
Optimize the first round of AES, currently in the encryption direction only.
This seems to have a significant impact on overall speed, now measuring
on my Core2 Q6600:
AES-128: 123.41 MiB/sec
AES-192: 108.28 MiB/sec
AES-256: 95.72 MiB/sec
which is roughly 8-10% faster than before.
Diffstat (limited to 'src/block/aes/aes.h')
-rw-r--r-- | src/block/aes/aes.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/block/aes/aes.h b/src/block/aes/aes.h index 9b84e572c..bceae7494 100644 --- a/src/block/aes/aes.h +++ b/src/block/aes/aes.h @@ -31,9 +31,14 @@ class BOTAN_DLL AES : public BlockCipher static const byte SD[256]; static const u32bit TE[1024]; static const u32bit TD[1024]; - SecureBuffer<u32bit, 52> EK, DK; - SecureBuffer<byte, 32> ME, MD; + u32bit ROUNDS; + + SecureBuffer<u32bit, 56> EK; + SecureBuffer<byte, 16> ME; + + SecureBuffer<u32bit, 52> DK; + SecureBuffer<byte, 32> MD; }; /** |