]> Cypherpunks repositories - gostls13.git/commit
crypto: use encoding append functions
authorErik Pellizzon <erikpellizzon1@gmail.com>
Mon, 19 Sep 2022 08:30:01 +0000 (08:30 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 20 Sep 2022 02:58:09 +0000 (02:58 +0000)
commit1eeb257b88e59f2f3ce3cbe0eb80a9f049765853
treefe0ac1c2e60a05c2f65f92c5ebeec017eed874e5
parentf8c659b62ff43e8455ebc675e577b9adc67b3f9f
crypto: use encoding append functions

Replace custom append functions in the hash functions with the implementation of the encoding/binary package that do the same thing.
The binary bigendian functions are already used in other parts of the code in the crypto package.

Change-Id: I76d2dbe143fc72a3b4ac06be312caf72bd71378a
GitHub-Last-Rev: 1c6c68279efbe2c5835d82db900f607c7bf36836
GitHub-Pull-Request: golang/go#55085
Reviewed-on: https://go-review.googlesource.com/c/go/+/431035
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/crypto/md5/md5.go
src/crypto/sha1/sha1.go
src/crypto/sha256/sha256.go
src/crypto/sha512/sha512.go