1
0
mirror of https://github.com/golang/go synced 2024-10-02 18:18:33 -06:00

crypto/sha1, crypto/sha256: add go:noescape annotations

Additions to:
https://go-review.googlesource.com/c/go/+/61570
https://go-review.googlesource.com/c/go/+/61550

Change-Id: Id89e1119333a8721cb9720a04a01dab1f2705fa9
Reviewed-on: https://go-review.googlesource.com/77591
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Brad Fitzpatrick 2017-11-14 19:22:43 +00:00
parent f71cbc8a96
commit 0ffe90b501
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ var k = []uint32{
var hasSHA1 = cpu.ARM64.HasSHA1
//go:noescape
func sha1block(h []uint32, p []byte, k []uint32)
func block(dig *digest, p []byte) {

View File

@ -10,6 +10,7 @@ var k = _K
var hasSHA2 = cpu.ARM64.HasSHA2
//go:noescape
func sha256block(h []uint32, p []byte, k []uint32)
func block(dig *digest, p []byte) {