Merge branch 'main' of https://github.com/emmansun/gmsm into main

This commit is contained in:
Emman 2021-03-23 11:31:27 +08:00
commit 97898da5e0

View File

@ -3,7 +3,7 @@
[![Build Status](https://travis-ci.org/emmansun/gmsm.svg?branch=main)](https://travis-ci.org/emmansun/gmsm) [![Documentation](https://godoc.org/github.com/emmansun/gmsm?status.svg)](https://godoc.org/github.com/emmansun/gmsm) [![Release](https://img.shields.io/github/release/emmansun/gmsm/all.svg)](https://github.com/emmansun/gmsm/releases) [![Build Status](https://travis-ci.org/emmansun/gmsm.svg?branch=main)](https://travis-ci.org/emmansun/gmsm) [![Documentation](https://godoc.org/github.com/emmansun/gmsm?status.svg)](https://godoc.org/github.com/emmansun/gmsm) [![Release](https://img.shields.io/github/release/emmansun/gmsm/all.svg)](https://github.com/emmansun/gmsm/releases)
This is a **SM2 sm2p256v1** implementation whose performance is similar like golang native NIST P256 under **amd64**, for implementation detail, please refer https://github.com/emmansun/gmsm/wiki. This is a **SM2 sm2p256v1** implementation whose performance is similar like golang native NIST P256 under **amd64**, for implementation detail, please refer [SM2实现细节](https://github.com/emmansun/gmsm/wiki/SM2%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96).
This is also a **SM3** implementation whose performance is similar like golang native SHA 256 under **amd64**, for implementation detail, please refer [SM3性能优化](https://github.com/emmansun/gmsm/wiki/SM3%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96). This is also a **SM3** implementation whose performance is similar like golang native SHA 256 under **amd64**, for implementation detail, please refer [SM3性能优化](https://github.com/emmansun/gmsm/wiki/SM3%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96).
@ -96,6 +96,6 @@ For **SM4** implementation, AES-NI is used under **amd64**, for detail please re
pkg: github.com/emmansun/gmsm/sm4 pkg: github.com/emmansun/gmsm/sm4
BenchmarkEncrypt-6 5881989 206 ns/op 77.75 MB/s 0 B/op 0 allocs/op BenchmarkEncrypt-6 5881989 206 ns/op 77.75 MB/s 0 B/op 0 allocs/op
BenchmarkDecrypt-6 5853994 204 ns/op 78.45 MB/s 0 B/op 0 allocs/op BenchmarkDecrypt-6 5853994 204 ns/op 78.45 MB/s 0 B/op 0 allocs/op
BenchmarkExpand-6 2583012 469 ns/op 16 B/op 1 allocs/op BenchmarkExpand-6 5985129 200 ns/op 0 B/op 0 allocs/op
PASS PASS
ok github.com/emmansun/gmsm/sm4 6.193s ok github.com/emmansun/gmsm/sm4 6.193s