Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ciphertext with incorrect length #2

Open
jaum20 opened this issue Sep 20, 2022 · 0 comments
Open

Ciphertext with incorrect length #2

jaum20 opened this issue Sep 20, 2022 · 0 comments

Comments

@jaum20
Copy link

jaum20 commented Sep 20, 2022

I get this error witch certain PSSH. Example:

License URL: https://lic.drmtoday.com/license-proxy-widevine/cenc/

Input MPD URL: https://dash.hoopladigital.com/via_hdnfy207a/Manifest.mpd

Generating PSSH:.....

PSSH: AAAAVHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADQIARIQmrqeB0TpzjSbHIDSSLtrehoIY2FzdGxhYnMiEJq6ngdE6c40mxyA0ki7a3oqAlNE
/home/removed/Downloads/wks-keys_v3/pywidevine/L3/cdm/cdm.py:260: RuntimeWarning: Unexpected end-group tag: Not all data was converted
  license.ParseFromString(base64.b64decode(license_b64))
Traceback (most recent call last):
  File "./keys.py", line 46, in <module>
    correct, keys = WV_Function(pssh, lic_url)
  File "./keys.py", line 42, in WV_Function
    wvdecrypt.update_license(license_b64)
  File "/home/removed/Downloads/wks-keys_v3/pywidevine/L3/decrypt/wvdecryptcustom.py", line 58, in update_license
    self.cdm.provide_license(self.session, license_b64)
  File "/home/removed/Downloads/wks-keys_v3/pywidevine/L3/cdm/cdm.py", line 275, in provide_license
    session.session_key = oaep_cipher.decrypt(license.SessionKey)
  File "/home/removed/.local/lib/python3.8/site-packages/Cryptodome/Cipher/PKCS1_OAEP.py", line 167, in decrypt
    raise ValueError("Ciphertext with incorrect length.")
ValueError: Ciphertext with incorrect length.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant