diff --git a/nacl/auth/auth.go b/nacl/auth/auth.go index ec1d6eb..1d588d5 100644 --- a/nacl/auth/auth.go +++ b/nacl/auth/auth.go @@ -40,7 +40,7 @@ const ( func Sum(m []byte, key *[KeySize]byte) *[Size]byte { mac := hmac.New(sha512.New, key[:]) mac.Write(m) - out := new([KeySize]byte) + out := new([Size]byte) copy(out[:], mac.Sum(nil)[:Size]) return out }