fix: typo

This commit is contained in:
Livio Amstutz 2020-02-28 18:09:57 +01:00
parent d7befc087d
commit df432c8806

View file

@ -25,7 +25,7 @@ func GetHashAlgorithm(sigAlgorithm jose.SignatureAlgorithm) (hash.Hash, error) {
func HashString(hash hash.Hash, s string, firstHalf bool) string { func HashString(hash hash.Hash, s string, firstHalf bool) string {
hash.Write([]byte(s)) // hash documents that Write will never return an error hash.Write([]byte(s)) // hash documents that Write will never return an error
size = hash.Size() size := hash.Size()
if firstHalf { if firstHalf {
size = size / 2 size = size / 2
} }