21#if (CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86)
22# ifndef CRYPTOPP_DISABLE_SM4_SIMD
23# define CRYPTOPP_SM4_ADVANCED_PROCESS_BLOCKS 1
33 static const std::string StaticAlgorithmName()
53 void UncheckedSetKey(
const byte *userKey,
unsigned int keyLength,
const NameValuePairs ¶ms);
66 class CRYPTOPP_NO_VTABLE
Enc :
public Base
69 std::string AlgorithmProvider()
const;
71 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
72#if CRYPTOPP_SM4_ADVANCED_PROCESS_BLOCKS
73 size_t AdvancedProcessBlocks(
const byte *inBlocks,
const byte *xorBlocks,
byte *outBlocks,
size_t length,
word32 flags)
const;
84 class CRYPTOPP_NO_VTABLE
Dec :
public Base
87 void ProcessAndXorBlock(
const byte *inBlock,
const byte *xorBlock,
byte *outBlock)
const;
Provides a base implementation of Algorithm and SimpleKeyingInterface for block ciphers.
Inherited by algorithms with fixed block size.
Inherited by keyed algorithms with fixed key length.
Interface for retrieving values given their names.
SM4 block cipher transformation functions.
Decryption transformation.
Encryption transformation.
Classes for the SM4 block cipher.
Secure memory block with allocator and cleanup.
Library configuration file.
unsigned int word32
32-bit unsigned datatype
Crypto++ library namespace.
Classes and functions for secure memory allocations.
Classes and functions for implementing secret key algorithms.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher.
BlockCipher Decryption
implements the BlockCipher interface
BlockCipher Encryption
implements the BlockCipher interface
SM4 block cipher information.