crypto: avoid escaping Hash.Sum on generic architectures

This commit is contained in:
Emman 2021-10-08 13:57:14 +08:00
parent 4c25579429
commit 4a7e41b380
10 changed files with 14 additions and 4 deletions

View File

@ -4,6 +4,7 @@ go:
- "1.14.x"
- "1.15.x"
- "1.16.x"
- "1.17.x"
sudo: false

4
go.mod
View File

@ -3,6 +3,6 @@ module github.com/emmansun/gmsm
go 1.14
require (
golang.org/x/crypto v0.0.0-20210915214749-c084706c2272
golang.org/x/sys v0.0.0-20210917161153-d61c044b1678
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac
)

View File

@ -1,3 +1,4 @@
//go:build !amd64
// +build !amd64
package sm2

View File

@ -7,7 +7,7 @@
// 256-bit primes"
// https://link.springer.com/article/10.1007%2Fs13389-014-0090-x
// https://eprint.iacr.org/2013/816.pdf
//go:build amd64
// +build amd64
package sm2

View File

@ -1,3 +1,4 @@
//go:build amd64
// +build amd64
package sm2

View File

@ -1,3 +1,4 @@
//go:build !amd64
// +build !amd64
package sm2

View File

@ -1,5 +1,8 @@
//go:build !amd64
// +build !amd64
package sm3
var block = blockGeneric
func block(dig *digest, p []byte) {
blockGeneric(dig, p)
}

View File

@ -1,3 +1,4 @@
//go:build amd64
// +build amd64
package sm4

View File

@ -1,3 +1,4 @@
//go:build !amd64
// +build !amd64
package sm4

View File

@ -1,3 +1,4 @@
//go:build amd64
// +build amd64
package sm4