Skip to content

Commit

Permalink
Update hpke/xkem.go
Browse files Browse the repository at this point in the history
Co-authored-by: Armando Faz <armfazh@users.noreply.github.com>
  • Loading branch information
chris-wood and armfazh committed Apr 12, 2023
1 parent 00e69ab commit 22066f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpke/xkem.go
Expand Up @@ -87,7 +87,7 @@ func (x xKEM) UnmarshalBinaryPrivateKey(data []byte) (kem.PrivateKey, error) {
sk := &xKEMPrivKey{x, make([]byte, l), nil}
copy(sk.priv, data[:l])
if !sk.validate() {
return nil, ErrInvalidKEMPublicKey
return nil, ErrInvalidKEMPrivateKey
}
return sk, nil
}
Expand Down

0 comments on commit 22066f4

Please sign in to comment.