From 3ad037e10a6043897a2bcda98cf00ba6e9042b00 Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky <2685025+getvictor@users.noreply.github.com> Date: Sun, 13 Jul 2025 12:19:05 +0200 Subject: [PATCH] Fix incorrect algorithm name in error message. The error message references the wrong algorithm name (P256 instead of P384). --- verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify.go b/verify.go index a38ee14..7015ee7 100644 --- a/verify.go +++ b/verify.go @@ -393,7 +393,7 @@ func (ver *Verifier) verifySignature(r httpMessage, sig extractedSignature, base case Algo_ECDSA_P384_SHA384: if epub, ok := ks.PubKey.(*ecdsa.PublicKey); ok { if len(sig.Signature) != 96 { - return specer, newError(ErrSigInvalidSignature, fmt.Sprintf("Signature must be 96 bytes for algorithm '%s'", Algo_ECDSA_P256_SHA256)) + return specer, newError(ErrSigInvalidSignature, fmt.Sprintf("Signature must be 96 bytes for algorithm '%s'", Algo_ECDSA_P384_SHA384)) } msgHash := sha512.Sum384(base.base) // Concatenate r and s to form the signature as per the spec. r and s and *not* ANS1 encoded.