mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-11 03:26:17 +08:00
Updated Armv8.2 SM3和SM4 (markdown)
parent
34db8ab575
commit
b90163f688
@ -26,6 +26,18 @@ AESE指令相当于:
|
|||||||
1. ShiftRows(State)
|
1. ShiftRows(State)
|
||||||
1. SubBytes(State)
|
1. SubBytes(State)
|
||||||
|
|
||||||
|
go test -v -short -bench . -run=^$ ./...
|
||||||
|
goos: linux
|
||||||
|
goarch: arm64
|
||||||
|
pkg: github.com/emmansun/gmsm/sm4
|
||||||
|
BenchmarkEncrypt
|
||||||
|
BenchmarkEncrypt-2 1738942 690.0 ns/op 23.19 MB/s
|
||||||
|
BenchmarkDecrypt
|
||||||
|
BenchmarkDecrypt-2 1738872 690.3 ns/op 23.18 MB/s
|
||||||
|
BenchmarkExpand
|
||||||
|
BenchmarkExpand-2 2059227 582.7 ns/op
|
||||||
|
PASS
|
||||||
|
ok github.com/emmansun/gmsm/sm4 5.595s
|
||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
SM3和SM4 CPU指令实现,找不到相关CPU环境,mark先。
|
SM3和SM4 CPU指令实现,找不到相关CPU环境,mark先。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user