changed error msg to not be misleading for public key decoding errors

This commit is contained in:
Seung-Woo Choi 2019-06-24 16:25:47 -07:00
parent 5e25c22bd5
commit 29384ebfa4
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import (
)
var (
ErrKeyMustBePEMEncoded = errors.New("Invalid Key: Key must be PEM encoded PKCS1 or PKCS8 private key")
ErrKeyMustBePEMEncoded = errors.New("Invalid Key: Key must be a PEM encoded PKCS1 or PKCS8 key")
ErrNotRSAPrivateKey = errors.New("Key is not a valid RSA private key")
ErrNotRSAPublicKey = errors.New("Key is not a valid RSA public key")
)