Crypto++
5.6.4
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
8 #ifndef CRYPTOPP_RIJNDAEL_H
9 #define CRYPTOPP_RIJNDAEL_H
15 #if CRYPTOPP_BOOL_X32 || (defined(CRYPTOPP_LLVM_CLANG_VERSION) && (CRYPTOPP_LLVM_CLANG_VERSION < 30400))
16 # define CRYPTOPP_DISABLE_RIJNDAEL_ASM
24 CRYPTOPP_DLL
static const char * CRYPTOPP_API StaticAlgorithmName() {
return CRYPTOPP_RIJNDAEL_NAME;}
33 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base :
public BlockCipherImpl<Rijndael_Info>
36 void UncheckedSetKey(
const byte *userKey,
unsigned int length,
const NameValuePairs ¶ms);
39 static void FillEncTable();
40 static void FillDecTable();
43 static const byte Se[256];
44 static const byte Sd[256];
46 static const word32 rcon[];
48 unsigned int m_rounds;
54 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Enc :
public Base
57 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
58 #if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86
59 size_t AdvancedProcessBlocks(
const byte *inBlocks,
const byte *xorBlocks,
byte *outBlocks,
size_t length, word32 flags)
const;
65 class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Dec :
public Base
68 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
69 #if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE
70 size_t AdvancedProcessBlocks(
const byte *inBlocks,
const byte *xorBlocks,
byte *outBlocks,
size_t length, word32 flags)
const;
Rijndael block cipher information.
Classes and functions for secure memory allocations.
Inherited by algorithms with fixed block size.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Rijndael block cipher implementation details.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher.
Classes and functions for implementing secret key algorithms.
Crypto++ library namespace.
Interface for retrieving values given their names.
Inherited by keyed algorithms with variable key length.