From 29384ebfa4eaf7b353851e57e88309717493258f Mon Sep 17 00:00:00 2001 From: Seung-Woo Choi Date: Mon, 24 Jun 2019 16:25:47 -0700 Subject: [PATCH] changed error msg to not be misleading for public key decoding errors --- rsa_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsa_utils.go b/rsa_utils.go index a5ababf9..14c78c29 100644 --- a/rsa_utils.go +++ b/rsa_utils.go @@ -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") )