SM4 Block Cipher Algorithm
Chinese commercial cryptography standard SM4 algorithm, 128-bit block symmetric encryption, supporting CBC/ECB/CTR modes with automatic key and IV generation
SM4 Block Cipher
Encrypt
Decrypt
SM Cryptography Documentation
SM4 Block Cipher
SM4 is a block cipher algorithm specified in Chinese National Standard GB/T 32907, using 128-bit blocks and 128-bit keys, supporting ECB, CBC, CTR and other modes.
Common Applications
Data encryption, key exchange, VPN and secure channels
Related Standards
GB/T 32907 (SM4 Block Cipher Algorithm)
Security Notes
Frequently Asked Questions
Why use Chinese National Cryptography algorithms?
Chinese National Cryptography algorithms are Chinese commercial cryptography standards widely used in finance, government, defense and other fields. They have all passed evaluation and certification by the national cryptography management department, ensuring security.
What are the differences between SM2, SM3, and SM4?
SM2 is used for asymmetric encryption and digital signatures, SM3 is used for data hashing and integrity verification, and SM4 is used for symmetric encryption. The three are typically used together to implement a complete security solution.