mirror of
https://github.com/hyugogirubato/KeyDive.git
synced 2025-04-30 12:34:25 +02:00
Fix private key size
This commit is contained in:
parent
57571328bf
commit
47a3711bb1
3
.gitignore
vendored
3
.gitignore
vendored
@ -160,4 +160,5 @@ cython_debug/
|
|||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
# KeyDive
|
# KeyDive
|
||||||
device/
|
device/
|
||||||
|
logs/
|
@ -6,6 +6,7 @@ from typing import Union
|
|||||||
from zlib import crc32
|
from zlib import crc32
|
||||||
|
|
||||||
from Cryptodome.PublicKey import RSA
|
from Cryptodome.PublicKey import RSA
|
||||||
|
from Cryptodome.PublicKey.RSA import RsaKey
|
||||||
from pywidevine import Device
|
from pywidevine import Device
|
||||||
from pywidevine.device import DeviceTypes
|
from pywidevine.device import DeviceTypes
|
||||||
from pywidevine.license_protocol_pb2 import SignedMessage, LicenseRequest, ClientIdentification, SignedDrmCertificate, DrmCertificate
|
from pywidevine.license_protocol_pb2 import SignedMessage, LicenseRequest, ClientIdentification, SignedDrmCertificate, DrmCertificate
|
||||||
@ -41,7 +42,7 @@ class Cdm:
|
|||||||
self.logger = logging.getLogger(self.__class__.__name__)
|
self.logger = logging.getLogger(self.__class__.__name__)
|
||||||
# https://github.com/devine-dl/pywidevine
|
# https://github.com/devine-dl/pywidevine
|
||||||
self.client_id: dict[int, ClientIdentification] = {}
|
self.client_id: dict[int, ClientIdentification] = {}
|
||||||
self.private_key: dict[int, RSA] = {}
|
self.private_key: dict[int, RsaKey] = {}
|
||||||
|
|
||||||
def __client_info(self, client_id: ClientIdentification) -> dict:
|
def __client_info(self, client_id: ClientIdentification) -> dict:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user