<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Hack;">Hello</span></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I would like to propose extending the ECDSA digest-length exceptions in sm/certcheck.c, following commit 35549cea95638d87e1c6f2b25fe1ce6395d52d58, which addressed T8306 for P-521 with SHA-384.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">The attached patch adds two combinations:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> - P-384 with SHA-256</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> - P-521 with SHA-256</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">It also explicitly limits these exceptions to GCRY_PK_ECC, preserving the existing DSA checks.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">For these combinations, do_encode_md() currently calls log_error() but continues to signature verification. This can produce an error even when the cryptographic verification succeeds, as described in T8306.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">This work originated while enabling S/MIME signing with the Polish national e-ID card ("e-dowód"), using the PWPW PKCS#11 module and patched gnupg-pkcs11-scd and pkcs11-helper. The complete setup successfully signs S/MIME messages with our earlier, broader certcheck.c fix.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">That successful integration test should not be taken as separate confirmation of both combinations added by this narrower patch.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">For reference, I initially submitted the change to the GitHub mirror: </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">https://github.com/gpg/gnupg/pull/29</p>
<br /><p style="margin-top:0;margin-bottom:12;margin-left:0;margin-right:0;">Best regards,</p>
<p style="margin-top:0;margin-bottom:12;margin-left:0;margin-right:0;">Szymon Dowkontt</p>
</body>
</html>