From 365904b0f3154c6e11a9cf541c9803d1dca0445a Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Sat, 25 Nov 2017 10:51:59 -0800 Subject: [PATCH] nacl/auth: use KeySize constant consistently. Fixes golang/go#21788 Change-Id: I9310b438ce90cd3bba48295c829d44779c9f09c5 Reviewed-on: https://go-review.googlesource.com/79875 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick Reviewed-by: Kevin Burke --- nacl/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nacl/auth/auth.go b/nacl/auth/auth.go index 0835d3b..ec1d6eb 100644 --- a/nacl/auth/auth.go +++ b/nacl/auth/auth.go @@ -47,7 +47,7 @@ func Sum(m []byte, key *[KeySize]byte) *[Size]byte { // Verify checks that digest is a valid authenticator of message m under the // given secret key. Verify does not leak timing information. -func Verify(digest []byte, m []byte, key *[32]byte) bool { +func Verify(digest []byte, m []byte, key *[KeySize]byte) bool { if len(digest) != Size { return false }