From de8110018196807069f2d5c61af2d15ee9d9e4b6 Mon Sep 17 00:00:00 2001 From: Emmet Jang Date: Mon, 10 Oct 2022 16:45:16 +0800 Subject: [PATCH] refactor: fix error message typo (#120) --- core/auth/verifiers/sha256withrsa_verifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/auth/verifiers/sha256withrsa_verifier.go b/core/auth/verifiers/sha256withrsa_verifier.go index b7b33cd..db473a5 100644 --- a/core/auth/verifiers/sha256withrsa_verifier.go +++ b/core/auth/verifiers/sha256withrsa_verifier.go @@ -41,7 +41,7 @@ func (verifier *SHA256WithRSAVerifier) Verify(ctx context.Context, serialNumber, hashed := sha256.Sum256([]byte(message)) err = rsa.VerifyPKCS1v15(certificate.PublicKey.(*rsa.PublicKey), crypto.SHA256, hashed[:], sigBytes) if err != nil { - return fmt.Errorf("verifty signature with public key err:%s", err.Error()) + return fmt.Errorf("verify signature with public key err:%s", err.Error()) } return nil }