]> Cypherpunks repositories - gostls13.git/commit
crypto/hmac: add Equal function.
authorAdam Langley <agl@golang.org>
Thu, 11 Oct 2012 19:28:02 +0000 (15:28 -0400)
committerAdam Langley <agl@golang.org>
Thu, 11 Oct 2012 19:28:02 +0000 (15:28 -0400)
commit6720997f9e2a4371a5f2fc79b356e1610160139d
tree817537435354d571cc459718f87fc4a712a6ac2d
parent4c473c02e13f2429c7776cc6585af420cd248502
crypto/hmac: add Equal function.

It was suggested that it's too easy to use crypto/hmac insecurely and
I think that has some merit. This change adds a Equal function to
make it obvious that MAC values should be compared in constant time.

R=rsc, max
CC=golang-dev
https://golang.org/cl/6632044
src/pkg/crypto/hmac/hmac.go
src/pkg/crypto/hmac/hmac_test.go
src/pkg/go/build/deps_test.go