aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha1/sha1.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/sha1/sha1.go')
-rw-r--r--src/crypto/sha1/sha1.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/crypto/sha1/sha1.go b/src/crypto/sha1/sha1.go
index 329435f282..271852d21b 100644
--- a/src/crypto/sha1/sha1.go
+++ b/src/crypto/sha1/sha1.go
@@ -265,11 +265,7 @@ func (d *digest) constSum() [Size]byte {
// Sum returns the SHA-1 checksum of the data.
func Sum(data []byte) [Size]byte {
if boringEnabled {
- h := New()
- h.Write(data)
- var ret [Size]byte
- h.Sum(ret[:0])
- return ret
+ return boringSHA1(data)
}
var d digest
d.Reset()