diff --git a/errors.go b/errors.go index 770dc9e..308156e 100644 --- a/errors.go +++ b/errors.go @@ -18,6 +18,6 @@ var ( ErrInvalidPrivKey = errors.New("invalid private key") ErrNotPrivKey = errors.New("not a private key") ErrOpNotSupported = errors.New("key_op not supported by key") - ErrEC2NoPub = errors.New("cannot create PrivateKey from EC2 key: missing x or y") - ErrOKPNoPub = errors.New("cannot create PrivateKey from OKP key: missing x") + ErrEC2NoPub = errors.New("cannot create PublicKey from EC2 key: missing x or y") + ErrOKPNoPub = errors.New("cannot create PublicKey from OKP key: missing x") )