mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2026-03-20 04:58:56 +00:00
Fix RSA.import_key (fixes #101)
Apparently "import_key" only exists in newer versions (as an alias to "importKey"). "importKey" works in all versions ...
This commit is contained in:
@@ -1669,7 +1669,7 @@ class PDFDocument(object):
|
||||
|
||||
def initialize_ebx_inept(self, password, docid, param):
|
||||
self.is_printable = self.is_modifiable = self.is_extractable = True
|
||||
rsakey = RSA.import_key(password) # parses the ASN1 structure
|
||||
rsakey = RSA.importKey(password) # parses the ASN1 structure
|
||||
length = int_value(param.get('Length', 0)) // 8
|
||||
rights = codecs.decode(param.get('ADEPT_LICENSE'), 'base64')
|
||||
rights = zlib.decompress(rights, -15)
|
||||
|
||||
Reference in New Issue
Block a user