Comments (2)
The crash appears to have happened in the libcrypto library that's supplied with DeDRM. The source is included in the DeDRM_plugin zip, so I suggest you recompile it under Ubuntu 15.10.
I wonder what's changed in Ubuntu 15.10 that's caused the error?
from dedrm_tools.
After trying several things (recompile DeDRM, install Calibre from source etc.) I found that in fact it was the key, which I have used at least for two years without problems. After extracting it once more from Adobe Digital editions using the latest DeDRM tools, everything works fine again.
To prevent calibre from crashing with corrupted keys maybe you could add an additional key check in ineptepub.py like so:
class RSA(object):
def __init__(self, der):
buf = create_string_buffer(der)
pp = c_char_pp(cast(buf, c_char_p))
rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der))
if rsa is None:
raise ADEPTError('Error parsing ADEPT user key DER')
# check if pointer is not NULL
try:
c = self._rsa.contents
except ValueError:
raise ADEPTError('Error parsing ADEPT user key DER')
def decrypt(self, from_):
Edit:
... or simpler:
class RSA(object):
def __init__(self, der):
buf = create_string_buffer(der)
pp = c_char_pp(cast(buf, c_char_p))
rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der))
if not rsa:
raise ADEPTError('Error parsing ADEPT user key DER')
def decrypt(self, from_):
from dedrm_tools.
Related Issues (20)
- Calibre 6.29 & DeDRM 10.0.9 fails on .azw3 HOT 1
- Can't remove DRM HOT 9
- v7.2.1 — Full Release HOT 2
- Error: argument should be integer or bytes-like object, not 'str' HOT 3
- Failed removal DRM PRC HOT 6
- calibre.ebooks.ConversionError: pdftohtml failed with return code: 1 HOT 1
- install returns print ( ) error HOT 2
- A question about the constant IV HOT 2
- [QUESTION] Blacklisting the DeDRM plugin as it is too old and causes crashes HOT 1
- Can't sign in to Nook for PC HOT 3
- DeDRM Project HOT 1
- drm issue for kindle HOT 5
- Install problem (MacOS, M1 arm) HOT 1
- Install problem (MacOS, M1 arm) HOT 1
- [QUESTION] Getting ERROR: not valid for use in process: mapped file has no cdhash HOT 1
- DeDrm is not working HOT 1
- Kindle Android - book unavailable in this version of the application HOT 3
- Using Calibre 6.11.0 under Big Sur on mac and DRM plugin 6.8.1 plugin HOT 1
- DRM is not working HOT 12
- DRM book issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dedrm_tools.