SM2 explained in plain terms means understanding the public-key cryptography that China built for itself, an elliptic-curve system that signs documents, exchanges keys, and encrypts messages for Chinese government, banking, and business. The central question is why a country would build its own public-key standard when perfectly good ones already exist, and the answer is that China wanted cryptography it could trust, audit, and control.
SM2 is a public-key cryptosystem based on elliptic curves, published by the Chinese State Cryptography Administration in 2010 and standardised as GB/T 32918 in 2016. It uses a 256-bit elliptic curve, supports digital signatures, key exchange, and public-key encryption, and it is now required by Chinese regulations for systems that handle sensitive data inside China.
This article makes the case for understanding SM2, explains what it is, how it works, and where it already runs.
Key takeaways
- SM2 is a public-key cryptosystem based on elliptic curves.
- It uses a 256-bit curve and a 256-bit private key.
- It is the Chinese national standard GB/T 32918.
- It supports signatures, key exchange, and encryption.
- It is required by Chinese regulations for sensitive systems.
What SM2 is
SM2 is a set of public-key algorithms that let two parties who have never met agree on a secret, prove who they are, and send messages that only the intended reader can open. Each user holds a private key that must stay secret and a public key that anyone may know, and the mathematics of elliptic curves makes it easy to go from private to public but practically impossible to go back.
Its signature feature is that it does three jobs with one curve. The same 256-bit elliptic curve supports digital signatures for proving authorship, a key exchange for agreeing on shared secrets, and public-key encryption for sending secrets to one named reader, which means a system that adopts SM2 gets a complete public-key toolkit rather than a single trick.
The design was a reaction to China’s need for its own cryptography. In the late 2000s, China wanted public-key algorithms for its government systems, banks, and businesses that it could trust, audit, and control, and the State Cryptography Administration published SM2 as the answer, first for national use and then as a general-purpose standard.
It became the public-key standard behind China’s commercial cryptography rules. Systems that handle sensitive data in China are expected to use SM2 where public-key cryptography is needed, which means that every bank, government agency, and large business operating there has SM2 in its toolkit, and that gave the standard a vast installed base from the start.
Its most famous property is how far it has travelled. SM2 began as a Chinese national standard, but it is now defined for use in TLS, supported by OpenSSL, and published in international standards documents, which means a system that started behind national borders is now part of the global cryptographic conversation.
Our guide to key derivation explains how keys like the one SM2 uses are made safely, and our guide to ARIA explains another national standard cipher from South Korea.
How SM2 works
Everything starts with the elliptic curve, a mathematical object defined by an equation over a finite field, where points on the curve can be added together in a way that behaves like ordinary addition. The curve SM2 uses is a 256-bit prime-field curve, and the security of the whole system rests on the difficulty of working backwards from a point on the curve to the number that produced it.
The private key is a random 256-bit number, and the public key is a point on the curve produced by multiplying the curve’s base point by that number. Multiplying a point by a number is fast and easy, but reversing the operation, finding the number from the point, is the elliptic-curve discrete logarithm problem, and nobody knows how to solve it efficiently for a well-chosen 256-bit curve.
Signing works by mixing the message with the private key and a fresh random number. The signer produces two numbers that anyone can check against the public key, and the check passes only if the signature was made by the holder of the matching private key, which means a signature proves authorship without ever revealing the secret itself.
Key exchange works by combining two public keys with two private keys. Each party multiplies the other’s public key by their own private key, and both sides arrive at the same shared point, which they turn into a secret key for encrypting their conversation, and an eavesdropper who sees only the public keys cannot compute the shared secret.
Encryption works by hiding the message inside a point on the curve. The sender picks a random number, combines it with the recipient’s public key, and produces a ciphertext that only the recipient’s private key can open, which means a message encrypted to one named reader stays secret from everyone else, including the sender after the fact.
The security of the design rests on the curve and the size of the key. A 256-bit elliptic-curve key offers security comparable to a 3072-bit RSA key, and the best published attacks need unrealistic amounts of computing power, which is why SM2 has survived more than a decade of public analysis.

