sm3-go

module
v0.0.0-...-079ec6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2019 License: MIT

README

sm3-go

sm3-go implements the SM3 hash algorithms as defined in the 中国国家密码管理局 which export the hash.Hash interface

go test -benchmem -run="^$" github.com/detailyang/sm3-go/sm3 -bench Benchmark
goos: darwin
goarch: amd64
pkg: github.com/detailyang/sm3-go/sm3
BenchmarkHash8Bytes-8   	 1916566	       617 ns/op	  12.96 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash1K-8       	  120079	      9759 ns/op	 104.92 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash8K-8       	   15838	     72582 ns/op	 112.87 MB/s	       0 B/op	       0 allocs/op
PASS
ok  	github.com/detailyang/sm3-go/sm3	5.015s

Directories

Path Synopsis
Package sm3 implements the SM3 hash algorithms as defined in http://www.oscca.gov.cn/sca/xxgk/2010-12/17/1002389/files/302a3ada057c4a73830536d03e683110.pdf.
Package sm3 implements the SM3 hash algorithms as defined in http://www.oscca.gov.cn/sca/xxgk/2010-12/17/1002389/files/302a3ada057c4a73830536d03e683110.pdf.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL