aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha1/boring.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-04-27 09:02:53 -0400
committerRuss Cox <rsc@golang.org>2022-04-29 14:23:26 +0000
commit3cb10d14b7671ceee374d90ae0d4c3d024838f8a (patch)
tree13ff63b42da344a776ca02a08085316d42f9a3ba /src/crypto/sha1/boring.go
parent509776be5dca8d7ca47cc6ef2e4fc452eb99dc96 (diff)
downloadgo-3cb10d14b7671ceee374d90ae0d4c3d024838f8a.tar.gz
go-3cb10d14b7671ceee374d90ae0d4c3d024838f8a.zip
[dev.boringcrypto] crypto/internal/boring: avoid allocation in big.Int conversion
The conversion via byte slices is inefficient; we can convert via word slices and avoid the copy entirely. For #51940. Change-Id: I06f747e0acffffae427d9706d43bdacf146c027d Reviewed-on: https://go-review.googlesource.com/c/go/+/395875 Reviewed-by: Roland Shoemaker <roland@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/crypto/sha1/boring.go')
0 files changed, 0 insertions, 0 deletions