Crypto++
8.2
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
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;
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.
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.
Secure memory block with allocator and cleanup.
Interface for retrieving values given their names.
Inherited by keyed algorithms with variable key length.