SM4 - term AI

SM4 is a block cipher algorithm approved as a national standard of the People’s Republic of China (standard GM/T 0002-2012).

Operating with 128-bit data blocks and keys of similar length, this algorithm has far surpassed its original purpose — the protection of wireless networks (WAPI). Today, in the field of artificial intelligence, SM4 is transforming into a fundamental infrastructure component that ensures security at all stages of the lifecycle of neural network systems.

Protection of neural network assets and intellectual property

Training a modern large language model or a computer vision system requires colossal computational power and unique datasets. The resulting weight files (binary containers) are the primary commercial asset of technology companies.

To protect these assets from industrial espionage, SM4 is used to encrypt the binary files of models:

  • Barrier to reverse engineering: The use of SM4 makes it impossible to extract the architecture and model parameters using reverse engineering tools. An attacker receives only an encrypted array of bytes devoid of practical value.
  • Dynamic licensing: Decryption of weights occurs directly in the protected memory of the computational module only after successful verification of a digital signature or access token. This allows AI solution providers to strictly control the number of devices on which their model can run.

Ensuring security at the edge (Edge AI) and in IoT

The era when AI lived exclusively in secure data centers is coming to an end. Today, neural networks operate on drones, street cameras, and industrial controllers. In such conditions, the communication channel between a smart sensor and the cloud becomes the primary target for interception attacks (MitM).

SM4 takes on the task of perimeter protection:

  • Data stream encryption: In «Safe City» systems or autonomous transport, the video stream analyzed by the neural network is encrypted at the hardware level using SM4. This guarantees that even if traffic is intercepted, a malicious actor cannot substitute the image or eavesdrop on confidential data.
  • Integrity of OTA updates: When a neural network on an endpoint device requires a weight update, the data package is transmitted in encrypted form. SM4 eliminates the possibility of injecting malicious code that could, for example, embed a «sleeping» trigger forcing the model to ignore certain road signs.

Hardware acceleration and the concept of technological sovereignty

The key advantage of SM4 over Western analogues in the context of AI is its native support in silicon. While standards like AES often require additional computational cycles, SM4 is integrated at the microcode level into many modern Chinese chips:

  • Kendryte and analogues: Specialized processors for machine vision are equipped with dedicated execution units for SM4. This allows for the encryption of terabytes of video data in real-time without overloading the computational cores (NPU/TPU).
  • Huawei Ascend and RockChip ecosystems: In the face of geopolitical restrictions and semiconductor shortages, Chinese developers are creating closed hardware stacks. Here, SM4 acts as a connecting link, providing end-to-end encryption of data from the primary sensor to the central aggregation server.

Technical optimization for high-load systems

Architecturally, SM4 is based on the classic Feistel network with 32 rounds of transformations. The use of elementary logical operations (XOR, cyclic shift, S-boxes) makes the algorithm extremely efficient for hardware implementation:

  • Ultra-low latency: When FPGA accelerators are coupled with tensor processors, hardware SM4 adds negligible delays. This is critical for AI algorithms in high-frequency trading or collision avoidance systems in robotics.
  • Energy efficiency: For autonomous AI sensors running on battery power, SM4 is the optimal choice. It consumes minimal energy per encryption operation compared to more resource-intensive algorithms, significantly extending the device’s service life.

SM4 ceases to be a narrowly specialized cryptographic tool. It becomes a guarantor of trust and digital sovereignty. By ensuring the protection of proprietary data at rest and guaranteeing the integrity of the information flow from sensors, SM4 forms a secure foundation for the deployment of AI in critical sectors — from public administration to autonomous energy.

Let's start a conversation

Start Scaling Today

Contact our experts to select the optimal hardware configuration and calculate rental pricing for your AI workloads.

Location: Moscow, ext.ter.g., sh. Ochakovskoe, 28, p.2
GPU Servers High-density compute
Облачная аренда Быстрый старт ИИ моделей
Enterprise SLA Guaranteed availability
Low Latency Optimal network routes