[Cryptography-dev] compatibility between python cryptography and openssl for DSA signature

2025-03-11 Thread Bruno Martin
Hello, I'd like to show the interoperability between openssl 3.4.1 and Python 3.13/cryptography 44.0.1 library (which generally works). I signed with DSA a short message using Python/Cryptography with: message (in French): Je tente de signer un message un peu plus gros que le precedent def si

Re: [Cryptography-dev] compatibility between python cryptography and openssl for DSA signature

2025-03-11 Thread Alex Gaynor via Cryptography-dev
Unfortunately I'm unable to reproduce. The signature you provided verifies fine with that private key. /tmp ❯❯❯ openssl dgst -verify dsa.key -signature test.sig test.txt Verified OK /tmp ❯❯❯ cat dsa.key -BEGIN PUBLIC KEY- MIIBtjCCASsGByqGSM44BAEwggEeAoGBAJeeE6sU5RBpDfNHj9J9abda8TYkBZNB tnW