]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/boring: update to newer boringcrypto, add arm64
authorRuss Cox <rsc@golang.org>
Tue, 16 Aug 2022 14:38:02 +0000 (10:38 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 18 Aug 2022 21:28:09 +0000 (21:28 +0000)
commit39ec97da15e9167e7a17746c643f264baae6ce7b
tree134ee10ddaefd64502efa36d080e747ccc3ccddf
parent5fcddf3997a89c1f82935cf65d919b7ef03df2c5
crypto/internal/boring: update to newer boringcrypto, add arm64

Update the version of BoringCrypto to boringssl tag
fips-20210429, for which FIPS approval is "in process".

Add GOARCH=arm64 BoringCrypto support.

Shuffle build to run as distinct steps in Docker so that
we can rerun later parts like build-goboring.sh without
rerunning all the setup.

Strip unnecessary parts of the syso using --strip-unneeded,
which cuts the amd64 syso from 10MB to 2.5MB.
The new arm64 syso is 2MB, so even though we added a new
architecture, we have half as much syso to distribute.

Change-Id: I0f7327389a3a485b82577abea9153d006418298f
Reviewed-on: https://go-review.googlesource.com/c/go/+/423362
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
18 files changed:
src/crypto/boring/boring_test.go
src/crypto/internal/boring/Dockerfile
src/crypto/internal/boring/README.md [new file with mode: 0644]
src/crypto/internal/boring/aes.go
src/crypto/internal/boring/boring.go
src/crypto/internal/boring/build-boring.sh [new file with mode: 0755]
src/crypto/internal/boring/build-goboring.sh [new file with mode: 0755]
src/crypto/internal/boring/build.sh
src/crypto/internal/boring/div_test.c [new file with mode: 0644]
src/crypto/internal/boring/ecdsa.go
src/crypto/internal/boring/goboringcrypto.h
src/crypto/internal/boring/hmac.go
src/crypto/internal/boring/notboring.go
src/crypto/internal/boring/rand.go
src/crypto/internal/boring/rsa.go
src/crypto/internal/boring/sha.go
src/crypto/internal/boring/syso/goboringcrypto_linux_amd64.syso
src/crypto/internal/boring/syso/goboringcrypto_linux_arm64.syso [new file with mode: 0644]