14 #ifndef CRYPTOPP_SM4_H 15 #define CRYPTOPP_SM4_H 21 #if (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86) 22 # define CRYPTOPP_SM4_ADVANCED_PROCESS_BLOCKS 1 31 static const std::string StaticAlgorithmName()
51 void UncheckedSetKey(
const byte *userKey,
unsigned int keyLength,
const NameValuePairs ¶ms);
64 class CRYPTOPP_NO_VTABLE
Enc :
public Base 67 std::string AlgorithmProvider()
const;
69 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
70 #if CRYPTOPP_SM4_ADVANCED_PROCESS_BLOCKS 71 size_t AdvancedProcessBlocks(
const byte *inBlocks,
const byte *xorBlocks, byte *outBlocks,
size_t length, word32 flags)
const;
82 class CRYPTOPP_NO_VTABLE
Dec :
public Base 85 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock, byte *outBlock)
const;
94 #endif // CRYPTOPP_SM4_H Inherited by keyed algorithms with fixed key length.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher...
Secure memory block with allocator and cleanup.
Library configuration file.
Encryption transformation.
Interface for one direction (encryption or decryption) of 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.
Classes for the SM4 block cipher.
SM4 block cipher transformation functions.
SM4 block cipher information.
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Crypto++ library namespace.
Encryption transformation.
Interface for retrieving values given their names.