summaryrefslogtreecommitdiff
path: root/rijndael.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-04-15 23:00:27 +0000
committerweidai <weidai11@users.noreply.github.com>2007-04-15 23:00:27 +0000
commit643b3022278591c8a784f5a34f689548a4ad62b1 (patch)
tree6d117430c0ea76a7444fa3871d1898995d825ada /rijndael.h
parent3b89824be3a8d3974ad0316f2067451c3072bffc (diff)
downloadcryptopp-git-643b3022278591c8a784f5a34f689548a4ad62b1.tar.gz
MMX/SSE2 optimizations
Diffstat (limited to 'rijndael.h')
-rw-r--r--rijndael.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/rijndael.h b/rijndael.h
index a035da4c..a068d637 100644
--- a/rijndael.h
+++ b/rijndael.h
@@ -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: