KeyDive/extractor/license_protocol_pb2.py

144 lines
26 KiB
Python
Raw Normal View History

2024-03-30 19:03:15 +00:00
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: license_protocol.proto
# Protobuf Python Version: 4.25.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16license_protocol.proto\x12\x1bpywidevine_license_protocol\"\xbd\x01\n\x15LicenseIdentification\x12\x12\n\nrequest_id\x18\x01 \x01(\x0c\x12\x12\n\nsession_id\x18\x02 \x01(\x0c\x12\x13\n\x0bpurchase_id\x18\x03 \x01(\x0c\x12\x36\n\x04type\x18\x04 \x01(\x0e\x32(.pywidevine_license_protocol.LicenseType\x12\x0f\n\x07version\x18\x05 \x01(\x05\x12\x1e\n\x16provider_session_token\x18\x06 \x01(\x0c\"\xf1\x18\n\x07License\x12>\n\x02id\x18\x01 \x01(\x0b\x32\x32.pywidevine_license_protocol.LicenseIdentification\x12;\n\x06policy\x18\x02 \x01(\x0b\x32+.pywidevine_license_protocol.License.Policy\x12>\n\x03key\x18\x03 \x03(\x0b\x32\x31.pywidevine_license_protocol.License.KeyContainer\x12\x1a\n\x12license_start_time\x18\x04 \x01(\x03\x12*\n\x1bremote_attestation_verified\x18\x05 \x01(\x08:\x05\x66\x61lse\x12\x1d\n\x15provider_client_token\x18\x06 \x01(\x0c\x12\x19\n\x11protection_scheme\x18\x07 \x01(\r\x12\x17\n\x0fsrm_requirement\x18\x08 \x01(\x0c\x12\x12\n\nsrm_update\x18\t \x01(\x0c\x12w\n\x1cplatform_verification_status\x18\n \x01(\x0e\x32\x37.pywidevine_license_protocol.PlatformVerificationStatus:\x18PLATFORM_NO_VERIFICATION\x12\x11\n\tgroup_ids\x18\x0b \x03(\x0c\x1a\xae\x04\n\x06Policy\x12\x17\n\x08\x63\x61n_play\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x0b\x63\x61n_persist\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x18\n\tcan_renew\x18\x03 \x01(\x08:\x05\x66\x61lse\x12\"\n\x17rental_duration_seconds\x18\x04 \x01(\x03:\x01\x30\x12$\n\x19playback_duration_seconds\x18\x05 \x01(\x03:\x01\x30\x12#\n\x18license_duration_seconds\x18\x06 \x01(\x03:\x01\x30\x12,\n!renewal_recovery_duration_seconds\x18\x07 \x01(\x03:\x01\x30\x12\x1a\n\x12renewal_server_url\x18\x08 \x01(\t\x12 \n\x15renewal_delay_seconds\x18\t \x01(\x03:\x01\x30\x12)\n\x1erenewal_retry_interval_seconds\x18\n \x01(\x03:\x01\x30\x12\x1f\n\x10renew_with_usage\x18\x0b \x01(\x08:\x05\x66\x61lse\x12\'\n\x18\x61lways_include_client_id\x18\x0c \x01(\x08:\x05\x66\x61lse\x12*\n\x1fplay_start_grace_period_seconds\x18\r \x01(\x03:\x01\x30\x12-\n\x1esoft_enforce_playback_duration\x18\x0e \x01(\x08:\x05\x66\x61lse\x12*\n\x1csoft_enforce_rental_duration\x18\x0f \x01(\x08:\x04true\x1a\xbc\x10\n\x0cKeyContainer\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\n\n\x02iv\x18\x02 \x01(\x0c\x12\x0b\n\x03key\x18\x03 \x01(\x0c\x12G\n\x04type\x18\x04 \x01(\x0e\x32\x39.pywidevine_license_protocol.License.KeyContainer.KeyType\x12`\n\x05level\x18\x05 \x01(\x0e\x32?.pywidevine_license_protocol.License.KeyContainer.SecurityLevel:\x10SW_SECURE_CRYPTO\x12_\n\x13required_protection\x18\x06 \x01(\x0b\x32\x42.pywidevine_license_protocol.License.KeyContainer.OutputProtection\x12`\n\x14requested_protection\x18\x07 \x01(\x0b\x32\x42.pywidevine_license_protocol.License.KeyContainer.OutputProtection\x12Q\n\x0bkey_control\x18\x08 \x01(\x0b\x32<.pywidevine_license_protocol.License.KeyContainer.KeyControl\x12y\n operator_session_key_permissions\x18\t \x01(\x0b\x32O.pywidevine_license_protocol.License.KeyContainer.OperatorSessionKeyPermissions\x12q\n\x1cvideo_resolution_constraints\x18\n \x03(\x0b\x32K.pywidevine_license_protocol.License.KeyContainer.VideoResolutionConstraint\x12(\n\x19\x61nti_rollback_usage_table\x18\x0b \x01(\x08:\x05\x66\x61lse\x12\x13\n\x0btrack_label\x18\x0c \x01(\t\x1a\x33\n\nKeyControl\x12\x19\n\x11key_control_block\x18\x01 \x01(\x0c\x12\n\n\x02iv\x18\x02 \x01(\x0c\x1a\x9c\x05\n\x10OutputProtection\x12`\n\x04hdcp\x18\x01 \x01(\x0e\x32G.pywidevine_license_protocol.License.KeyContainer.OutputProtection.HDCP:\tHDCP_NONE\x12\x66\n\ncgms_flags\x18\x02 \x01(\x0e\x32G.pywidevine_license_protocol.License.KeyContainer.OutputProtection.CGMS:\tCGMS_NONE\x12y\n\rhdcp_srm_rule\x18\x03 \x01(\x0e\x32N.pywidevine_license_protocol.License.KeyContainer.OutputProtection.HdcpSrmRule:\x12HDCP_SRM_RULE_NONE\x12$\n\x15\x64isable_analog_output\x18\x04 \x01(\x08:\x05\x66\x61lse\x12%\n\x16\x64isable_digital_output\x18\x05 \x01(\x08:\x05\x66\x61lse\"y\n\x04HDCP\x12\r\n\tHDCP_NONE\x10\x00\x12\x0b\n\x07HDCP_V1\x10\x01\x12\x0b\n\x07HDCP_V2\x10\x02\x12\r\n\tHDCP_V2_1\x10\x0
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'license_protocol_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
_globals['DESCRIPTOR']._options = None
_globals['DESCRIPTOR']._serialized_options = b'\n com.rlaphoenix.pywidevine.protosH\003'
_globals['_DRMCERTIFICATE'].fields_by_name['test_device_deprecated']._options = None
_globals['_DRMCERTIFICATE'].fields_by_name['test_device_deprecated']._serialized_options = b'\030\001'
_globals['_WIDEVINEPSSHDATA'].fields_by_name['algorithm']._options = None
_globals['_WIDEVINEPSSHDATA'].fields_by_name['algorithm']._serialized_options = b'\030\001'
_globals['_WIDEVINEPSSHDATA'].fields_by_name['provider']._options = None
_globals['_WIDEVINEPSSHDATA'].fields_by_name['provider']._serialized_options = b'\030\001'
_globals['_WIDEVINEPSSHDATA'].fields_by_name['track_type']._options = None
_globals['_WIDEVINEPSSHDATA'].fields_by_name['track_type']._serialized_options = b'\030\001'
_globals['_WIDEVINEPSSHDATA'].fields_by_name['policy']._options = None
_globals['_WIDEVINEPSSHDATA'].fields_by_name['policy']._serialized_options = b'\030\001'
_globals['_WIDEVINEPSSHDATA'].fields_by_name['grouped_license']._options = None
_globals['_WIDEVINEPSSHDATA'].fields_by_name['grouped_license']._serialized_options = b'\030\001'
_globals['_LICENSETYPE']._serialized_start=10442
_globals['_LICENSETYPE']._serialized_end=10498
_globals['_PLATFORMVERIFICATIONSTATUS']._serialized_start=10501
_globals['_PLATFORMVERIFICATIONSTATUS']._serialized_end=10718
_globals['_PROTOCOLVERSION']._serialized_start=10720
_globals['_PROTOCOLVERSION']._serialized_end=10788
_globals['_HASHALGORITHMPROTO']._serialized_start=10791
_globals['_HASHALGORITHMPROTO']._serialized_end=10925
_globals['_LICENSEIDENTIFICATION']._serialized_start=56
_globals['_LICENSEIDENTIFICATION']._serialized_end=245
_globals['_LICENSE']._serialized_start=248
_globals['_LICENSE']._serialized_end=3433
_globals['_LICENSE_POLICY']._serialized_start=764
_globals['_LICENSE_POLICY']._serialized_end=1322
_globals['_LICENSE_KEYCONTAINER']._serialized_start=1325
_globals['_LICENSE_KEYCONTAINER']._serialized_end=3433
_globals['_LICENSE_KEYCONTAINER_KEYCONTROL']._serialized_start=2128
_globals['_LICENSE_KEYCONTAINER_KEYCONTROL']._serialized_end=2179
_globals['_LICENSE_KEYCONTAINER_OUTPUTPROTECTION']._serialized_start=2182
_globals['_LICENSE_KEYCONTAINER_OUTPUTPROTECTION']._serialized_end=2850
_globals['_LICENSE_KEYCONTAINER_OUTPUTPROTECTION_HDCP']._serialized_start=2604
_globals['_LICENSE_KEYCONTAINER_OUTPUTPROTECTION_HDCP']._serialized_end=2725
_globals['_LICENSE_KEYCONTAINER_OUTPUTPROTECTION_CGMS']._serialized_start=2727
_globals['_LICENSE_KEYCONTAINER_OUTPUTPROTECTION_CGMS']._serialized_end=2794
_globals['_LICENSE_KEYCONTAINER_OUTPUTPROTECTION_HDCPSRMRULE']._serialized_start=2796
_globals['_LICENSE_KEYCONTAINER_OUTPUTPROTECTION_HDCPSRMRULE']._serialized_end=2850
_globals['_LICENSE_KEYCONTAINER_VIDEORESOLUTIONCONSTRAINT']._serialized_start=2853
_globals['_LICENSE_KEYCONTAINER_VIDEORESOLUTIONCONSTRAINT']._serialized_end=3039
_globals['_LICENSE_KEYCONTAINER_OPERATORSESSIONKEYPERMISSIONS']._serialized_start=3042
_globals['_LICENSE_KEYCONTAINER_OPERATORSESSIONKEYPERMISSIONS']._serialized_end=3199
_globals['_LICENSE_KEYCONTAINER_KEYTYPE']._serialized_start=3201
_globals['_LICENSE_KEYCONTAINER_KEYTYPE']._serialized_end=3309
_globals['_LICENSE_KEYCONTAINER_SECURITYLEVEL']._serialized_start=3311
_globals['_LICENSE_KEYCONTAINER_SECURITYLEVEL']._serialized_end=3433
_globals['_LICENSEREQUEST']._serialized_start=3436
_globals['_LICENSEREQUEST']._serialized_end=5161
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION']._serialized_start=3944
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION']._serialized_end=5111
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_WIDEVINEPSSHDATA']._serialized_start=4391
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_WIDEVINEPSSHDATA']._serialized_end=4512
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_WEBMKEYID']._serialized_start=4514
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_WEBMKEYID']._serialized_end=4625
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_EXISTINGLICENSE']._serialized_start=4628
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_EXISTINGLICENSE']._serialized_end=4818
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_INITDATA']._serialized_start=4821
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_INITDATA']._serialized_end=5089
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_INITDATA_INITDATATYPE']._serialized_start=5055
_globals['_LICENSEREQUEST_CONTENTIDENTIFICATION_INITDATA_INITDATATYPE']._serialized_end=5089
_globals['_LICENSEREQUEST_REQUESTTYPE']._serialized_start=5113
_globals['_LICENSEREQUEST_REQUESTTYPE']._serialized_end=5161
_globals['_METRICDATA']._serialized_start=5164
_globals['_METRICDATA']._serialized_end=5407
_globals['_METRICDATA_TYPEVALUE']._serialized_start=5270
_globals['_METRICDATA_TYPEVALUE']._serialized_end=5365
_globals['_METRICDATA_METRICTYPE']._serialized_start=5367
_globals['_METRICDATA_METRICTYPE']._serialized_end=5407
_globals['_VERSIONINFO']._serialized_start=5409
_globals['_VERSIONINFO']._serialized_end=5484
_globals['_SIGNEDMESSAGE']._serialized_start=5487
_globals['_SIGNEDMESSAGE']._serialized_end=6245
_globals['_SIGNEDMESSAGE_MESSAGETYPE']._serialized_start=5924
_globals['_SIGNEDMESSAGE_MESSAGETYPE']._serialized_end=6160
_globals['_SIGNEDMESSAGE_SESSIONKEYTYPE']._serialized_start=6162
_globals['_SIGNEDMESSAGE_SESSIONKEYTYPE']._serialized_end=6245
_globals['_CLIENTIDENTIFICATION']._serialized_start=6248
_globals['_CLIENTIDENTIFICATION']._serialized_end=8111
_globals['_CLIENTIDENTIFICATION_NAMEVALUE']._serialized_start=6722
_globals['_CLIENTIDENTIFICATION_NAMEVALUE']._serialized_end=6762
_globals['_CLIENTIDENTIFICATION_CLIENTCAPABILITIES']._serialized_start=6765
_globals['_CLIENTIDENTIFICATION_CLIENTCAPABILITIES']._serialized_end=7875
_globals['_CLIENTIDENTIFICATION_CLIENTCAPABILITIES_HDCPVERSION']._serialized_start=7496
_globals['_CLIENTIDENTIFICATION_CLIENTCAPABILITIES_HDCPVERSION']._serialized_end=7624
_globals['_CLIENTIDENTIFICATION_CLIENTCAPABILITIES_CERTIFICATEKEYTYPE']._serialized_start=7626
_globals['_CLIENTIDENTIFICATION_CLIENTCAPABILITIES_CERTIFICATEKEYTYPE']._serialized_end=7731
_globals['_CLIENTIDENTIFICATION_CLIENTCAPABILITIES_ANALOGOUTPUTCAPABILITIES']._serialized_start=7734
_globals['_CLIENTIDENTIFICATION_CLIENTCAPABILITIES_ANALOGOUTPUTCAPABILITIES']._serialized_end=7875
_globals['_CLIENTIDENTIFICATION_CLIENTCREDENTIALS']._serialized_start=7877
_globals['_CLIENTIDENTIFICATION_CLIENTCREDENTIALS']._serialized_end=7994
_globals['_CLIENTIDENTIFICATION_TOKENTYPE']._serialized_start=7996
_globals['_CLIENTIDENTIFICATION_TOKENTYPE']._serialized_end=8111
_globals['_ENCRYPTEDCLIENTIDENTIFICATION']._serialized_start=8114
_globals['_ENCRYPTEDCLIENTIDENTIFICATION']._serialized_end=8301
_globals['_DRMCERTIFICATE']._serialized_start=8304
_globals['_DRMCERTIFICATE']._serialized_end=9258
_globals['_DRMCERTIFICATE_ENCRYPTIONKEY']._serialized_start=8827
_globals['_DRMCERTIFICATE_ENCRYPTIONKEY']._serialized_end=8941
_globals['_DRMCERTIFICATE_TYPE']._serialized_start=8943
_globals['_DRMCERTIFICATE_TYPE']._serialized_end=9019
_globals['_DRMCERTIFICATE_SERVICETYPE']._serialized_start=9022
_globals['_DRMCERTIFICATE_SERVICETYPE']._serialized_end=9156
_globals['_DRMCERTIFICATE_ALGORITHM']._serialized_start=9158
_globals['_DRMCERTIFICATE_ALGORITHM']._serialized_end=9258
_globals['_SIGNEDDRMCERTIFICATE']._serialized_start=9261
_globals['_SIGNEDDRMCERTIFICATE']._serialized_end=9467
_globals['_WIDEVINEPSSHDATA']._serialized_start=9470
_globals['_WIDEVINEPSSHDATA']._serialized_end=10228
_globals['_WIDEVINEPSSHDATA_ENTITLEDKEY']._serialized_start=10009
_globals['_WIDEVINEPSSHDATA_ENTITLEDKEY']._serialized_end=10131
_globals['_WIDEVINEPSSHDATA_TYPE']._serialized_start=10133
_globals['_WIDEVINEPSSHDATA_TYPE']._serialized_end=10186
_globals['_WIDEVINEPSSHDATA_ALGORITHM']._serialized_start=10188
_globals['_WIDEVINEPSSHDATA_ALGORITHM']._serialized_end=10228
_globals['_FILEHASHES']._serialized_start=10231
_globals['_FILEHASHES']._serialized_end=10440
_globals['_FILEHASHES_SIGNATURE']._serialized_start=10332
_globals['_FILEHASHES_SIGNATURE']._serialized_end=10440
# @@protoc_insertion_point(module_scope)