github.com/emmansun/gmsm@v0.29.1/sm9/README.md (about) 1 ## SM9 current supported functions: 2 * Keys generation(密钥生成) 3 * Sign/Verify (数字签名算法) 4 * Key Exchange (密钥交换协议) 5 * Wrap/Unwrap Key (密钥封装机制) 6 * Encryption/Decryption (公钥加密算法) 7 8 ## Reference 9 * Information security technology—Identity-based cryptographic algorithms SM9—Part 1:General《GB/T 38635.1-2020 信息安全技术 SM9标识密码算法 第1部分:总则》 10 * Information security technology—Identity-based cryptographic algorithms SM9—Part 2:Algorithms《GB/T 38635.2-2020 信息安全技术 SM9标识密码算法 第2部分:算法》 11 * Information security technology—SM9 cryptographic algorithm application specification《GB/T 41389-2022 信息安全技术 SM9密码算法使用规范》 12 13 您可以从[国家标准全文公开系统](https://openstd.samr.gov.cn/)在线阅读这些标准。 14 15 ## SM9 current performance (for reference only): 16 17 **SM9 Sign/Verify/Enc/Dec Benchmark** 18 19 goos: windows 20 goarch: amd64 21 pkg: github.com/emmansun/gmsm/sm9 22 cpu: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz 23 BenchmarkSign-8 3492 319540 ns/op 19752 B/op 545 allocs/op 24 BenchmarkVerify-8 806 1475192 ns/op 161320 B/op 3894 allocs/op 25 BenchmarkEncrypt-8 3351 357549 ns/op 20971 B/op 551 allocs/op 26 BenchmarkDecrypt-8 1052 1135588 ns/op 142868 B/op 3356 allocs/op 27 BenchmarkDecryptASN1-8 1063 1129712 ns/op 142888 B/op 3358 allocs/op 28 29 30 **SM9 Generate User Sign/Encrypt Private Key Benchmark** 31 32 goos: windows 33 goarch: amd64 34 pkg: github.com/emmansun/gmsm/sm9 35 cpu: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz 36 BenchmarkGenerateSignPrivKey-8 18608 65422 ns/op 944 B/op 14 allocs/op 37 BenchmarkGenerateEncryptPrivKey-8 8486 151201 ns/op 1072 B/op 14 allocs/op 38