summaryrefslogtreecommitdiff
path: root/lib/Crypto/SelfTest
diff options
context:
space:
mode:
authorLegrandin <helderijs@gmail.com>2013-02-15 09:21:22 +0100
committerDwayne Litzenberger <dlitz@dlitz.net>2013-07-14 23:07:48 -0700
commit546c192d61ad3494433281432c0274ef6d638466 (patch)
tree327a71e16fc73d3d4e8b3b190ee7cfbc297b03b9 /lib/Crypto/SelfTest
parentd7cc92168a1cb0cac0f3e13a6160497c5770767e (diff)
downloadpycrypto-546c192d61ad3494433281432c0274ef6d638466.tar.gz
Bugfix #1119552: PKCS#1v1.5 has to accept signatures without NULL parameters
The digest AlgorithmIdentifier has optional (NULL) parameters; the verification function should not reject a signature if they are omitted. With this fix, either case is acceptable (parameters present with value NULL or not present). As an exception, signatures based on old MD2/MD5 must always have NULL parameters. See Appendix B.1 of RFC 3447 and Section 2.1 of RFC 4055. Closes: https://bugs.launchpad.net/pycrypto/+bug/1119552 [dlitz: Rebased and updated to use refactored asn1 API, text OIDs, & to fix Python 2.1.]
Diffstat (limited to 'lib/Crypto/SelfTest')
0 files changed, 0 insertions, 0 deletions