diff --git a/pkg/utils/hash.go b/pkg/utils/hash.go index ce97969..78c007f 100644 --- a/pkg/utils/hash.go +++ b/pkg/utils/hash.go @@ -25,7 +25,7 @@ func GetHashAlgorithm(sigAlgorithm jose.SignatureAlgorithm) (hash.Hash, error) { func HashString(hash hash.Hash, s string, firstHalf bool) string { hash.Write([]byte(s)) // hash documents that Write will never return an error - size = hash.Size() + size := hash.Size() if firstHalf { size = size / 2 }