From 2b14e7c8bd3bd41d00f43501d80d5079da563e3c Mon Sep 17 00:00:00 2001 From: Artem Skriabin Date: Tue, 25 Jun 2024 13:32:33 +0300 Subject: [PATCH] Fix typo --- internal/service/api/handlers/create_identity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/api/handlers/create_identity.go b/internal/service/api/handlers/create_identity.go index 406a60e..1e7f5fb 100644 --- a/internal/service/api/handlers/create_identity.go +++ b/internal/service/api/handlers/create_identity.go @@ -442,7 +442,7 @@ func verifySignature(req requests.CreateIdentityRequest, cert *x509.Certificate, d := h.Sum(nil) if err := rsa.VerifyPKCS1v15(pubKey, crypto.SHA1, d, signature); err != nil { - return errors.Wrap(err, "failed to verify SHA256 with RSA signature") + return errors.Wrap(err, "failed to verify SHA1 with RSA signature") } case SHA256withRSA: pubKey := cert.PublicKey.(*rsa.PublicKey)