Skip to content

Commit

Permalink
keydata.go: implement HashFunc in HashAlg
Browse files Browse the repository at this point in the history
  • Loading branch information
sespiros committed Mar 14, 2024
1 parent c7332f3 commit c136e41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keydata.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ func (a HashAlg) New() hash.Hash {
return crypto.Hash(a).New()
}

func (a HashAlg) HashFunc() crypto.Hash {
return crypto.Hash(a)
}

func (a HashAlg) Size() int {
return crypto.Hash(a).Size()
}
Expand Down

0 comments on commit c136e41

Please sign in to comment.