python-2.6.6 has upper case hash.name (2.6.5 has lower case).

This commit is contained in:
Stuart D. Gathman
2011-06-14 18:18:22 -04:00
parent 942a2e3e9d
commit 4317168f89
+1 -1
View File
@@ -170,7 +170,7 @@ def EMSA_PKCS1_v1_5_encode(hash, mlen):
dinfo = asn1_build( dinfo = asn1_build(
(SEQUENCE, [ (SEQUENCE, [
(SEQUENCE, [ (SEQUENCE, [
(OBJECT_IDENTIFIER, HASH_ID_MAP[hash.name]), (OBJECT_IDENTIFIER, HASH_ID_MAP[hash.name.lower()]),
(NULL, None), (NULL, None),
]), ]),
(OCTET_STRING, hash.digest()), (OCTET_STRING, hash.digest()),