This repository contains GM/T serial standards implementations (SM2, SM3, SM4, SM9 and ZUC) provided by the Commercial Cryptography Testing Center.
Every source code in this repository can be used for academic, non-profit making or non-commercial use only. All implementation are based on MIRACL Cryptographic SDK, which also requires a proper license which may be obtained from Shamus Software Ltd.
Clone this repository with Git submodules:
git clone https://github.com/Arkq/SM2349.git && cd SM2349
git submodule update --init --recursive
Build MIRACL library:
NOTE: This step will compile MIRACL library for x64 Linux platforms only. If your target/host platform is different, please compile MIRACL library by yourself - refer to the documentation provided by the MIRACL library codebase.
make miracl.a
Build SM algorithms reference implementations:
make