Skip to content

Commit

Permalink
updated to new hash API
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemare authored and bytemare committed Feb 17, 2021
1 parent 1327ef8 commit 33639ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opaque.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
type Parameters struct {
OprfCiphersuite voprf.Ciphersuite `json:"s"`
Mode envelope.Mode `json:"m"`
Hash hash.Identifier `json:"h"`
Hash hash.Hashing `json:"h"`
NonceLen int `json:"l"`
}

Expand Down Expand Up @@ -44,7 +44,7 @@ func DeserializeParameters(encoded []byte) (*Parameters, error) {
return &Parameters{
OprfCiphersuite: voprf.Ciphersuite(encoded[0]),
Mode: envelope.Mode(encoded[1]),
Hash: hash.Identifier(encoded[2]),
Hash: hash.Hashing(encoded[2]),
NonceLen: int(encoded[3]),
}, nil
}

0 comments on commit 33639ef

Please sign in to comment.