mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
MAGIC - add benchmark test result
This commit is contained in:
parent
afb0962761
commit
9d130b0a28
@ -8,6 +8,14 @@
|
||||
PASS
|
||||
ok gmsm/sm2 5.629s
|
||||
|
||||
P-256/SM2(with P256/SM2 curve implementation, first version)
|
||||
goos: windows
|
||||
goarch: amd64
|
||||
pkg: gmsm/sm2
|
||||
BenchmarkLessThan32_P256SM2-6 1027 1169516 ns/op 3874 B/op 74 allocs/op
|
||||
PASS
|
||||
ok gmsm/sm2 1.564s
|
||||
|
||||
P-256
|
||||
goos: windows
|
||||
goarch: amd64
|
||||
|
24
sm2/p256.go
24
sm2/p256.go
@ -547,18 +547,18 @@ func p256ReduceDegree(out *[p256Limbs]uint32, tmp [17]uint64) {
|
||||
//
|
||||
// Word: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
||||
// 29 28 29 29 29 29 29 28 28 28 28 28 28 28 28 28
|
||||
// 28 29 28 29 28 29 28 29 28 29 28 29 28 29
|
||||
// 29 28 28 28 29 28 29 28 29 28 29 28 29
|
||||
// 29 28 29 28 29 29 29 29 29 29 29 29 29
|
||||
// 28 29 29 29 28 29 28 29 28 29 28
|
||||
// 28 29 28 29 28 29 28 29 28 29
|
||||
// 29 28 29 28 29 28 29 28 29
|
||||
// 29 28 28 29 29 29 29 29 29
|
||||
// 28 29 28 28 28 28 28
|
||||
// 28 29 28 29 28 29
|
||||
// 29 28 29 28 29
|
||||
// 29 28 29 28 29
|
||||
// 29 28 29
|
||||
// 28 29 28 29 28 29 28 29 28 29 28 29 28 29
|
||||
// 29 28 28 28 29 28 29 28 29 28 29 28 29
|
||||
// 29 28 29 28 29 29 29 29 29 29 29 29 29
|
||||
// 28 29 29 29 28 29 28 29 28 29 28
|
||||
// 28 29 28 29 28 29 28 29 28 29
|
||||
// 29 28 29 28 29 28 29 28 29
|
||||
// 29 28 28 29 29 29 29 29 29
|
||||
// 28 29 28 28 28 28 28
|
||||
// 28 29 28 29 28 29
|
||||
// 29 28 29 28 29
|
||||
// 29 28 29 28 29
|
||||
// 29 28 29
|
||||
// 29
|
||||
// -------------------------------------------------
|
||||
// according the table, from tmp2[6] to tmp[14], consider their initial value,
|
||||
|
Loading…
x
Reference in New Issue
Block a user