]> Cypherpunks repositories - gostls13.git/commit
crypto/{aes,internal/cipherhw,tls}: use common internal/cpu in place of cipherhw
authorAnit Gandhi <anitgandhi@gmail.com>
Wed, 23 May 2018 22:03:08 +0000 (22:03 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 23 May 2018 22:22:09 +0000 (22:22 +0000)
commit3f2039e28dca40d231a789c9693195354aaba3f5
tree87d7cd2da313d4f9445dc4713b27e1f40b84888c
parent482d241936deac1e50a77ab340345449f8579886
crypto/{aes,internal/cipherhw,tls}: use common internal/cpu in place of cipherhw

When the internal/cpu package was introduced, the AES package still used
the custom crypto/internal/cipherhw package for amd64 and s390x. This
change removes that package entirely in favor of directly referencing the
cpu feature flags set and exposed by the internal/cpu package. In
addition, 5 new flags have been added to the internal/cpu s390x struct
for detecting various cipher message (KM) features.

Change-Id: I77cdd8bc1b04ab0e483b21bf1879b5801a4ba5f4
GitHub-Last-Rev: a611e3ecb1f480dcbfce3cb0c8c9e4058f56c1a4
GitHub-Pull-Request: golang/go#24766
Reviewed-on: https://go-review.googlesource.com/105695
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
18 files changed:
src/crypto/aes/aes_gcm.go
src/crypto/aes/asm_s390x.s
src/crypto/aes/cipher_amd64.go
src/crypto/aes/cipher_ppc64le.go
src/crypto/aes/cipher_s390x.go
src/crypto/aes/gcm_amd64.s
src/crypto/aes/gcm_s390x.go
src/crypto/internal/cipherhw/asm_amd64.s [deleted file]
src/crypto/internal/cipherhw/asm_s390x.s [deleted file]
src/crypto/internal/cipherhw/cipherhw_amd64.go [deleted file]
src/crypto/internal/cipherhw/cipherhw_s390x.go [deleted file]
src/crypto/internal/cipherhw/doc.go [deleted file]
src/crypto/internal/cipherhw/generic.go [deleted file]
src/crypto/tls/common.go
src/go/build/deps_test.go
src/internal/cpu/cpu.go
src/internal/cpu/cpu_s390x.go
src/internal/cpu/cpu_s390x.s [new file with mode: 0644]