Cryptography
SM4
Key expansion and encryption rounds of the SM4 block cipher, VEX-encoded and, on processors with AVX10, EVEX-encoded up to 512 bits.
- CPUID
- SM4
CPUID.(EAX=07H,ECX=1):EAX[2] - Instructions
- 2 mnemonics
- Processors
- Arrow Lake, Panther Lake, Nova Lake, Diamond Rapids, Clearwater Forest
SM4 accelerates the SM4 block cipher, a Chinese national standard (GB/T 32907-2016) with 128-bit blocks and keys and 32 rounds. VSM4RNDS4 performs four encryption rounds and VSM4KEY4 four rounds of key expansion, independently in each 128-bit lane. The VEX forms work on 128- and 256-bit vectors. EVEX forms up to 512 bits followed; they need the SM4 bit together with AVX10, and Intel lists Diamond Rapids and Nova Lake as the first processors with them.
Instructions
CPUID and processors
XED splits SM4 into 4 ISA sets. Software can use a form when the processor reports every CPUID bit of one alternative of the form's ISA set.
| ISA set | CPUID | Processors in XED |
|---|---|---|
SM4 | SM4 + AVX | Arrow Lake, Panther Lake, Nova Lake, Diamond Rapids, Clearwater Forest |
SM4_128 | SM4 + AVX10 | Nova Lake, Diamond Rapids |
SM4_256 | SM4 + AVX10 | Nova Lake, Diamond Rapids |
SM4_512 | SM4 + AVX10 | Nova Lake, Diamond Rapids |
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, ISA sets, CPUID bits and chip model. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-092, June 2026)
- Intel Architecture Instruction Set Extensions and Future Features Programming Reference (319433-062, June 2026)
- Intel Advanced Vector Extensions 10.2 Architecture Specification, revision 6.0 (361050-006, January 2026)
- IETF draft-ribose-cfrg-sm4-10: The SM4 Blockcipher Algorithm and Its Modes of Operations (April 2018)
The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The text is our own.