Crypto++
8.2
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
14 #ifndef CRYPTOPP_SM4_H
15 #define CRYPTOPP_SM4_H
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;
96 #endif // CRYPTOPP_SM4_H
Classes for the SM4 block cipher.
Encryption transformation.
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.
Inherited by keyed algorithms with fixed key length.
SM4 block cipher transformation functions.
Encryption transformation.
Provides Encryption and Decryption typedefs used by derived classes to implement a block cipher.
Classes and functions for implementing secret key algorithms.
SM4 block cipher information.
Crypto++ library namespace.
Library configuration file.
Interface for one direction (encryption or decryption) of a block cipher.
Secure memory block with allocator and cleanup.
Interface for retrieving values given their names.