Fix private key size

This commit is contained in:
hyugogirubato 2024-07-06 21:11:00 +02:00
parent 57571328bf
commit 47a3711bb1
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -161,3 +161,4 @@ cython_debug/
# KeyDive
device/
logs/

View File

@ -6,6 +6,7 @@ from typing import Union
from zlib import crc32
from Cryptodome.PublicKey import RSA
from Cryptodome.PublicKey.RSA import RsaKey
from pywidevine import Device
from pywidevine.device import DeviceTypes
from pywidevine.license_protocol_pb2 import SignedMessage, LicenseRequest, ClientIdentification, SignedDrmCertificate, DrmCertificate
@ -41,7 +42,7 @@ class Cdm:
self.logger = logging.getLogger(self.__class__.__name__)
# https://github.com/devine-dl/pywidevine
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:
"""