]> Cypherpunks repositories - gostls13.git/commit
crypto/hmac: don't test for length equality in Equal.
authorAdam Langley <agl@golang.org>
Wed, 17 Aug 2016 20:18:43 +0000 (13:18 -0700)
committerAdam Langley <agl@golang.org>
Wed, 17 Aug 2016 23:23:28 +0000 (23:23 +0000)
commit69371671c722d3fcc4f2e1c57dd6a40fc4973ebc
tree209a451edc8a73ce6b156ee471d31469d9d98f85
parentb23b9a762c4f876a9f7575fa512074a386e3c6e1
crypto/hmac: don't test for length equality in Equal.

subtle.ConstantTimeCompare now tests the length of the inputs (although
it didn't when this code was written) so this test in crypto/hmac is now
superfluous.

Fixes #16336.

Change-Id: Ic02d8537e776fa1dd5694d3af07a28c4d840d14b
Reviewed-on: https://go-review.googlesource.com/27239
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/hmac/hmac.go