Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
artemskriabin committed Jun 25, 2024
1 parent 7bdf67d commit 2b14e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2b14e7c

Please sign in to comment.