Skip to content

Commit

Permalink
Add missing crypto.Hash type
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Apr 20, 2020
1 parent 98519d3 commit bc018c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func DecodePublicKeyHex(sigAlgo SignatureAlgorithm, s string) (PublicKey, error)
}

type Hasher = hash.Hasher
type Hash = hash.Hash

func NewHasher(algo HashAlgorithm) (Hasher, error) {
switch algo {
Expand Down

0 comments on commit bc018c7

Please sign in to comment.