From 22066f4f7fda40c4cdd5e776ec84a09987e748bb Mon Sep 17 00:00:00 2001 From: Christopher Wood Date: Wed, 12 Apr 2023 11:54:31 -0400 Subject: [PATCH] Update hpke/xkem.go Co-authored-by: Armando Faz --- hpke/xkem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpke/xkem.go b/hpke/xkem.go index 3ed7e6f0..9a811f95 100644 --- a/hpke/xkem.go +++ b/hpke/xkem.go @@ -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 }