From e9462554a97dc695522872882a0d3dc5abc01985 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sun, 11 Aug 2019 12:38:27 +0300 Subject: [PATCH] hmac: re-vendor --- internal/hmac/hmac.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/hmac/hmac.go b/internal/hmac/hmac.go index c8c0617..801ece6 100644 --- a/internal/hmac/hmac.go +++ b/internal/hmac/hmac.go @@ -11,8 +11,8 @@ The receiver verifies the hash by recomputing it using the same key. Receivers should be careful to use Equal to compare MACs in order to avoid timing side-channels: - // CheckMAC reports whether messageMAC is a valid HMAC tag for message. - func CheckMAC(message, messageMAC, key []byte) bool { + // ValidMAC reports whether messageMAC is a valid HMAC tag for message. + func ValidMAC(message, messageMAC, key []byte) bool { mac := hmac.New(sha256.New, key) mac.Write(message) expectedMAC := mac.Sum(nil)