Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Commit

Permalink
hmac: add resetTo to TestHMAC
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jul 12, 2018
1 parent 325508a commit 7797799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/hmac/hmac_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ var hmacTests = []hmacTest{
func TestHMAC(t *testing.T) {
for i, tt := range hmacTests {
h := New(tt.hash, tt.key)
h.(*hmac).resetTo(tt.key)
if s := h.Size(); s != tt.size {
t.Errorf("Size: got %v, want %v", s, tt.size)
}
Expand Down

0 comments on commit 7797799

Please sign in to comment.