10 #ifndef CRYPTOPP_RIJNDAEL_H 11 #define CRYPTOPP_RIJNDAEL_H 18 #if CRYPTOPP_BOOL_X32 || defined(CRYPTOPP_DISABLE_MIXED_ASM) 19 # define CRYPTOPP_DISABLE_RIJNDAEL_ASM 1 22 #if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_ARM32 || \ 23 CRYPTOPP_BOOL_ARMV8 || CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64 24 # define CRYPTOPP_RIJNDAEL_ADVANCED_PROCESS_BLOCKS 1 36 CRYPTOPP_DLL
static const char * CRYPTOPP_API StaticAlgorithmName() {
return CRYPTOPP_RIJNDAEL_NAME;}
49 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base :
public BlockCipherImpl<Rijndael_Info>
52 void UncheckedSetKey(
const byte *userKey,
unsigned int keyLength,
const NameValuePairs ¶ms);
53 std::string AlgorithmProvider()
const;
54 unsigned int OptimalDataAlignment()
const;
57 static void FillEncTable();
58 static void FillDecTable();
61 static const byte Se[256];
62 static const byte Sd[256];
64 static const word32 rcon[];
66 unsigned int m_rounds;
76 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Enc :
public Base
79 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
80 #if CRYPTOPP_RIJNDAEL_ADVANCED_PROCESS_BLOCKS 81 size_t AdvancedProcessBlocks(
const byte *inBlocks,
const byte *xorBlocks, byte *outBlocks,
size_t length, word32 flags)
const;
90 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Dec :
public Base
93 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
94 #if CRYPTOPP_RIJNDAEL_ADVANCED_PROCESS_BLOCKS 95 size_t AdvancedProcessBlocks(
const byte *inBlocks,
const byte *xorBlocks, byte *outBlocks,
size_t length, word32 flags)
const;
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
Secure memory block with allocator and cleanup.
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
Classes and functions for implementing secret key algorithms.
Inherited by keyed algorithms with variable key length.
Rijndael block cipher information.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Crypto++ library namespace.
Interface for retrieving values given their names.