fix: rp verification process

This commit is contained in:
Livio Amstutz 2021-04-26 11:00:42 +02:00
parent a2601f1584
commit 65a58039dc
9 changed files with 148 additions and 47 deletions

View file

@ -24,6 +24,9 @@ func GetHashAlgorithm(sigAlgorithm jose.SignatureAlgorithm) (hash.Hash, error) {
}
func HashString(hash hash.Hash, s string, firstHalf bool) string {
if hash == nil {
return s
}
//nolint:errcheck
hash.Write([]byte(s))
size := hash.Size()