1
0
mirror of https://github.com/golang/go synced 2024-11-19 11:34:49 -07:00
go/src/crypto/sha1
Michael Munday 7ba0c6235f crypto, internal/cpu: fix s390x AES feature detection and update SHA implementations
Hardware AES support in Go on s390x currently requires ECB, CBC
and CTR modes be available. It also requires that either the
GHASH or GCM facilities are available. The existing checks missed
some of these constraints.

While we're here simplify the cpu package on s390x, moving masking
code out of assembly and into Go code. Also, update SHA-{1,256,512}
implementations to use the cpu package since that is now trivial.

Finally I also added a test for internal/cpu on s390x which loads
/proc/cpuinfo and checks it against the flags set by internal/cpu.

Updates #25822 for changes to vet whitelist.

Change-Id: Iac4183f571643209e027f730989c60a811c928eb
Reviewed-on: https://go-review.googlesource.com/114397
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-06-11 11:41:31 +00:00
..
example_test.go
fallback_test.go
issue15617_test.go
sha1_test.go hash: add MarshalBinary/UnmarshalBinary round trip + golden test for all implementations 2017-12-06 07:45:46 +00:00
sha1.go crypto: make receiver name consistent 2018-04-23 18:18:01 +00:00
sha1block_386.s
sha1block_amd64.go internal/cpu: new package to detect cpu features 2017-05-10 17:02:21 +00:00
sha1block_amd64.s crypto: fix typos in the comments 2018-05-28 17:09:11 +00:00
sha1block_amd64p32.s
sha1block_arm64.go crypto/sha1, crypto/sha256: add go:noescape annotations 2017-11-15 16:00:24 +00:00
sha1block_arm64.s cmd/internal/obj/arm64: reorder the assembler's optab entries 2018-04-28 18:10:25 +00:00
sha1block_arm.s
sha1block_decl.go
sha1block_generic.go crypto/sha1: optimize arm64 sha1 implemention 2017-11-14 18:17:59 +00:00
sha1block_s390x.go crypto, internal/cpu: fix s390x AES feature detection and update SHA implementations 2018-06-11 11:41:31 +00:00
sha1block_s390x.s crypto, internal/cpu: fix s390x AES feature detection and update SHA implementations 2018-06-11 11:41:31 +00:00
sha1block.go