]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/crypto/hmac/hmac.go
[dev.boringcrypto] all: merge master into dev.boringcrypto
[gostls13.git] / src / crypto / hmac / hmac.go
index 1f70abbb68d0ab849c2f13d5c6890fdf666b3d77..d9f0bd24ea83893ec4e6eb5efb5c2c2d0703bee7 100644 (file)
@@ -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)