Home GnuPG

Fixed pkcs#1 unpadding
f4c2c63b4aebUnpublished

Unpublished Commit · Learn More

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

Description

Fixed pkcs#1 unpadding

Depending on the size of the used key the old code was not able to
cope with the missing leading zero byte of a pkcs#1 frame. This is
due to the fact that we use MPIs for conveying the data and our MPIs
usually strip leading zero bytes. The changed code should now behave
identical to the code used by GnuPG.

Also added a few more comments.

Details

Provenance
wernerAuthored on May 30 2011, 4:22 PM
Parents
rC37d5a1cec118: Fix double-free when un-padding invalid data.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCf4c2c63b4aeb: Fixed pkcs#1 unpadding (authored by Werner Koch <wk@gnupg.org>).May 30 2011, 4:22 PM