fix: rp verification process
This commit is contained in:
parent
a2601f1584
commit
65a58039dc
9 changed files with 148 additions and 47 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue