Technical specification defining the cryptographic application interface for smart IC cards and smart tokens.
This document, issued by the National Cryptography Administration, specifies the cryptographic application interface for smart IC cards and smart tokens. It covers device management, access control, application, file and container management, cryptographic services, and security requirements.
The specification includes definitions of data types, algorithm identifiers (SM1, SM2, SM3), function prototypes, error codes, and detailed security constraints such as PIN length, key protection, and resistance to side‑channel attacks. This manual is written in Chinese.
The device must resist side‑channel, voltage, frequency, and ultraviolet attacks.
SAR_OK (0x00000000) indicates successful execution of a function.