Comparing SM2 with other public-key systems
SM2 is one of several public-key systems, and each was built with a different emphasis. ECDSA is the global elliptic-curve standard designed through open international processes, RSA is the older system built on the difficulty of factoring large numbers, and SM2 is China’s national answer to both, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | SM2 | ECDSA | RSA |
|---|---|---|---|
| Based on | Elliptic curves | Elliptic curves | Integer factoring |
| Key size | 256 bits | 256 bits | 3072 bits |
| Standard | China GB/T 32918 | NIST FIPS 186 | PKCS#1 |
| Does signatures | Yes | Yes | Yes |
| Best for | Chinese systems | General use | Legacy systems |
The practical result is that SM2 is the right choice for Chinese systems, ECDSA suits general use everywhere else, and RSA fits legacy systems that already depend on it.
Where SM2 is used
Chinese government systems use it for official data. Government agencies in China that handle sensitive information use SM2 as part of their approved cryptography, and the national standard behind it gives their choice a clear basis in regulation and policy.
Chinese banking and finance use it for transactions. Banks and payment systems operating in China use SM2 where Chinese standards require it, which means the system protects a share of the world’s largest financial market, and every transaction that passes through those systems depends on it.
Chinese business uses it to interoperate. A company that sells into China, partners with Chinese firms, or handles data under Chinese regulations needs SM2 in its toolkit, because the systems on the other side expect it, and cryptography that cannot talk to its counterpart is cryptography that does not work.
Global software libraries support it for completeness. OpenSSL includes SM2, and developers anywhere in the world can use it, which means a standard that began as a national requirement is now available to anyone who needs to interoperate with Chinese systems.
Internet standards use it for secure connections. SM2 is defined for use in TLS, the protocol that protects web traffic, which means a browser or a server that talks to Chinese systems can negotiate SM2 for its signatures and key exchange, and the connection is protected by a standard both sides understand.
Strengths and limits
The greatest strength of SM2 is that it is a complete toolkit. Signatures, key exchange, and encryption from one curve mean a system can standardise on a single set of algorithms, and the 256-bit keys keep certificates and messages small compared with RSA, which matters on networks where every byte costs time.
It is also a strength that SM2 is supported globally. A standard that runs in OpenSSL and is defined for TLS can be deployed anywhere, and that support means engineers outside China can use SM2 without building their own implementation, which lowers the barrier to interoperating with Chinese systems.
The limits are real, though, and the biggest is geography. Outside China and the businesses that work with it, almost nobody uses SM2, which means smaller communities of implementers, fewer independent reviews in recent years, and less tooling than global systems enjoy, and a system that must interoperate internationally will usually choose ECDSA instead.
SM2 checklist
- Use SM2 where Chinese standards or regulations require it.
- Always generate private keys from a proper random source.
- Use a fresh random number for every signature you make.
- Remember SM2 signatures do not encrypt on their own.
- Verify certificates before trusting any public key.
- Test against published test vectors before shipping any implementation.
- Keep private keys random and protect them as carefully as with any system.
- Plan for interoperability if your system must talk to the outside world.
- Compare with ECDSA for systems that do not need Chinese compliance.
Frequently asked questions
What is SM2 in simple terms?
It is a public-key cryptosystem from China, based on elliptic curves, that lets people sign documents, agree on shared secrets, and encrypt messages to a named reader.
Why does China have its own public-key standard?
To have public-key cryptography it could trust, audit, and control, rather than depending entirely on foreign designs, and to meet the needs of its own government and financial systems.
How is SM2 different from ECDSA?
Both use elliptic curves with 256-bit keys, but SM2 is China’s national standard with its own curve and signature details, while ECDSA is the global standard defined by NIST.
Is SM2 supported outside China?
Yes, it is supported by OpenSSL and defined for use in TLS, so anyone can use it to interoperate with Chinese systems.
What is the SM2 curve?
It is a 256-bit elliptic curve over a prime field, published with the standard, and every SM2 implementation uses the same curve parameters.
When should I use SM2?
When you operate in China, when Chinese standards or regulations require it, or when you must interoperate with systems that already use it.
The bottom line
SM2 explained in one line is this: the public-key system China built for itself and then shared with the world, a complete toolkit that now guards the largest digital economy on the planet.
It is proof that a national standard can become a global tool, and the reason it still matters is that anyone doing business with China will meet SM2 sooner or later, and it pays to understand it before that day comes.
This article is general information about how SM2 works, not advice about choosing cryptography for a particular system or country.







