Crypto++ 8.9
Free C++ class library of cryptographic schemes
|
Classes for the SM4 block cipher. More...
#include <sm4.h>
Classes | |
class | Base |
SM4 block cipher transformation functions. More... | |
class | Dec |
Decryption transformation. More... | |
class | Enc |
Encryption transformation. More... | |
Public Types | |
typedef BlockCipherFinal< ENCRYPTION, Enc > | Encryption |
typedef BlockCipherFinal< DECRYPTION, Dec > | Decryption |
Public Types inherited from BlockCipherDocumentation | |
typedef BlockCipher | Encryption |
implements the BlockCipher interface | |
typedef BlockCipher | Decryption |
implements the BlockCipher interface | |
Additional Inherited Members | |
Static Public Member Functions inherited from SM4_Info | |
static const std::string | StaticAlgorithmName () |
Static Public Member Functions inherited from FixedKeyLength< 16 > | |
static size_t | StaticGetValidKeyLength (size_t keylength) |
The default key length for the algorithm provided by a static function. | |
Static Public Attributes inherited from FixedBlockSize< 16 > | |
static const int | BLOCKSIZE |
The block size of the algorithm provided as a constant. | |
Static Public Attributes inherited from FixedKeyLength< 16 > | |
static const int | KEYLENGTH |
The default key length used by the algorithm provided as a constant. | |
static const int | MIN_KEYLENGTH |
The minimum key length used by the algorithm provided as a constant. | |
static const int | MAX_KEYLENGTH |
The maximum key length used by the algorithm provided as a constant. | |
static const int | DEFAULT_KEYLENGTH |
The default key length used by the algorithm provided as a constant. | |
static const int | IV_REQUIREMENT |
The default IV requirements for the algorithm provided as a constant. | |
static const int | IV_LENGTH |
The default IV length used by the algorithm provided as a constant. | |
Classes for the SM4 block cipher.
SM4 is a block cipher designed by Xiaoyun Wang, et al. The block cipher is part of the Chinese State Cryptography Administration portfolio. The cipher was formerly known as SMS4.
typedef BlockCipherFinal<ENCRYPTION, Enc> SM4::Encryption |
typedef BlockCipherFinal<DECRYPTION, Dec> SM4::Decryption |