native 0.0.1
Vectors, masks and wide register packs for C++26
Loading...
Searching...
No Matches
sm4_sbox.h File Reference

Shared SM4 substitution and four-round semantics for ARM and x86. More...

#include <array>
#include <bit>
#include <cstdint>
Include dependency graph for sm4_sbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  native
 Architecture-tagged vectors, register packs and supporting value types. Native arithmetic follows its architecture tag and instruction-set preconditions. Common utilities do not select or admit a runtime CPU profile.

Detailed Description

Shared SM4 substitution and four-round semantics for ARM and x86.

State words are in instruction lane order. Each round shifts out the first word and appends its replacement; Key selects the key-schedule rotations.

Definition in file sm4_sbox.h.