+41
−5
+21
−1
Loading
The ClientHello never offered ecdsa_secp384r1_sha384 (0x0503), and even if
a server picked it anyway the client's CertificateVerify check was
hardcoded to a P-256 point (tls::verify_ecdsa_sha256) -- a P-384 leaf
certificate's TLS 1.3 handshake had no way to succeed. Adds
tls::verify_ecdsa_sha384, delegating to the curve-generic
netplus::ecdsa_verify_digest that x509cert::verifySignedBy already uses
for P-384 chain signatures, instead of duplicating P-384 point arithmetic.
sigAlg is now pinned to the leaf key's actual curve (0x0403 only for
P-256, 0x0503 only for P-384) before 0x0503 is added to the ClientHello.
TLS 1.2's ServerKeyExchange path already dispatches through the same
curve-generic verifier and needed no change.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>