fix: typo
This commit is contained in:
parent
d7befc087d
commit
df432c8806
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue