Home GnuPG

Fixed a pkcs#1 v1.5 flaw regarding leading zero bytes
c4bce4aa60e6Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fixed a pkcs#1 v1.5 flaw regarding leading zero bytes

With these changes the entire new pkcs#1 test suite passes fine.

The leading zero bytes used to appear due to mixed signed/unsigned use
of our internal representation of the values as MPIs. The changed code
also detected another bug in the DSA selftest which used the pkcs1
flag - this was certainly wrong but didn't throw an error. The code
in GnuPG does the right thing thus I believe not too many applications
got it as wrong as we in our own selftest.

Details

Provenance
wernerAuthored on Jun 13 2011, 12:33 PM
Parents
rCf796e9877e7e: Add a full set of pkcs#1 v2 test vectors
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCc4bce4aa60e6: Fixed a pkcs#1 v1.5 flaw regarding leading zero bytes (authored by Werner Koch <wk@gnupg.org>).Jun 13 2011, 12:33 PM