]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.boringcrypto] crypto/internal/boring: make SHA calls allocation-free
authorRuss Cox <rsc@golang.org>
Wed, 27 Apr 2022 13:02:53 +0000 (09:02 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 29 Apr 2022 14:23:27 +0000 (14:23 +0000)
commit0ec08283c8e3a673d9916c186f8d2f5428846862
tree8763286823f38bed61ef2f1346d64482652b6d84
parent3cb10d14b7671ceee374d90ae0d4c3d024838f8a
[dev.boringcrypto] crypto/internal/boring: make SHA calls allocation-free

The standard Go implementations are allocation-free.
Making the BoringCrypto ones the same helps avoid
surprises, including in some of our own tests.

For #51940.

Change-Id: Ic9c5dc46f5e29ca85f571244be2b380ec2cf89c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/395876
Reviewed-by: Roland Shoemaker <roland@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
13 files changed:
src/crypto/ed25519/ed25519_test.go
src/crypto/ed25519/internal/edwards25519/edwards25519_test.go
src/crypto/internal/boring/boring.go
src/crypto/internal/boring/notboring.go
src/crypto/internal/boring/sha.go
src/crypto/sha1/boring.go
src/crypto/sha1/notboring.go
src/crypto/sha1/sha1.go
src/crypto/sha1/sha1_test.go
src/crypto/sha256/sha256.go
src/crypto/sha256/sha256_test.go
src/crypto/sha512/sha512.go
src/crypto/sha512/sha512_test.go