Security Scol plugin
Classes | Public Types | List of all members
SM4 Class Reference

Classes for the SM4 block cipher. More...

#include <sm4.h>

Inheritance diagram for SM4:
SM4_Info BlockCipherDocumentation FixedBlockSize< 16 > FixedKeyLength< 16 >

Classes

class  Base
 SM4 block cipher transformation functions. More...
 
class  Dec
 Decryption transformation. More...
 
class  Enc
 Encryption transformation. More...
 

Public Types

typedef BlockCipherFinal< ENCRYPTION, EncEncryption
 
typedef BlockCipherFinal< DECRYPTION, DecDecryption
 
- Public Types inherited from BlockCipherDocumentation
typedef BlockCipher Encryption
 implements the BlockCipher interface
 
typedef BlockCipher Decryption
 implements the BlockCipher interface
 

Additional Inherited Members

- Public Member Functions inherited from FixedBlockSize< 16 >
 CRYPTOPP_CONSTANT (BLOCKSIZE=N)
 The block size of the algorithm provided as a constant.
 
- Public Member Functions inherited from FixedKeyLength< 16 >
 CRYPTOPP_CONSTANT (KEYLENGTH=N)
 The default key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (MIN_KEYLENGTH=N)
 The minimum key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (MAX_KEYLENGTH=N)
 The maximum key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (DEFAULT_KEYLENGTH=N)
 The default key length used by the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (IV_REQUIREMENT=SimpleKeyingInterface::NOT_RESYNCHRONIZABLE)
 The default IV requirements for the algorithm provided as a constant.
 
 CRYPTOPP_CONSTANT (IV_LENGTH=0)
 The default IV length used by the algorithm provided as a constant.
 
CRYPTOPP_STATIC_CONSTEXPR size_t CRYPTOPP_API StaticGetValidKeyLength (size_t keylength)
 The default key length for the algorithm provided by a static function.
 
- Static Public Member Functions inherited from SM4_Info
static const std::string StaticAlgorithmName ()
 

Detailed Description

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.

See also
SMS4 Encryption Algorithm for Wireless Networks
Since
Crypto++ 6.0

Definition at line 44 of file sm4.h.

Member Typedef Documentation

◆ Decryption

Definition at line 91 of file sm4.h.

◆ Encryption

Definition at line 90 of file sm4.h.


The documentation for this class was generated from the following file: