Skip to content

Commit

Permalink
refactor: fix error message typo (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmetZC authored Oct 10, 2022
1 parent cfa33b7 commit de81100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/auth/verifiers/sha256withrsa_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit de81100

Please sign in to comment.