10 #ifndef CRYPTOPP_RIJNDAEL_H 11 #define CRYPTOPP_RIJNDAEL_H 16 #if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_ARM32 || \ 17 CRYPTOPP_BOOL_ARM64 || CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64 18 # define CRYPTOPP_RIJNDAEL_ADVANCED_PROCESS_BLOCKS 1 30 CRYPTOPP_DLL
static const char * CRYPTOPP_API StaticAlgorithmName() {
return CRYPTOPP_RIJNDAEL_NAME;}
43 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base :
public BlockCipherImpl<Rijndael_Info>
46 void UncheckedSetKey(
const byte *userKey,
unsigned int keyLength,
const NameValuePairs ¶ms);
49 static void FillEncTable();
50 static void FillDecTable();
53 static const byte Se[256];
54 static const byte Sd[256];
56 static const word32 rcon[];
58 unsigned int m_rounds;
68 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Enc :
public Base
71 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
72 #if CRYPTOPP_RIJNDAEL_ADVANCED_PROCESS_BLOCKS 73 size_t AdvancedProcessBlocks(
const byte *inBlocks,
const byte *xorBlocks, byte *outBlocks,
size_t length, word32 flags)
const;
82 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Dec :
public Base
85 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
86 #if CRYPTOPP_RIJNDAEL_ADVANCED_PROCESS_BLOCKS 87 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...
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.