diff options
author | weidai <weidai11@users.noreply.github.com> | 2007-04-15 23:00:27 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2007-04-15 23:00:27 +0000 |
commit | 643b3022278591c8a784f5a34f689548a4ad62b1 (patch) | |
tree | 6d117430c0ea76a7444fa3871d1898995d825ada /rijndael.h | |
parent | 3b89824be3a8d3974ad0316f2067451c3072bffc (diff) | |
download | cryptopp-git-643b3022278591c8a784f5a34f689548a4ad62b1.tar.gz |
MMX/SSE2 optimizations
Diffstat (limited to 'rijndael.h')
-rw-r--r-- | rijndael.h | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -25,16 +25,10 @@ class CRYPTOPP_DLL Rijndael : public Rijndael_Info, public BlockCipherDocumentat protected: // VS2005 workaround: have to put these on seperate lines, or error C2487 is triggered in DLL build - CRYPTOPP_L1_CACHE_ALIGN(static const byte Se[256]); - CRYPTOPP_L1_CACHE_ALIGN(static const byte Sd[256]); - CRYPTOPP_L1_CACHE_ALIGN(static const word32 Te0[256]); - static const word32 Te1[256]; - static const word32 Te2[256]; - static const word32 Te3[256]; - CRYPTOPP_L1_CACHE_ALIGN(static const word32 Td0[256]); - static const word32 Td1[256]; - static const word32 Td2[256]; - static const word32 Td3[256]; + static const byte Se[256]; + static const byte Sd[256]; + static const word32 Te[4*256]; + static const word32 Td[4*256]; static const word32 rcon[]; @@ -52,6 +46,7 @@ class CRYPTOPP_DLL Rijndael : public Rijndael_Info, public BlockCipherDocumentat { public: void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const; + void ProcessAndXorBlock_Old(const byte *inBlock, const byte *xorBlock, byte *outBlock) const; }; public: |