diff options
-rw-r--r-- | identifier.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/identifier.go b/identifier.go index a291f99..4b15f0f 100644 --- a/identifier.go +++ b/identifier.go @@ -30,16 +30,10 @@ func makeIdentifierMAC(request *http.Request) (identifier []byte, mac []byte) { h.Write(stringToBytes(request.Header.Get("Accept-Language"))) h.Write(privkeyHash) identifier = h.Sum(identifier) - if len(identifier) != sha256.Size { - panic("unexpected buffer length after hashing contents") - } m := hmac.New(sha256.New, privkey) m.Write(identifier) mac = m.Sum(mac) - if len(mac) != sha256.Size { - panic("unexpected buffer length after hmac") - } return } |