diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-08-17 12:33:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 12:33:43 -0400 |
commit | e2c377effd9a4eca0291c217e9c3256b033511dc (patch) | |
tree | a33fa7d52e14b923a034bafb9a05172a983a0e7c /rijndael.h | |
parent | 74d21068a16c2b3e879336ae7eed180d4466e8b5 (diff) | |
download | cryptopp-git-e2c377effd9a4eca0291c217e9c3256b033511dc.tar.gz |
Split source files to support Base Implementation + SIMD implementation (GH #461)
Split source files to support Base Implementation + SIMD implementation
Diffstat (limited to 'rijndael.h')
-rw-r--r-- | rijndael.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -17,6 +17,10 @@ # define CRYPTOPP_DISABLE_RIJNDAEL_ASM
#endif
+#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARM64
+# define CRYPTOPP_ENABLE_ADVANCED_PROCESS_BLOCKS 1
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
//! \brief Rijndael block cipher information
@@ -56,7 +60,7 @@ class CRYPTOPP_DLL Rijndael : public Rijndael_Info, public BlockCipherDocumentat {
public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
-#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86
+#if CRYPTOPP_ENABLE_ADVANCED_PROCESS_BLOCKS
Enc();
size_t AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) const;
private:
@@ -70,7 +74,7 @@ class CRYPTOPP_DLL Rijndael : public Rijndael_Info, public BlockCipherDocumentat {
public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
-#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86
+#if CRYPTOPP_ENABLE_ADVANCED_PROCESS_BLOCKS
size_t AdvancedProcessBlocks(const byte *inBlocks, const byte *xorBlocks, byte *outBlocks, size_t length, word32 flags) const;
#endif
};
|