Skip to content

Commit

Permalink
changed error msg to not be misleading for public key decoding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Seung-Woo Choi committed Jun 24, 2019
1 parent 5e25c22 commit 29384eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsa_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
Expand Down

0 comments on commit 29384eb

Please sign in to comment.