python-2.6.6 has upper case hash.name (2.6.5 has lower case).
This commit is contained in:
+1
-1
@@ -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()),
|
||||||
|
|||||||
Reference in New Issue
Block a user