Enabled PKCS#8 for private keys

This commit is contained in:
Spitap
2022-07-31 11:49:58 +02:00
parent f4dff24d68
commit 20d9ca1e1c
2 changed files with 17 additions and 1 deletions
+3
View File
@@ -84,6 +84,9 @@ def asn1_parse(template, data):
elif tag == SEQUENCE:
r.append(asn1_parse(t[1], data[i:i+length]))
i += length
elif tag == OCTET_STRING:
r.append(data[i:i+length])
i += length
else:
raise ASN1FormatError(
"Unexpected tag in template: %02x" % tag)