widevine

package
v0.0.0-...-8d62bcd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPrivateKey = `` /* 1680-byte string literal not displayed */

Variables

View Source
var (
	LicenseType_name = map[int32]string{
		0: "ZERO",
		1: "DEFAULT",
		2: "OFFLINE",
	}
	LicenseType_value = map[string]int32{
		"ZERO":    0,
		"DEFAULT": 1,
		"OFFLINE": 2,
	}
)

Enum value maps for LicenseType.

View Source
var (
	ProtocolVersion_name = map[int32]string{
		21: "CURRENT",
	}
	ProtocolVersion_value = map[string]int32{
		"CURRENT": 21,
	}
)

Enum value maps for ProtocolVersion.

View Source
var (
	ClientIdentification_TokenType_name = map[int32]string{
		0: "KEYBOX",
		1: "DEVICE_CERTIFICATE",
		2: "REMOTE_ATTESTATION_CERTIFICATE",
	}
	ClientIdentification_TokenType_value = map[string]int32{
		"KEYBOX":                         0,
		"DEVICE_CERTIFICATE":             1,
		"REMOTE_ATTESTATION_CERTIFICATE": 2,
	}
)

Enum value maps for ClientIdentification_TokenType.

View Source
var (
	ClientIdentification_ClientCapabilities_HdcpVersion_name = map[int32]string{
		0: "HDCP_NONE",
		1: "HDCP_V1",
		2: "HDCP_V2",
		3: "HDCP_V2_1",
		4: "HDCP_V2_2",
	}
	ClientIdentification_ClientCapabilities_HdcpVersion_value = map[string]int32{
		"HDCP_NONE": 0,
		"HDCP_V1":   1,
		"HDCP_V2":   2,
		"HDCP_V2_1": 3,
		"HDCP_V2_2": 4,
	}
)

Enum value maps for ClientIdentification_ClientCapabilities_HdcpVersion.

View Source
var (
	DeviceCertificate_CertificateType_name = map[int32]string{
		0: "ROOT",
		1: "INTERMEDIATE",
		2: "USER_DEVICE",
		3: "SERVICE",
	}
	DeviceCertificate_CertificateType_value = map[string]int32{
		"ROOT":         0,
		"INTERMEDIATE": 1,
		"USER_DEVICE":  2,
		"SERVICE":      3,
	}
)

Enum value maps for DeviceCertificate_CertificateType.

View Source
var (
	DeviceCertificateStatus_CertificateStatus_name = map[int32]string{
		0: "VALID",
		1: "REVOKED",
	}
	DeviceCertificateStatus_CertificateStatus_value = map[string]int32{
		"VALID":   0,
		"REVOKED": 1,
	}
)

Enum value maps for DeviceCertificateStatus_CertificateStatus.

View Source
var (
	License_KeyContainer_KeyType_name = map[int32]string{
		1: "SIGNING",
		2: "CONTENT",
		3: "KEY_CONTROL",
		4: "OPERATOR_SESSION",
	}
	License_KeyContainer_KeyType_value = map[string]int32{
		"SIGNING":          1,
		"CONTENT":          2,
		"KEY_CONTROL":      3,
		"OPERATOR_SESSION": 4,
	}
)

Enum value maps for License_KeyContainer_KeyType.

View Source
var (
	License_KeyContainer_SecurityLevel_name = map[int32]string{
		1: "SW_SECURE_CRYPTO",
		2: "SW_SECURE_DECODE",
		3: "HW_SECURE_CRYPTO",
		4: "HW_SECURE_DECODE",
		5: "HW_SECURE_ALL",
	}
	License_KeyContainer_SecurityLevel_value = map[string]int32{
		"SW_SECURE_CRYPTO": 1,
		"SW_SECURE_DECODE": 2,
		"HW_SECURE_CRYPTO": 3,
		"HW_SECURE_DECODE": 4,
		"HW_SECURE_ALL":    5,
	}
)

Enum value maps for License_KeyContainer_SecurityLevel.

View Source
var (
	License_KeyContainer_OutputProtection_CGMS_name = map[int32]string{
		0:  "COPY_FREE",
		2:  "COPY_ONCE",
		3:  "COPY_NEVER",
		42: "CGMS_NONE",
	}
	License_KeyContainer_OutputProtection_CGMS_value = map[string]int32{
		"COPY_FREE":  0,
		"COPY_ONCE":  2,
		"COPY_NEVER": 3,
		"CGMS_NONE":  42,
	}
)

Enum value maps for License_KeyContainer_OutputProtection_CGMS.

View Source
var (
	LicenseError_Error_name = map[int32]string{
		1: "INVALID_DEVICE_CERTIFICATE",
		2: "REVOKED_DEVICE_CERTIFICATE",
		3: "SERVICE_UNAVAILABLE",
	}
	LicenseError_Error_value = map[string]int32{
		"INVALID_DEVICE_CERTIFICATE": 1,
		"REVOKED_DEVICE_CERTIFICATE": 2,
		"SERVICE_UNAVAILABLE":        3,
	}
)

Enum value maps for LicenseError_Error.

View Source
var (
	LicenseRequest_RequestType_name = map[int32]string{
		1: "NEW",
		2: "RENEWAL",
		3: "RELEASE",
	}
	LicenseRequest_RequestType_value = map[string]int32{
		"NEW":     1,
		"RENEWAL": 2,
		"RELEASE": 3,
	}
)

Enum value maps for LicenseRequest_RequestType.

View Source
var (
	LicenseRequestRaw_RequestType_name = map[int32]string{
		1: "NEW",
		2: "RENEWAL",
		3: "RELEASE",
	}
	LicenseRequestRaw_RequestType_value = map[string]int32{
		"NEW":     1,
		"RENEWAL": 2,
		"RELEASE": 3,
	}
)

Enum value maps for LicenseRequestRaw_RequestType.

View Source
var (
	ProvisionedDeviceInfo_WvSecurityLevel_name = map[int32]string{
		0: "LEVEL_UNSPECIFIED",
		1: "LEVEL_1",
		2: "LEVEL_2",
		3: "LEVEL_3",
	}
	ProvisionedDeviceInfo_WvSecurityLevel_value = map[string]int32{
		"LEVEL_UNSPECIFIED": 0,
		"LEVEL_1":           1,
		"LEVEL_2":           2,
		"LEVEL_3":           3,
	}
)

Enum value maps for ProvisionedDeviceInfo_WvSecurityLevel.

View Source
var (
	SignedMessage_MessageType_name = map[int32]string{
		1: "LICENSE_REQUEST",
		2: "LICENSE",
		3: "ERROR_RESPONSE",
		4: "SERVICE_CERTIFICATE_REQUEST",
		5: "SERVICE_CERTIFICATE",
	}
	SignedMessage_MessageType_value = map[string]int32{
		"LICENSE_REQUEST":             1,
		"LICENSE":                     2,
		"ERROR_RESPONSE":              3,
		"SERVICE_CERTIFICATE_REQUEST": 4,
		"SERVICE_CERTIFICATE":         5,
	}
)

Enum value maps for SignedMessage_MessageType.

View Source
var (
	WidevineCencHeader_Algorithm_name = map[int32]string{
		0: "UNENCRYPTED",
		1: "AESCTR",
	}
	WidevineCencHeader_Algorithm_value = map[string]int32{
		"UNENCRYPTED": 0,
		"AESCTR":      1,
	}
)

Enum value maps for WidevineCencHeader_Algorithm.

View Source
var (
	SignedLicenseRequest_MessageType_name = map[int32]string{
		1: "LICENSE_REQUEST",
		2: "LICENSE",
		3: "ERROR_RESPONSE",
		4: "SERVICE_CERTIFICATE_REQUEST",
		5: "SERVICE_CERTIFICATE",
	}
	SignedLicenseRequest_MessageType_value = map[string]int32{
		"LICENSE_REQUEST":             1,
		"LICENSE":                     2,
		"ERROR_RESPONSE":              3,
		"SERVICE_CERTIFICATE_REQUEST": 4,
		"SERVICE_CERTIFICATE":         5,
	}
)

Enum value maps for SignedLicenseRequest_MessageType.

View Source
var (
	SignedLicenseRequestRaw_MessageType_name = map[int32]string{
		1: "LICENSE_REQUEST",
		2: "LICENSE",
		3: "ERROR_RESPONSE",
		4: "SERVICE_CERTIFICATE_REQUEST",
		5: "SERVICE_CERTIFICATE",
	}
	SignedLicenseRequestRaw_MessageType_value = map[string]int32{
		"LICENSE_REQUEST":             1,
		"LICENSE":                     2,
		"ERROR_RESPONSE":              3,
		"SERVICE_CERTIFICATE_REQUEST": 4,
		"SERVICE_CERTIFICATE":         5,
	}
)

Enum value maps for SignedLicenseRequestRaw_MessageType.

View Source
var (
	SignedLicense_MessageType_name = map[int32]string{
		1: "LICENSE_REQUEST",
		2: "LICENSE",
		3: "ERROR_RESPONSE",
		4: "SERVICE_CERTIFICATE_REQUEST",
		5: "SERVICE_CERTIFICATE",
	}
	SignedLicense_MessageType_value = map[string]int32{
		"LICENSE_REQUEST":             1,
		"LICENSE":                     2,
		"ERROR_RESPONSE":              3,
		"SERVICE_CERTIFICATE_REQUEST": 4,
		"SERVICE_CERTIFICATE":         5,
	}
)

Enum value maps for SignedLicense_MessageType.

View Source
var (
	SignedServiceCertificate_MessageType_name = map[int32]string{
		1: "LICENSE_REQUEST",
		2: "LICENSE",
		3: "ERROR_RESPONSE",
		4: "SERVICE_CERTIFICATE_REQUEST",
		5: "SERVICE_CERTIFICATE",
	}
	SignedServiceCertificate_MessageType_value = map[string]int32{
		"LICENSE_REQUEST":             1,
		"LICENSE":                     2,
		"ERROR_RESPONSE":              3,
		"SERVICE_CERTIFICATE_REQUEST": 4,
		"SERVICE_CERTIFICATE":         5,
	}
)

Enum value maps for SignedServiceCertificate_MessageType.

View Source
var DefaultClientID = []byte{} /* 1651 elements not displayed */
View Source
var File_wv_proto2_proto protoreflect.FileDescriptor

Functions

func GetCertData

func GetCertData(client *http.Client, licenseURL string) ([]byte, error)

This function retrieves certificate data from a given license server.

func InitDataFromMPD

func InitDataFromMPD(r io.Reader) ([]byte, error)

This function retrieves the PSSH/Init Data from a given MPD file reader. Example file: https://bitmovin-a.akamaihd.net/content/art-of-motion_drm/mpds/11331.mpd

Types

type CDM

type CDM struct {
	// contains filtered or unexported fields
}

func NewCDM

func NewCDM(privateKey string, clientID []byte, initData []byte) (CDM, error)

Creates a new CDM object with the specified device information.

func NewDefaultCDM

func NewDefaultCDM(initData []byte) (CDM, error)

Creates a new CDM object using the default device configuration.

func (*CDM) GetLicenseKeys

func (c *CDM) GetLicenseKeys(licenseRequest []byte, licenseResponse []byte) (keys []Key, err error)

Retrieves the keys from the license response data. These keys can be used to decrypt the DASH-MP4.

func (*CDM) GetLicenseRequest

func (c *CDM) GetLicenseRequest() ([]byte, error)

Generates the license request data. This is sent to the license server via HTTP POST and the server in turn returns the license response.

func (*CDM) SetServiceCertificate

func (c *CDM) SetServiceCertificate(certData []byte) error

Sets a device certificate. This is makes generating the license request more complicated but is supported. This is usually not necessary for most Widevine applications.

type ClientIdentification

type ClientIdentification struct {
	Type *ClientIdentification_TokenType `protobuf:"varint,1,req,name=Type,enum=ClientIdentification_TokenType" json:"Type,omitempty"`
	//optional bytes Token = 2; // by default the client treats this as blob, but it's usually a DeviceCertificate, so for usefulness sake, I'm replacing it with this one:
	Token               *SignedDeviceCertificate                 `protobuf:"bytes,2,opt,name=Token" json:"Token,omitempty"` // use this when parsing, "bytes" when building a client id blob
	ClientInfo          []*ClientIdentification_NameValue        `protobuf:"bytes,3,rep,name=ClientInfo" json:"ClientInfo,omitempty"`
	ProviderClientToken []byte                                   `protobuf:"bytes,4,opt,name=ProviderClientToken" json:"ProviderClientToken,omitempty"`
	LicenseCounter      *uint32                                  `protobuf:"varint,5,opt,name=LicenseCounter" json:"LicenseCounter,omitempty"`
	XClientCapabilities *ClientIdentification_ClientCapabilities `protobuf:"bytes,6,opt,name=_ClientCapabilities,json=ClientCapabilities" json:"_ClientCapabilities,omitempty"` // how should we deal with duped names? will have to look at proto docs later
	XFileHashes         *FileHashes                              `protobuf:"bytes,7,opt,name=_FileHashes,json=FileHashes" json:"_FileHashes,omitempty"`                         // vmp blob goes here
	// contains filtered or unexported fields
}

from x86 (partial), most of it from the ARM version:

func (*ClientIdentification) Descriptor deprecated

func (*ClientIdentification) Descriptor() ([]byte, []int)

Deprecated: Use ClientIdentification.ProtoReflect.Descriptor instead.

func (*ClientIdentification) GetClientInfo

func (*ClientIdentification) GetLicenseCounter

func (x *ClientIdentification) GetLicenseCounter() uint32

func (*ClientIdentification) GetProviderClientToken

func (x *ClientIdentification) GetProviderClientToken() []byte

func (*ClientIdentification) GetToken

func (*ClientIdentification) GetType

func (*ClientIdentification) GetXClientCapabilities

func (*ClientIdentification) GetXFileHashes

func (x *ClientIdentification) GetXFileHashes() *FileHashes

func (*ClientIdentification) ProtoMessage

func (*ClientIdentification) ProtoMessage()

func (*ClientIdentification) ProtoReflect

func (x *ClientIdentification) ProtoReflect() protoreflect.Message

func (*ClientIdentification) Reset

func (x *ClientIdentification) Reset()

func (*ClientIdentification) String

func (x *ClientIdentification) String() string

type ClientIdentification_ClientCapabilities

type ClientIdentification_ClientCapabilities struct {
	ClientToken                *uint32                                              `protobuf:"varint,1,opt,name=ClientToken" json:"ClientToken,omitempty"`
	SessionToken               *uint32                                              `protobuf:"varint,2,opt,name=SessionToken" json:"SessionToken,omitempty"`
	VideoResolutionConstraints *uint32                                              `protobuf:"varint,3,opt,name=VideoResolutionConstraints" json:"VideoResolutionConstraints,omitempty"`
	MaxHdcpVersion             *ClientIdentification_ClientCapabilities_HdcpVersion `` /* 132-byte string literal not displayed */
	OemCryptoApiVersion        *uint32                                              `protobuf:"varint,5,opt,name=OemCryptoApiVersion" json:"OemCryptoApiVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientIdentification_ClientCapabilities) Descriptor deprecated

func (*ClientIdentification_ClientCapabilities) Descriptor() ([]byte, []int)

Deprecated: Use ClientIdentification_ClientCapabilities.ProtoReflect.Descriptor instead.

func (*ClientIdentification_ClientCapabilities) GetClientToken

func (x *ClientIdentification_ClientCapabilities) GetClientToken() uint32

func (*ClientIdentification_ClientCapabilities) GetMaxHdcpVersion

func (*ClientIdentification_ClientCapabilities) GetOemCryptoApiVersion

func (x *ClientIdentification_ClientCapabilities) GetOemCryptoApiVersion() uint32

func (*ClientIdentification_ClientCapabilities) GetSessionToken

func (x *ClientIdentification_ClientCapabilities) GetSessionToken() uint32

func (*ClientIdentification_ClientCapabilities) GetVideoResolutionConstraints

func (x *ClientIdentification_ClientCapabilities) GetVideoResolutionConstraints() uint32

func (*ClientIdentification_ClientCapabilities) ProtoMessage

func (*ClientIdentification_ClientCapabilities) ProtoReflect

func (*ClientIdentification_ClientCapabilities) Reset

func (*ClientIdentification_ClientCapabilities) String

type ClientIdentification_ClientCapabilities_HdcpVersion

type ClientIdentification_ClientCapabilities_HdcpVersion int32
const (
	ClientIdentification_ClientCapabilities_HDCP_NONE ClientIdentification_ClientCapabilities_HdcpVersion = 0
	ClientIdentification_ClientCapabilities_HDCP_V1   ClientIdentification_ClientCapabilities_HdcpVersion = 1
	ClientIdentification_ClientCapabilities_HDCP_V2   ClientIdentification_ClientCapabilities_HdcpVersion = 2
	ClientIdentification_ClientCapabilities_HDCP_V2_1 ClientIdentification_ClientCapabilities_HdcpVersion = 3
	ClientIdentification_ClientCapabilities_HDCP_V2_2 ClientIdentification_ClientCapabilities_HdcpVersion = 4
)

func (ClientIdentification_ClientCapabilities_HdcpVersion) Descriptor

func (ClientIdentification_ClientCapabilities_HdcpVersion) Enum

func (ClientIdentification_ClientCapabilities_HdcpVersion) EnumDescriptor deprecated

Deprecated: Use ClientIdentification_ClientCapabilities_HdcpVersion.Descriptor instead.

func (ClientIdentification_ClientCapabilities_HdcpVersion) Number

func (ClientIdentification_ClientCapabilities_HdcpVersion) String

func (ClientIdentification_ClientCapabilities_HdcpVersion) Type

func (*ClientIdentification_ClientCapabilities_HdcpVersion) UnmarshalJSON deprecated

Deprecated: Do not use.

type ClientIdentification_NameValue

type ClientIdentification_NameValue struct {
	Name  *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"`
	Value *string `protobuf:"bytes,2,req,name=Value" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientIdentification_NameValue) Descriptor deprecated

func (*ClientIdentification_NameValue) Descriptor() ([]byte, []int)

Deprecated: Use ClientIdentification_NameValue.ProtoReflect.Descriptor instead.

func (*ClientIdentification_NameValue) GetName

func (*ClientIdentification_NameValue) GetValue

func (x *ClientIdentification_NameValue) GetValue() string

func (*ClientIdentification_NameValue) ProtoMessage

func (*ClientIdentification_NameValue) ProtoMessage()

func (*ClientIdentification_NameValue) ProtoReflect

func (*ClientIdentification_NameValue) Reset

func (x *ClientIdentification_NameValue) Reset()

func (*ClientIdentification_NameValue) String

type ClientIdentification_TokenType

type ClientIdentification_TokenType int32
const (
	ClientIdentification_KEYBOX                         ClientIdentification_TokenType = 0
	ClientIdentification_DEVICE_CERTIFICATE             ClientIdentification_TokenType = 1
	ClientIdentification_REMOTE_ATTESTATION_CERTIFICATE ClientIdentification_TokenType = 2
)

func (ClientIdentification_TokenType) Descriptor

func (ClientIdentification_TokenType) Enum

func (ClientIdentification_TokenType) EnumDescriptor deprecated

func (ClientIdentification_TokenType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClientIdentification_TokenType.Descriptor instead.

func (ClientIdentification_TokenType) Number

func (ClientIdentification_TokenType) String

func (ClientIdentification_TokenType) Type

func (*ClientIdentification_TokenType) UnmarshalJSON deprecated

func (x *ClientIdentification_TokenType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type DeviceCertificate

type DeviceCertificate struct {
	Type                 *DeviceCertificate_CertificateType `protobuf:"varint,1,req,name=Type,enum=DeviceCertificate_CertificateType" json:"Type,omitempty"` // the compiled code reused this as ProvisionedDeviceInfo.WvSecurityLevel, however that is incorrect (compiler aliased it as they're both identical as a structure)
	SerialNumber         []byte                             `protobuf:"bytes,2,opt,name=SerialNumber" json:"SerialNumber,omitempty"`
	CreationTimeSeconds  *uint32                            `protobuf:"varint,3,opt,name=CreationTimeSeconds" json:"CreationTimeSeconds,omitempty"`
	PublicKey            []byte                             `protobuf:"bytes,4,opt,name=PublicKey" json:"PublicKey,omitempty"`
	SystemId             *uint32                            `protobuf:"varint,5,opt,name=SystemId" json:"SystemId,omitempty"`
	TestDeviceDeprecated *uint32                            `protobuf:"varint,6,opt,name=TestDeviceDeprecated" json:"TestDeviceDeprecated,omitempty"` // is it bool or int?
	ServiceId            []byte                             `protobuf:"bytes,7,opt,name=ServiceId" json:"ServiceId,omitempty"`                        // service URL for service certificates
	// contains filtered or unexported fields
}

func (*DeviceCertificate) Descriptor deprecated

func (*DeviceCertificate) Descriptor() ([]byte, []int)

Deprecated: Use DeviceCertificate.ProtoReflect.Descriptor instead.

func (*DeviceCertificate) GetCreationTimeSeconds

func (x *DeviceCertificate) GetCreationTimeSeconds() uint32

func (*DeviceCertificate) GetPublicKey

func (x *DeviceCertificate) GetPublicKey() []byte

func (*DeviceCertificate) GetSerialNumber

func (x *DeviceCertificate) GetSerialNumber() []byte

func (*DeviceCertificate) GetServiceId

func (x *DeviceCertificate) GetServiceId() []byte

func (*DeviceCertificate) GetSystemId

func (x *DeviceCertificate) GetSystemId() uint32

func (*DeviceCertificate) GetTestDeviceDeprecated

func (x *DeviceCertificate) GetTestDeviceDeprecated() uint32

func (*DeviceCertificate) GetType

func (*DeviceCertificate) ProtoMessage

func (*DeviceCertificate) ProtoMessage()

func (*DeviceCertificate) ProtoReflect

func (x *DeviceCertificate) ProtoReflect() protoreflect.Message

func (*DeviceCertificate) Reset

func (x *DeviceCertificate) Reset()

func (*DeviceCertificate) String

func (x *DeviceCertificate) String() string

type DeviceCertificateStatus

type DeviceCertificateStatus struct {
	SerialNumber []byte                                     `protobuf:"bytes,1,opt,name=SerialNumber" json:"SerialNumber,omitempty"`
	Status       *DeviceCertificateStatus_CertificateStatus `protobuf:"varint,2,opt,name=Status,enum=DeviceCertificateStatus_CertificateStatus" json:"Status,omitempty"`
	DeviceInfo   *ProvisionedDeviceInfo                     `protobuf:"bytes,4,opt,name=DeviceInfo" json:"DeviceInfo,omitempty"` // where is 3? is it deprecated?
	// contains filtered or unexported fields
}

missing some references,

func (*DeviceCertificateStatus) Descriptor deprecated

func (*DeviceCertificateStatus) Descriptor() ([]byte, []int)

Deprecated: Use DeviceCertificateStatus.ProtoReflect.Descriptor instead.

func (*DeviceCertificateStatus) GetDeviceInfo

func (x *DeviceCertificateStatus) GetDeviceInfo() *ProvisionedDeviceInfo

func (*DeviceCertificateStatus) GetSerialNumber

func (x *DeviceCertificateStatus) GetSerialNumber() []byte

func (*DeviceCertificateStatus) GetStatus

func (*DeviceCertificateStatus) ProtoMessage

func (*DeviceCertificateStatus) ProtoMessage()

func (*DeviceCertificateStatus) ProtoReflect

func (x *DeviceCertificateStatus) ProtoReflect() protoreflect.Message

func (*DeviceCertificateStatus) Reset

func (x *DeviceCertificateStatus) Reset()

func (*DeviceCertificateStatus) String

func (x *DeviceCertificateStatus) String() string

type DeviceCertificateStatusList

type DeviceCertificateStatusList struct {
	CreationTimeSeconds *uint32                    `protobuf:"varint,1,opt,name=CreationTimeSeconds" json:"CreationTimeSeconds,omitempty"`
	CertificateStatus   []*DeviceCertificateStatus `protobuf:"bytes,2,rep,name=CertificateStatus" json:"CertificateStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceCertificateStatusList) Descriptor deprecated

func (*DeviceCertificateStatusList) Descriptor() ([]byte, []int)

Deprecated: Use DeviceCertificateStatusList.ProtoReflect.Descriptor instead.

func (*DeviceCertificateStatusList) GetCertificateStatus

func (x *DeviceCertificateStatusList) GetCertificateStatus() []*DeviceCertificateStatus

func (*DeviceCertificateStatusList) GetCreationTimeSeconds

func (x *DeviceCertificateStatusList) GetCreationTimeSeconds() uint32

func (*DeviceCertificateStatusList) ProtoMessage

func (*DeviceCertificateStatusList) ProtoMessage()

func (*DeviceCertificateStatusList) ProtoReflect

func (*DeviceCertificateStatusList) Reset

func (x *DeviceCertificateStatusList) Reset()

func (*DeviceCertificateStatusList) String

func (x *DeviceCertificateStatusList) String() string

type DeviceCertificateStatus_CertificateStatus

type DeviceCertificateStatus_CertificateStatus int32
const (
	DeviceCertificateStatus_VALID   DeviceCertificateStatus_CertificateStatus = 0
	DeviceCertificateStatus_REVOKED DeviceCertificateStatus_CertificateStatus = 1
)

func (DeviceCertificateStatus_CertificateStatus) Descriptor

func (DeviceCertificateStatus_CertificateStatus) Enum

func (DeviceCertificateStatus_CertificateStatus) EnumDescriptor deprecated

func (DeviceCertificateStatus_CertificateStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeviceCertificateStatus_CertificateStatus.Descriptor instead.

func (DeviceCertificateStatus_CertificateStatus) Number

func (DeviceCertificateStatus_CertificateStatus) String

func (DeviceCertificateStatus_CertificateStatus) Type

func (*DeviceCertificateStatus_CertificateStatus) UnmarshalJSON deprecated

Deprecated: Do not use.

type DeviceCertificate_CertificateType

type DeviceCertificate_CertificateType int32
const (
	DeviceCertificate_ROOT         DeviceCertificate_CertificateType = 0
	DeviceCertificate_INTERMEDIATE DeviceCertificate_CertificateType = 1
	DeviceCertificate_USER_DEVICE  DeviceCertificate_CertificateType = 2
	DeviceCertificate_SERVICE      DeviceCertificate_CertificateType = 3
)

func (DeviceCertificate_CertificateType) Descriptor

func (DeviceCertificate_CertificateType) Enum

func (DeviceCertificate_CertificateType) EnumDescriptor deprecated

func (DeviceCertificate_CertificateType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeviceCertificate_CertificateType.Descriptor instead.

func (DeviceCertificate_CertificateType) Number

func (DeviceCertificate_CertificateType) String

func (DeviceCertificate_CertificateType) Type

func (*DeviceCertificate_CertificateType) UnmarshalJSON deprecated

func (x *DeviceCertificate_CertificateType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type EncryptedClientIdentification

type EncryptedClientIdentification struct {
	ServiceId                      *string `protobuf:"bytes,1,req,name=ServiceId" json:"ServiceId,omitempty"`
	ServiceCertificateSerialNumber []byte  `protobuf:"bytes,2,opt,name=ServiceCertificateSerialNumber" json:"ServiceCertificateSerialNumber,omitempty"`
	EncryptedClientId              []byte  `protobuf:"bytes,3,req,name=EncryptedClientId" json:"EncryptedClientId,omitempty"`
	EncryptedClientIdIv            []byte  `protobuf:"bytes,4,req,name=EncryptedClientIdIv" json:"EncryptedClientIdIv,omitempty"`
	EncryptedPrivacyKey            []byte  `protobuf:"bytes,5,req,name=EncryptedPrivacyKey" json:"EncryptedPrivacyKey,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptedClientIdentification) Descriptor deprecated

func (*EncryptedClientIdentification) Descriptor() ([]byte, []int)

Deprecated: Use EncryptedClientIdentification.ProtoReflect.Descriptor instead.

func (*EncryptedClientIdentification) GetEncryptedClientId

func (x *EncryptedClientIdentification) GetEncryptedClientId() []byte

func (*EncryptedClientIdentification) GetEncryptedClientIdIv

func (x *EncryptedClientIdentification) GetEncryptedClientIdIv() []byte

func (*EncryptedClientIdentification) GetEncryptedPrivacyKey

func (x *EncryptedClientIdentification) GetEncryptedPrivacyKey() []byte

func (*EncryptedClientIdentification) GetServiceCertificateSerialNumber

func (x *EncryptedClientIdentification) GetServiceCertificateSerialNumber() []byte

func (*EncryptedClientIdentification) GetServiceId

func (x *EncryptedClientIdentification) GetServiceId() string

func (*EncryptedClientIdentification) ProtoMessage

func (*EncryptedClientIdentification) ProtoMessage()

func (*EncryptedClientIdentification) ProtoReflect

func (*EncryptedClientIdentification) Reset

func (x *EncryptedClientIdentification) Reset()

func (*EncryptedClientIdentification) String

type FileHashes

type FileHashes struct {
	Signer     []byte                  `protobuf:"bytes,1,opt,name=signer" json:"signer,omitempty"`
	Signatures []*FileHashes_Signature `protobuf:"bytes,2,rep,name=signatures" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

vmp support

func (*FileHashes) Descriptor deprecated

func (*FileHashes) Descriptor() ([]byte, []int)

Deprecated: Use FileHashes.ProtoReflect.Descriptor instead.

func (*FileHashes) GetSignatures

func (x *FileHashes) GetSignatures() []*FileHashes_Signature

func (*FileHashes) GetSigner

func (x *FileHashes) GetSigner() []byte

func (*FileHashes) ProtoMessage

func (*FileHashes) ProtoMessage()

func (*FileHashes) ProtoReflect

func (x *FileHashes) ProtoReflect() protoreflect.Message

func (*FileHashes) Reset

func (x *FileHashes) Reset()

func (*FileHashes) String

func (x *FileHashes) String() string

type FileHashes_Signature

type FileHashes_Signature struct {
	Filename    *string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"`
	TestSigning *bool   `protobuf:"varint,2,opt,name=test_signing,json=testSigning" json:"test_signing,omitempty"` //0 - release, 1 - testing
	SHA512Hash  []byte  `protobuf:"bytes,3,opt,name=SHA512Hash" json:"SHA512Hash,omitempty"`
	MainExe     *bool   `protobuf:"varint,4,opt,name=main_exe,json=mainExe" json:"main_exe,omitempty"` //0 for dlls, 1 for exe, this is field 3 in file
	Signature   []byte  `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*FileHashes_Signature) Descriptor deprecated

func (*FileHashes_Signature) Descriptor() ([]byte, []int)

Deprecated: Use FileHashes_Signature.ProtoReflect.Descriptor instead.

func (*FileHashes_Signature) GetFilename

func (x *FileHashes_Signature) GetFilename() string

func (*FileHashes_Signature) GetMainExe

func (x *FileHashes_Signature) GetMainExe() bool

func (*FileHashes_Signature) GetSHA512Hash

func (x *FileHashes_Signature) GetSHA512Hash() []byte

func (*FileHashes_Signature) GetSignature

func (x *FileHashes_Signature) GetSignature() []byte

func (*FileHashes_Signature) GetTestSigning

func (x *FileHashes_Signature) GetTestSigning() bool

func (*FileHashes_Signature) ProtoMessage

func (*FileHashes_Signature) ProtoMessage()

func (*FileHashes_Signature) ProtoReflect

func (x *FileHashes_Signature) ProtoReflect() protoreflect.Message

func (*FileHashes_Signature) Reset

func (x *FileHashes_Signature) Reset()

func (*FileHashes_Signature) String

func (x *FileHashes_Signature) String() string

type Key

type Key struct {
	ID    []byte
	Type  License_KeyContainer_KeyType
	Value []byte
}

type License

type License struct {
	Id                        *LicenseIdentification  `protobuf:"bytes,1,opt,name=Id" json:"Id,omitempty"`
	XPolicy                   *License_Policy         `protobuf:"bytes,2,opt,name=_Policy,json=Policy" json:"_Policy,omitempty"` // duped names, etc
	Key                       []*License_KeyContainer `protobuf:"bytes,3,rep,name=Key" json:"Key,omitempty"`
	LicenseStartTime          *uint32                 `protobuf:"varint,4,opt,name=LicenseStartTime" json:"LicenseStartTime,omitempty"`
	RemoteAttestationVerified *uint32                 `protobuf:"varint,5,opt,name=RemoteAttestationVerified" json:"RemoteAttestationVerified,omitempty"` // bool?
	ProviderClientToken       []byte                  `protobuf:"bytes,6,opt,name=ProviderClientToken" json:"ProviderClientToken,omitempty"`
	// there might be more, check with newer versions (I see field 7-8 in a lic)
	// this appeared in latest x86:
	ProtectionScheme *uint32 `protobuf:"varint,7,opt,name=ProtectionScheme" json:"ProtectionScheme,omitempty"` // type unconfirmed fully, but it's likely as WidevineCencHeader describesit (fourcc)
	// contains filtered or unexported fields
}

func (*License) Descriptor deprecated

func (*License) Descriptor() ([]byte, []int)

Deprecated: Use License.ProtoReflect.Descriptor instead.

func (*License) GetId

func (x *License) GetId() *LicenseIdentification

func (*License) GetKey

func (x *License) GetKey() []*License_KeyContainer

func (*License) GetLicenseStartTime

func (x *License) GetLicenseStartTime() uint32

func (*License) GetProtectionScheme

func (x *License) GetProtectionScheme() uint32

func (*License) GetProviderClientToken

func (x *License) GetProviderClientToken() []byte

func (*License) GetRemoteAttestationVerified

func (x *License) GetRemoteAttestationVerified() uint32

func (*License) GetXPolicy

func (x *License) GetXPolicy() *License_Policy

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) ProtoReflect

func (x *License) ProtoReflect() protoreflect.Message

func (*License) Reset

func (x *License) Reset()

func (*License) String

func (x *License) String() string

type LicenseError

type LicenseError struct {

	//LicenseRequest.RequestType ErrorCode; // clang mismatch
	ErrorCode *LicenseError_Error `protobuf:"varint,1,opt,name=ErrorCode,enum=LicenseError_Error" json:"ErrorCode,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseError) Descriptor deprecated

func (*LicenseError) Descriptor() ([]byte, []int)

Deprecated: Use LicenseError.ProtoReflect.Descriptor instead.

func (*LicenseError) GetErrorCode

func (x *LicenseError) GetErrorCode() LicenseError_Error

func (*LicenseError) ProtoMessage

func (*LicenseError) ProtoMessage()

func (*LicenseError) ProtoReflect

func (x *LicenseError) ProtoReflect() protoreflect.Message

func (*LicenseError) Reset

func (x *LicenseError) Reset()

func (*LicenseError) String

func (x *LicenseError) String() string

type LicenseError_Error

type LicenseError_Error int32
const (
	LicenseError_INVALID_DEVICE_CERTIFICATE LicenseError_Error = 1
	LicenseError_REVOKED_DEVICE_CERTIFICATE LicenseError_Error = 2
	LicenseError_SERVICE_UNAVAILABLE        LicenseError_Error = 3
)

func (LicenseError_Error) Descriptor

func (LicenseError_Error) Enum

func (LicenseError_Error) EnumDescriptor deprecated

func (LicenseError_Error) EnumDescriptor() ([]byte, []int)

Deprecated: Use LicenseError_Error.Descriptor instead.

func (LicenseError_Error) Number

func (LicenseError_Error) String

func (x LicenseError_Error) String() string

func (LicenseError_Error) Type

func (*LicenseError_Error) UnmarshalJSON deprecated

func (x *LicenseError_Error) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type LicenseIdentification

type LicenseIdentification struct {
	RequestId            []byte       `protobuf:"bytes,1,opt,name=RequestId" json:"RequestId,omitempty"`
	SessionId            []byte       `protobuf:"bytes,2,opt,name=SessionId" json:"SessionId,omitempty"`
	PurchaseId           []byte       `protobuf:"bytes,3,opt,name=PurchaseId" json:"PurchaseId,omitempty"`
	Type                 *LicenseType `protobuf:"varint,4,opt,name=Type,enum=LicenseType" json:"Type,omitempty"`
	Version              *uint32      `protobuf:"varint,5,opt,name=Version" json:"Version,omitempty"`
	ProviderSessionToken []byte       `protobuf:"bytes,6,opt,name=ProviderSessionToken" json:"ProviderSessionToken,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseIdentification) Descriptor deprecated

func (*LicenseIdentification) Descriptor() ([]byte, []int)

Deprecated: Use LicenseIdentification.ProtoReflect.Descriptor instead.

func (*LicenseIdentification) GetProviderSessionToken

func (x *LicenseIdentification) GetProviderSessionToken() []byte

func (*LicenseIdentification) GetPurchaseId

func (x *LicenseIdentification) GetPurchaseId() []byte

func (*LicenseIdentification) GetRequestId

func (x *LicenseIdentification) GetRequestId() []byte

func (*LicenseIdentification) GetSessionId

func (x *LicenseIdentification) GetSessionId() []byte

func (*LicenseIdentification) GetType

func (x *LicenseIdentification) GetType() LicenseType

func (*LicenseIdentification) GetVersion

func (x *LicenseIdentification) GetVersion() uint32

func (*LicenseIdentification) ProtoMessage

func (*LicenseIdentification) ProtoMessage()

func (*LicenseIdentification) ProtoReflect

func (x *LicenseIdentification) ProtoReflect() protoreflect.Message

func (*LicenseIdentification) Reset

func (x *LicenseIdentification) Reset()

func (*LicenseIdentification) String

func (x *LicenseIdentification) String() string

type LicenseRequest

type LicenseRequest struct {
	ClientId                  *ClientIdentification                 `protobuf:"bytes,1,opt,name=ClientId" json:"ClientId,omitempty"`
	ContentId                 *LicenseRequest_ContentIdentification `protobuf:"bytes,2,opt,name=ContentId" json:"ContentId,omitempty"`
	Type                      *LicenseRequest_RequestType           `protobuf:"varint,3,opt,name=Type,enum=LicenseRequest_RequestType" json:"Type,omitempty"`
	RequestTime               *uint32                               `protobuf:"varint,4,opt,name=RequestTime" json:"RequestTime,omitempty"`
	KeyControlNonceDeprecated []byte                                `protobuf:"bytes,5,opt,name=KeyControlNonceDeprecated" json:"KeyControlNonceDeprecated,omitempty"`
	ProtocolVersion           *ProtocolVersion                      `protobuf:"varint,6,opt,name=ProtocolVersion,enum=ProtocolVersion" json:"ProtocolVersion,omitempty"` // lacking symbols for this
	KeyControlNonce           *uint32                               `protobuf:"varint,7,opt,name=KeyControlNonce" json:"KeyControlNonce,omitempty"`
	EncryptedClientId         *EncryptedClientIdentification        `protobuf:"bytes,8,opt,name=EncryptedClientId" json:"EncryptedClientId,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseRequest) Descriptor deprecated

func (*LicenseRequest) Descriptor() ([]byte, []int)

Deprecated: Use LicenseRequest.ProtoReflect.Descriptor instead.

func (*LicenseRequest) GetClientId

func (x *LicenseRequest) GetClientId() *ClientIdentification

func (*LicenseRequest) GetContentId

func (*LicenseRequest) GetEncryptedClientId

func (x *LicenseRequest) GetEncryptedClientId() *EncryptedClientIdentification

func (*LicenseRequest) GetKeyControlNonce

func (x *LicenseRequest) GetKeyControlNonce() uint32

func (*LicenseRequest) GetKeyControlNonceDeprecated

func (x *LicenseRequest) GetKeyControlNonceDeprecated() []byte

func (*LicenseRequest) GetProtocolVersion

func (x *LicenseRequest) GetProtocolVersion() ProtocolVersion

func (*LicenseRequest) GetRequestTime

func (x *LicenseRequest) GetRequestTime() uint32

func (*LicenseRequest) GetType

func (*LicenseRequest) ProtoMessage

func (*LicenseRequest) ProtoMessage()

func (*LicenseRequest) ProtoReflect

func (x *LicenseRequest) ProtoReflect() protoreflect.Message

func (*LicenseRequest) Reset

func (x *LicenseRequest) Reset()

func (*LicenseRequest) String

func (x *LicenseRequest) String() string

type LicenseRequestRaw

type LicenseRequestRaw struct {
	ClientId                  *ClientIdentification                    `protobuf:"bytes,1,opt,name=ClientId" json:"ClientId,omitempty"`
	ContentId                 *LicenseRequestRaw_ContentIdentification `protobuf:"bytes,2,opt,name=ContentId" json:"ContentId,omitempty"`
	Type                      *LicenseRequestRaw_RequestType           `protobuf:"varint,3,opt,name=Type,enum=LicenseRequestRaw_RequestType" json:"Type,omitempty"`
	RequestTime               *uint32                                  `protobuf:"varint,4,opt,name=RequestTime" json:"RequestTime,omitempty"`
	KeyControlNonceDeprecated []byte                                   `protobuf:"bytes,5,opt,name=KeyControlNonceDeprecated" json:"KeyControlNonceDeprecated,omitempty"`
	ProtocolVersion           *ProtocolVersion                         `protobuf:"varint,6,opt,name=ProtocolVersion,enum=ProtocolVersion" json:"ProtocolVersion,omitempty"` // lacking symbols for this
	KeyControlNonce           *uint32                                  `protobuf:"varint,7,opt,name=KeyControlNonce" json:"KeyControlNonce,omitempty"`
	EncryptedClientId         *EncryptedClientIdentification           `protobuf:"bytes,8,opt,name=EncryptedClientId" json:"EncryptedClientId,omitempty"`
	// contains filtered or unexported fields
}

raw pssh hack

func (*LicenseRequestRaw) Descriptor deprecated

func (*LicenseRequestRaw) Descriptor() ([]byte, []int)

Deprecated: Use LicenseRequestRaw.ProtoReflect.Descriptor instead.

func (*LicenseRequestRaw) GetClientId

func (x *LicenseRequestRaw) GetClientId() *ClientIdentification

func (*LicenseRequestRaw) GetContentId

func (*LicenseRequestRaw) GetEncryptedClientId

func (x *LicenseRequestRaw) GetEncryptedClientId() *EncryptedClientIdentification

func (*LicenseRequestRaw) GetKeyControlNonce

func (x *LicenseRequestRaw) GetKeyControlNonce() uint32

func (*LicenseRequestRaw) GetKeyControlNonceDeprecated

func (x *LicenseRequestRaw) GetKeyControlNonceDeprecated() []byte

func (*LicenseRequestRaw) GetProtocolVersion

func (x *LicenseRequestRaw) GetProtocolVersion() ProtocolVersion

func (*LicenseRequestRaw) GetRequestTime

func (x *LicenseRequestRaw) GetRequestTime() uint32

func (*LicenseRequestRaw) GetType

func (*LicenseRequestRaw) ProtoMessage

func (*LicenseRequestRaw) ProtoMessage()

func (*LicenseRequestRaw) ProtoReflect

func (x *LicenseRequestRaw) ProtoReflect() protoreflect.Message

func (*LicenseRequestRaw) Reset

func (x *LicenseRequestRaw) Reset()

func (*LicenseRequestRaw) String

func (x *LicenseRequestRaw) String() string

type LicenseRequestRaw_ContentIdentification

type LicenseRequestRaw_ContentIdentification struct {
	CencId  *LicenseRequestRaw_ContentIdentification_CENC            `protobuf:"bytes,1,opt,name=CencId" json:"CencId,omitempty"`
	WebmId  *LicenseRequestRaw_ContentIdentification_WebM            `protobuf:"bytes,2,opt,name=WebmId" json:"WebmId,omitempty"`
	License *LicenseRequestRaw_ContentIdentification_ExistingLicense `protobuf:"bytes,3,opt,name=License" json:"License,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseRequestRaw_ContentIdentification) Descriptor deprecated

func (*LicenseRequestRaw_ContentIdentification) Descriptor() ([]byte, []int)

Deprecated: Use LicenseRequestRaw_ContentIdentification.ProtoReflect.Descriptor instead.

func (*LicenseRequestRaw_ContentIdentification) GetCencId

func (*LicenseRequestRaw_ContentIdentification) GetLicense

func (*LicenseRequestRaw_ContentIdentification) GetWebmId

func (*LicenseRequestRaw_ContentIdentification) ProtoMessage

func (*LicenseRequestRaw_ContentIdentification) ProtoReflect

func (*LicenseRequestRaw_ContentIdentification) Reset

func (*LicenseRequestRaw_ContentIdentification) String

type LicenseRequestRaw_ContentIdentification_CENC

type LicenseRequestRaw_ContentIdentification_CENC struct {
	Pssh []byte `protobuf:"bytes,1,opt,name=Pssh" json:"Pssh,omitempty"` // the client's definition is opaque, it doesn't care about the contents, but the PSSH has a clear definition that is understood and requested by the server, thus I'll replace it with:
	//optional WidevineCencHeader Pssh = 1;
	LicenseType *LicenseType `protobuf:"varint,2,opt,name=LicenseType,enum=LicenseType" json:"LicenseType,omitempty"` // unfortunately the LicenseType symbols are not present, acceptable value seems to only be 1 (is this persist/don't persist? look into it!)
	RequestId   []byte       `protobuf:"bytes,3,opt,name=RequestId" json:"RequestId,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseRequestRaw_ContentIdentification_CENC) Descriptor deprecated

Deprecated: Use LicenseRequestRaw_ContentIdentification_CENC.ProtoReflect.Descriptor instead.

func (*LicenseRequestRaw_ContentIdentification_CENC) GetLicenseType

func (*LicenseRequestRaw_ContentIdentification_CENC) GetPssh

func (*LicenseRequestRaw_ContentIdentification_CENC) GetRequestId

func (*LicenseRequestRaw_ContentIdentification_CENC) ProtoMessage

func (*LicenseRequestRaw_ContentIdentification_CENC) ProtoReflect

func (*LicenseRequestRaw_ContentIdentification_CENC) Reset

func (*LicenseRequestRaw_ContentIdentification_CENC) String

type LicenseRequestRaw_ContentIdentification_ExistingLicense

type LicenseRequestRaw_ContentIdentification_ExistingLicense struct {
	LicenseId              *LicenseIdentification `protobuf:"bytes,1,opt,name=LicenseId" json:"LicenseId,omitempty"`
	SecondsSinceStarted    *uint32                `protobuf:"varint,2,opt,name=SecondsSinceStarted" json:"SecondsSinceStarted,omitempty"`
	SecondsSinceLastPlayed *uint32                `protobuf:"varint,3,opt,name=SecondsSinceLastPlayed" json:"SecondsSinceLastPlayed,omitempty"`
	SessionUsageTableEntry []byte                 `protobuf:"bytes,4,opt,name=SessionUsageTableEntry" json:"SessionUsageTableEntry,omitempty"` // interesting! try to figure out the connection between the usage table blob and KCB!
	// contains filtered or unexported fields
}

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) Descriptor deprecated

Deprecated: Use LicenseRequestRaw_ContentIdentification_ExistingLicense.ProtoReflect.Descriptor instead.

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) GetLicenseId

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) GetSecondsSinceLastPlayed

func (x *LicenseRequestRaw_ContentIdentification_ExistingLicense) GetSecondsSinceLastPlayed() uint32

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) GetSecondsSinceStarted

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) GetSessionUsageTableEntry

func (x *LicenseRequestRaw_ContentIdentification_ExistingLicense) GetSessionUsageTableEntry() []byte

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) ProtoMessage

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) ProtoReflect

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) Reset

func (*LicenseRequestRaw_ContentIdentification_ExistingLicense) String

type LicenseRequestRaw_ContentIdentification_WebM

type LicenseRequestRaw_ContentIdentification_WebM struct {
	Header      []byte       `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` // identical to CENC, aside from PSSH and the parent field number used
	LicenseType *LicenseType `protobuf:"varint,2,opt,name=LicenseType,enum=LicenseType" json:"LicenseType,omitempty"`
	RequestId   []byte       `protobuf:"bytes,3,opt,name=RequestId" json:"RequestId,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseRequestRaw_ContentIdentification_WebM) Descriptor deprecated

Deprecated: Use LicenseRequestRaw_ContentIdentification_WebM.ProtoReflect.Descriptor instead.

func (*LicenseRequestRaw_ContentIdentification_WebM) GetHeader

func (*LicenseRequestRaw_ContentIdentification_WebM) GetLicenseType

func (*LicenseRequestRaw_ContentIdentification_WebM) GetRequestId

func (*LicenseRequestRaw_ContentIdentification_WebM) ProtoMessage

func (*LicenseRequestRaw_ContentIdentification_WebM) ProtoReflect

func (*LicenseRequestRaw_ContentIdentification_WebM) Reset

func (*LicenseRequestRaw_ContentIdentification_WebM) String

type LicenseRequestRaw_RequestType

type LicenseRequestRaw_RequestType int32
const (
	LicenseRequestRaw_NEW     LicenseRequestRaw_RequestType = 1
	LicenseRequestRaw_RENEWAL LicenseRequestRaw_RequestType = 2
	LicenseRequestRaw_RELEASE LicenseRequestRaw_RequestType = 3
)

func (LicenseRequestRaw_RequestType) Descriptor

func (LicenseRequestRaw_RequestType) Enum

func (LicenseRequestRaw_RequestType) EnumDescriptor deprecated

func (LicenseRequestRaw_RequestType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LicenseRequestRaw_RequestType.Descriptor instead.

func (LicenseRequestRaw_RequestType) Number

func (LicenseRequestRaw_RequestType) String

func (LicenseRequestRaw_RequestType) Type

func (*LicenseRequestRaw_RequestType) UnmarshalJSON deprecated

func (x *LicenseRequestRaw_RequestType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type LicenseRequest_ContentIdentification

type LicenseRequest_ContentIdentification struct {
	CencId  *LicenseRequest_ContentIdentification_CENC            `protobuf:"bytes,1,opt,name=CencId" json:"CencId,omitempty"`
	WebmId  *LicenseRequest_ContentIdentification_WebM            `protobuf:"bytes,2,opt,name=WebmId" json:"WebmId,omitempty"`
	License *LicenseRequest_ContentIdentification_ExistingLicense `protobuf:"bytes,3,opt,name=License" json:"License,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseRequest_ContentIdentification) Descriptor deprecated

func (*LicenseRequest_ContentIdentification) Descriptor() ([]byte, []int)

Deprecated: Use LicenseRequest_ContentIdentification.ProtoReflect.Descriptor instead.

func (*LicenseRequest_ContentIdentification) GetCencId

func (*LicenseRequest_ContentIdentification) GetLicense

func (*LicenseRequest_ContentIdentification) GetWebmId

func (*LicenseRequest_ContentIdentification) ProtoMessage

func (*LicenseRequest_ContentIdentification) ProtoMessage()

func (*LicenseRequest_ContentIdentification) ProtoReflect

func (*LicenseRequest_ContentIdentification) Reset

func (*LicenseRequest_ContentIdentification) String

type LicenseRequest_ContentIdentification_CENC

type LicenseRequest_ContentIdentification_CENC struct {

	//optional bytes Pssh = 1; // the client's definition is opaque, it doesn't care about the contents, but the PSSH has a clear definition that is understood and requested by the server, thus I'll replace it with:
	Pssh        *WidevineCencHeader `protobuf:"bytes,1,opt,name=Pssh" json:"Pssh,omitempty"`
	LicenseType *LicenseType        `protobuf:"varint,2,opt,name=LicenseType,enum=LicenseType" json:"LicenseType,omitempty"` // unfortunately the LicenseType symbols are not present, acceptable value seems to only be 1 (is this persist/don't persist? look into it!)
	RequestId   []byte              `protobuf:"bytes,3,opt,name=RequestId" json:"RequestId,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseRequest_ContentIdentification_CENC) Descriptor deprecated

func (*LicenseRequest_ContentIdentification_CENC) Descriptor() ([]byte, []int)

Deprecated: Use LicenseRequest_ContentIdentification_CENC.ProtoReflect.Descriptor instead.

func (*LicenseRequest_ContentIdentification_CENC) GetLicenseType

func (*LicenseRequest_ContentIdentification_CENC) GetPssh

func (*LicenseRequest_ContentIdentification_CENC) GetRequestId

func (x *LicenseRequest_ContentIdentification_CENC) GetRequestId() []byte

func (*LicenseRequest_ContentIdentification_CENC) ProtoMessage

func (*LicenseRequest_ContentIdentification_CENC) ProtoReflect

func (*LicenseRequest_ContentIdentification_CENC) Reset

func (*LicenseRequest_ContentIdentification_CENC) String

type LicenseRequest_ContentIdentification_ExistingLicense

type LicenseRequest_ContentIdentification_ExistingLicense struct {
	LicenseId              *LicenseIdentification `protobuf:"bytes,1,opt,name=LicenseId" json:"LicenseId,omitempty"`
	SecondsSinceStarted    *uint32                `protobuf:"varint,2,opt,name=SecondsSinceStarted" json:"SecondsSinceStarted,omitempty"`
	SecondsSinceLastPlayed *uint32                `protobuf:"varint,3,opt,name=SecondsSinceLastPlayed" json:"SecondsSinceLastPlayed,omitempty"`
	SessionUsageTableEntry []byte                 `protobuf:"bytes,4,opt,name=SessionUsageTableEntry" json:"SessionUsageTableEntry,omitempty"` // interesting! try to figure out the connection between the usage table blob and KCB!
	// contains filtered or unexported fields
}

func (*LicenseRequest_ContentIdentification_ExistingLicense) Descriptor deprecated

Deprecated: Use LicenseRequest_ContentIdentification_ExistingLicense.ProtoReflect.Descriptor instead.

func (*LicenseRequest_ContentIdentification_ExistingLicense) GetLicenseId

func (*LicenseRequest_ContentIdentification_ExistingLicense) GetSecondsSinceLastPlayed

func (x *LicenseRequest_ContentIdentification_ExistingLicense) GetSecondsSinceLastPlayed() uint32

func (*LicenseRequest_ContentIdentification_ExistingLicense) GetSecondsSinceStarted

func (*LicenseRequest_ContentIdentification_ExistingLicense) GetSessionUsageTableEntry

func (x *LicenseRequest_ContentIdentification_ExistingLicense) GetSessionUsageTableEntry() []byte

func (*LicenseRequest_ContentIdentification_ExistingLicense) ProtoMessage

func (*LicenseRequest_ContentIdentification_ExistingLicense) ProtoReflect

func (*LicenseRequest_ContentIdentification_ExistingLicense) Reset

func (*LicenseRequest_ContentIdentification_ExistingLicense) String

type LicenseRequest_ContentIdentification_WebM

type LicenseRequest_ContentIdentification_WebM struct {
	Header      []byte       `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` // identical to CENC, aside from PSSH and the parent field number used
	LicenseType *LicenseType `protobuf:"varint,2,opt,name=LicenseType,enum=LicenseType" json:"LicenseType,omitempty"`
	RequestId   []byte       `protobuf:"bytes,3,opt,name=RequestId" json:"RequestId,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseRequest_ContentIdentification_WebM) Descriptor deprecated

func (*LicenseRequest_ContentIdentification_WebM) Descriptor() ([]byte, []int)

Deprecated: Use LicenseRequest_ContentIdentification_WebM.ProtoReflect.Descriptor instead.

func (*LicenseRequest_ContentIdentification_WebM) GetHeader

func (*LicenseRequest_ContentIdentification_WebM) GetLicenseType

func (*LicenseRequest_ContentIdentification_WebM) GetRequestId

func (x *LicenseRequest_ContentIdentification_WebM) GetRequestId() []byte

func (*LicenseRequest_ContentIdentification_WebM) ProtoMessage

func (*LicenseRequest_ContentIdentification_WebM) ProtoReflect

func (*LicenseRequest_ContentIdentification_WebM) Reset

func (*LicenseRequest_ContentIdentification_WebM) String

type LicenseRequest_RequestType

type LicenseRequest_RequestType int32
const (
	LicenseRequest_NEW     LicenseRequest_RequestType = 1
	LicenseRequest_RENEWAL LicenseRequest_RequestType = 2
	LicenseRequest_RELEASE LicenseRequest_RequestType = 3
)

func (LicenseRequest_RequestType) Descriptor

func (LicenseRequest_RequestType) Enum

func (LicenseRequest_RequestType) EnumDescriptor deprecated

func (LicenseRequest_RequestType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LicenseRequest_RequestType.Descriptor instead.

func (LicenseRequest_RequestType) Number

func (LicenseRequest_RequestType) String

func (LicenseRequest_RequestType) Type

func (*LicenseRequest_RequestType) UnmarshalJSON deprecated

func (x *LicenseRequest_RequestType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type LicenseType

type LicenseType int32

todo: fill (for this top-level type, it might be impossible/difficult)

const (
	LicenseType_ZERO    LicenseType = 0
	LicenseType_DEFAULT LicenseType = 1 // 1 is STREAMING/temporary license; on recent versions may go up to 3 (latest x86); it might be persist/don't persist type, unconfirmed
	LicenseType_OFFLINE LicenseType = 2
)

func (LicenseType) Descriptor

func (LicenseType) Enum

func (x LicenseType) Enum() *LicenseType

func (LicenseType) EnumDescriptor deprecated

func (LicenseType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LicenseType.Descriptor instead.

func (LicenseType) Number

func (x LicenseType) Number() protoreflect.EnumNumber

func (LicenseType) String

func (x LicenseType) String() string

func (LicenseType) Type

func (*LicenseType) UnmarshalJSON deprecated

func (x *LicenseType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type License_KeyContainer

type License_KeyContainer struct {
	Id                             []byte                                              `protobuf:"bytes,1,opt,name=Id" json:"Id,omitempty"`
	Iv                             []byte                                              `protobuf:"bytes,2,opt,name=Iv" json:"Iv,omitempty"`
	Key                            []byte                                              `protobuf:"bytes,3,opt,name=Key" json:"Key,omitempty"`
	Type                           *License_KeyContainer_KeyType                       `protobuf:"varint,4,opt,name=Type,enum=License_KeyContainer_KeyType" json:"Type,omitempty"`
	Level                          *License_KeyContainer_SecurityLevel                 `protobuf:"varint,5,opt,name=Level,enum=License_KeyContainer_SecurityLevel" json:"Level,omitempty"`
	RequiredProtection             *License_KeyContainer_OutputProtection              `protobuf:"bytes,6,opt,name=RequiredProtection" json:"RequiredProtection,omitempty"`
	RequestedProtection            *License_KeyContainer_OutputProtection              `protobuf:"bytes,7,opt,name=RequestedProtection" json:"RequestedProtection,omitempty"`
	XKeyControl                    *License_KeyContainer_KeyControl                    `protobuf:"bytes,8,opt,name=_KeyControl,json=KeyControl" json:"_KeyControl,omitempty"` // duped names, etc
	XOperatorSessionKeyPermissions *License_KeyContainer_OperatorSessionKeyPermissions ``                                                                                     // duped names, etc
	/* 141-byte string literal not displayed */
	VideoResolutionConstraints []*License_KeyContainer_VideoResolutionConstraint `protobuf:"bytes,10,rep,name=VideoResolutionConstraints" json:"VideoResolutionConstraints,omitempty"`
	// contains filtered or unexported fields
}

func (*License_KeyContainer) Descriptor deprecated

func (*License_KeyContainer) Descriptor() ([]byte, []int)

Deprecated: Use License_KeyContainer.ProtoReflect.Descriptor instead.

func (*License_KeyContainer) GetId

func (x *License_KeyContainer) GetId() []byte

func (*License_KeyContainer) GetIv

func (x *License_KeyContainer) GetIv() []byte

func (*License_KeyContainer) GetKey

func (x *License_KeyContainer) GetKey() []byte

func (*License_KeyContainer) GetLevel

func (*License_KeyContainer) GetRequestedProtection

func (x *License_KeyContainer) GetRequestedProtection() *License_KeyContainer_OutputProtection

func (*License_KeyContainer) GetRequiredProtection

func (x *License_KeyContainer) GetRequiredProtection() *License_KeyContainer_OutputProtection

func (*License_KeyContainer) GetType

func (*License_KeyContainer) GetVideoResolutionConstraints

func (x *License_KeyContainer) GetVideoResolutionConstraints() []*License_KeyContainer_VideoResolutionConstraint

func (*License_KeyContainer) GetXKeyControl

func (*License_KeyContainer) GetXOperatorSessionKeyPermissions

func (x *License_KeyContainer) GetXOperatorSessionKeyPermissions() *License_KeyContainer_OperatorSessionKeyPermissions

func (*License_KeyContainer) ProtoMessage

func (*License_KeyContainer) ProtoMessage()

func (*License_KeyContainer) ProtoReflect

func (x *License_KeyContainer) ProtoReflect() protoreflect.Message

func (*License_KeyContainer) Reset

func (x *License_KeyContainer) Reset()

func (*License_KeyContainer) String

func (x *License_KeyContainer) String() string

type License_KeyContainer_KeyControl

type License_KeyContainer_KeyControl struct {
	KeyControlBlock []byte `protobuf:"bytes,1,req,name=KeyControlBlock" json:"KeyControlBlock,omitempty"` // what is this?
	Iv              []byte `protobuf:"bytes,2,req,name=Iv" json:"Iv,omitempty"`
	// contains filtered or unexported fields
}

func (*License_KeyContainer_KeyControl) Descriptor deprecated

func (*License_KeyContainer_KeyControl) Descriptor() ([]byte, []int)

Deprecated: Use License_KeyContainer_KeyControl.ProtoReflect.Descriptor instead.

func (*License_KeyContainer_KeyControl) GetIv

func (*License_KeyContainer_KeyControl) GetKeyControlBlock

func (x *License_KeyContainer_KeyControl) GetKeyControlBlock() []byte

func (*License_KeyContainer_KeyControl) ProtoMessage

func (*License_KeyContainer_KeyControl) ProtoMessage()

func (*License_KeyContainer_KeyControl) ProtoReflect

func (*License_KeyContainer_KeyControl) Reset

func (*License_KeyContainer_KeyControl) String

type License_KeyContainer_KeyType

type License_KeyContainer_KeyType int32
const (
	License_KeyContainer_SIGNING          License_KeyContainer_KeyType = 1
	License_KeyContainer_CONTENT          License_KeyContainer_KeyType = 2
	License_KeyContainer_KEY_CONTROL      License_KeyContainer_KeyType = 3
	License_KeyContainer_OPERATOR_SESSION License_KeyContainer_KeyType = 4
)

func (License_KeyContainer_KeyType) Descriptor

func (License_KeyContainer_KeyType) Enum

func (License_KeyContainer_KeyType) EnumDescriptor deprecated

func (License_KeyContainer_KeyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use License_KeyContainer_KeyType.Descriptor instead.

func (License_KeyContainer_KeyType) Number

func (License_KeyContainer_KeyType) String

func (License_KeyContainer_KeyType) Type

func (*License_KeyContainer_KeyType) UnmarshalJSON deprecated

func (x *License_KeyContainer_KeyType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type License_KeyContainer_OperatorSessionKeyPermissions

type License_KeyContainer_OperatorSessionKeyPermissions struct {
	AllowEncrypt         *uint32 `protobuf:"varint,1,opt,name=AllowEncrypt" json:"AllowEncrypt,omitempty"`
	AllowDecrypt         *uint32 `protobuf:"varint,2,opt,name=AllowDecrypt" json:"AllowDecrypt,omitempty"`
	AllowSign            *uint32 `protobuf:"varint,3,opt,name=AllowSign" json:"AllowSign,omitempty"`
	AllowSignatureVerify *uint32 `protobuf:"varint,4,opt,name=AllowSignatureVerify" json:"AllowSignatureVerify,omitempty"`
	// contains filtered or unexported fields
}

func (*License_KeyContainer_OperatorSessionKeyPermissions) Descriptor deprecated

Deprecated: Use License_KeyContainer_OperatorSessionKeyPermissions.ProtoReflect.Descriptor instead.

func (*License_KeyContainer_OperatorSessionKeyPermissions) GetAllowDecrypt

func (*License_KeyContainer_OperatorSessionKeyPermissions) GetAllowEncrypt

func (*License_KeyContainer_OperatorSessionKeyPermissions) GetAllowSign

func (*License_KeyContainer_OperatorSessionKeyPermissions) GetAllowSignatureVerify

func (x *License_KeyContainer_OperatorSessionKeyPermissions) GetAllowSignatureVerify() uint32

func (*License_KeyContainer_OperatorSessionKeyPermissions) ProtoMessage

func (*License_KeyContainer_OperatorSessionKeyPermissions) ProtoReflect

func (*License_KeyContainer_OperatorSessionKeyPermissions) Reset

func (*License_KeyContainer_OperatorSessionKeyPermissions) String

type License_KeyContainer_OutputProtection

type License_KeyContainer_OutputProtection struct {
	Hdcp      *ClientIdentification_ClientCapabilities_HdcpVersion `protobuf:"varint,1,opt,name=Hdcp,enum=ClientIdentification_ClientCapabilities_HdcpVersion" json:"Hdcp,omitempty"` // it's most likely a copy of Hdcp version available here, but compiler optimized it away
	CgmsFlags *License_KeyContainer_OutputProtection_CGMS          `protobuf:"varint,2,opt,name=CgmsFlags,enum=License_KeyContainer_OutputProtection_CGMS" json:"CgmsFlags,omitempty"`
	// contains filtered or unexported fields
}

func (*License_KeyContainer_OutputProtection) Descriptor deprecated

func (*License_KeyContainer_OutputProtection) Descriptor() ([]byte, []int)

Deprecated: Use License_KeyContainer_OutputProtection.ProtoReflect.Descriptor instead.

func (*License_KeyContainer_OutputProtection) GetCgmsFlags

func (*License_KeyContainer_OutputProtection) GetHdcp

func (*License_KeyContainer_OutputProtection) ProtoMessage

func (*License_KeyContainer_OutputProtection) ProtoMessage()

func (*License_KeyContainer_OutputProtection) ProtoReflect

func (*License_KeyContainer_OutputProtection) Reset

func (*License_KeyContainer_OutputProtection) String

type License_KeyContainer_OutputProtection_CGMS

type License_KeyContainer_OutputProtection_CGMS int32
const (
	License_KeyContainer_OutputProtection_COPY_FREE  License_KeyContainer_OutputProtection_CGMS = 0
	License_KeyContainer_OutputProtection_COPY_ONCE  License_KeyContainer_OutputProtection_CGMS = 2
	License_KeyContainer_OutputProtection_COPY_NEVER License_KeyContainer_OutputProtection_CGMS = 3
	License_KeyContainer_OutputProtection_CGMS_NONE  License_KeyContainer_OutputProtection_CGMS = 42 // PC default!
)

func (License_KeyContainer_OutputProtection_CGMS) Descriptor

func (License_KeyContainer_OutputProtection_CGMS) Enum

func (License_KeyContainer_OutputProtection_CGMS) EnumDescriptor deprecated

func (License_KeyContainer_OutputProtection_CGMS) EnumDescriptor() ([]byte, []int)

Deprecated: Use License_KeyContainer_OutputProtection_CGMS.Descriptor instead.

func (License_KeyContainer_OutputProtection_CGMS) Number

func (License_KeyContainer_OutputProtection_CGMS) String

func (License_KeyContainer_OutputProtection_CGMS) Type

func (*License_KeyContainer_OutputProtection_CGMS) UnmarshalJSON deprecated

Deprecated: Do not use.

type License_KeyContainer_SecurityLevel

type License_KeyContainer_SecurityLevel int32
const (
	License_KeyContainer_SW_SECURE_CRYPTO License_KeyContainer_SecurityLevel = 1
	License_KeyContainer_SW_SECURE_DECODE License_KeyContainer_SecurityLevel = 2
	License_KeyContainer_HW_SECURE_CRYPTO License_KeyContainer_SecurityLevel = 3
	License_KeyContainer_HW_SECURE_DECODE License_KeyContainer_SecurityLevel = 4
	License_KeyContainer_HW_SECURE_ALL    License_KeyContainer_SecurityLevel = 5
)

func (License_KeyContainer_SecurityLevel) Descriptor

func (License_KeyContainer_SecurityLevel) Enum

func (License_KeyContainer_SecurityLevel) EnumDescriptor deprecated

func (License_KeyContainer_SecurityLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use License_KeyContainer_SecurityLevel.Descriptor instead.

func (License_KeyContainer_SecurityLevel) Number

func (License_KeyContainer_SecurityLevel) String

func (License_KeyContainer_SecurityLevel) Type

func (*License_KeyContainer_SecurityLevel) UnmarshalJSON deprecated

func (x *License_KeyContainer_SecurityLevel) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type License_KeyContainer_VideoResolutionConstraint

type License_KeyContainer_VideoResolutionConstraint struct {
	MinResolutionPixels *uint32                                `protobuf:"varint,1,opt,name=MinResolutionPixels" json:"MinResolutionPixels,omitempty"`
	MaxResolutionPixels *uint32                                `protobuf:"varint,2,opt,name=MaxResolutionPixels" json:"MaxResolutionPixels,omitempty"`
	RequiredProtection  *License_KeyContainer_OutputProtection `protobuf:"bytes,3,opt,name=RequiredProtection" json:"RequiredProtection,omitempty"`
	// contains filtered or unexported fields
}

func (*License_KeyContainer_VideoResolutionConstraint) Descriptor deprecated

Deprecated: Use License_KeyContainer_VideoResolutionConstraint.ProtoReflect.Descriptor instead.

func (*License_KeyContainer_VideoResolutionConstraint) GetMaxResolutionPixels

func (x *License_KeyContainer_VideoResolutionConstraint) GetMaxResolutionPixels() uint32

func (*License_KeyContainer_VideoResolutionConstraint) GetMinResolutionPixels

func (x *License_KeyContainer_VideoResolutionConstraint) GetMinResolutionPixels() uint32

func (*License_KeyContainer_VideoResolutionConstraint) GetRequiredProtection

func (*License_KeyContainer_VideoResolutionConstraint) ProtoMessage

func (*License_KeyContainer_VideoResolutionConstraint) ProtoReflect

func (*License_KeyContainer_VideoResolutionConstraint) Reset

func (*License_KeyContainer_VideoResolutionConstraint) String

type License_Policy

type License_Policy struct {
	CanPlay                        *bool   `protobuf:"varint,1,opt,name=CanPlay" json:"CanPlay,omitempty"` // changed from uint32 to bool
	CanPersist                     *bool   `protobuf:"varint,2,opt,name=CanPersist" json:"CanPersist,omitempty"`
	CanRenew                       *bool   `protobuf:"varint,3,opt,name=CanRenew" json:"CanRenew,omitempty"`
	RentalDurationSeconds          *uint32 `protobuf:"varint,4,opt,name=RentalDurationSeconds" json:"RentalDurationSeconds,omitempty"`
	PlaybackDurationSeconds        *uint32 `protobuf:"varint,5,opt,name=PlaybackDurationSeconds" json:"PlaybackDurationSeconds,omitempty"`
	LicenseDurationSeconds         *uint32 `protobuf:"varint,6,opt,name=LicenseDurationSeconds" json:"LicenseDurationSeconds,omitempty"`
	RenewalRecoveryDurationSeconds *uint32 `protobuf:"varint,7,opt,name=RenewalRecoveryDurationSeconds" json:"RenewalRecoveryDurationSeconds,omitempty"`
	RenewalServerUrl               *string `protobuf:"bytes,8,opt,name=RenewalServerUrl" json:"RenewalServerUrl,omitempty"`
	RenewalDelaySeconds            *uint32 `protobuf:"varint,9,opt,name=RenewalDelaySeconds" json:"RenewalDelaySeconds,omitempty"`
	RenewalRetryIntervalSeconds    *uint32 `protobuf:"varint,10,opt,name=RenewalRetryIntervalSeconds" json:"RenewalRetryIntervalSeconds,omitempty"`
	RenewWithUsage                 *bool   `protobuf:"varint,11,opt,name=RenewWithUsage" json:"RenewWithUsage,omitempty"` // was uint32
	// contains filtered or unexported fields
}

func (*License_Policy) Descriptor deprecated

func (*License_Policy) Descriptor() ([]byte, []int)

Deprecated: Use License_Policy.ProtoReflect.Descriptor instead.

func (*License_Policy) GetCanPersist

func (x *License_Policy) GetCanPersist() bool

func (*License_Policy) GetCanPlay

func (x *License_Policy) GetCanPlay() bool

func (*License_Policy) GetCanRenew

func (x *License_Policy) GetCanRenew() bool

func (*License_Policy) GetLicenseDurationSeconds

func (x *License_Policy) GetLicenseDurationSeconds() uint32

func (*License_Policy) GetPlaybackDurationSeconds

func (x *License_Policy) GetPlaybackDurationSeconds() uint32

func (*License_Policy) GetRenewWithUsage

func (x *License_Policy) GetRenewWithUsage() bool

func (*License_Policy) GetRenewalDelaySeconds

func (x *License_Policy) GetRenewalDelaySeconds() uint32

func (*License_Policy) GetRenewalRecoveryDurationSeconds

func (x *License_Policy) GetRenewalRecoveryDurationSeconds() uint32

func (*License_Policy) GetRenewalRetryIntervalSeconds

func (x *License_Policy) GetRenewalRetryIntervalSeconds() uint32

func (*License_Policy) GetRenewalServerUrl

func (x *License_Policy) GetRenewalServerUrl() string

func (*License_Policy) GetRentalDurationSeconds

func (x *License_Policy) GetRentalDurationSeconds() uint32

func (*License_Policy) ProtoMessage

func (*License_Policy) ProtoMessage()

func (*License_Policy) ProtoReflect

func (x *License_Policy) ProtoReflect() protoreflect.Message

func (*License_Policy) Reset

func (x *License_Policy) Reset()

func (*License_Policy) String

func (x *License_Policy) String() string

type ProtocolVersion

type ProtocolVersion int32

todo: fill (for this top-level type, it might be impossible/difficult) this is just a guess because these globals got lost, but really, do we need more?

const (
	ProtocolVersion_CURRENT ProtocolVersion = 21 // don't have symbols for this
)

func (ProtocolVersion) Descriptor

func (ProtocolVersion) Enum

func (x ProtocolVersion) Enum() *ProtocolVersion

func (ProtocolVersion) EnumDescriptor deprecated

func (ProtocolVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtocolVersion.Descriptor instead.

func (ProtocolVersion) Number

func (ProtocolVersion) String

func (x ProtocolVersion) String() string

func (ProtocolVersion) Type

func (*ProtocolVersion) UnmarshalJSON deprecated

func (x *ProtocolVersion) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type ProvisionedDeviceInfo

type ProvisionedDeviceInfo struct {
	SystemId      *uint32                                `protobuf:"varint,1,opt,name=SystemId" json:"SystemId,omitempty"`
	Soc           *string                                `protobuf:"bytes,2,opt,name=Soc" json:"Soc,omitempty"`
	Manufacturer  *string                                `protobuf:"bytes,3,opt,name=Manufacturer" json:"Manufacturer,omitempty"`
	Model         *string                                `protobuf:"bytes,4,opt,name=Model" json:"Model,omitempty"`
	DeviceType    *string                                `protobuf:"bytes,5,opt,name=DeviceType" json:"DeviceType,omitempty"`
	ModelYear     *uint32                                `protobuf:"varint,6,opt,name=ModelYear" json:"ModelYear,omitempty"`
	SecurityLevel *ProvisionedDeviceInfo_WvSecurityLevel `protobuf:"varint,7,opt,name=SecurityLevel,enum=ProvisionedDeviceInfo_WvSecurityLevel" json:"SecurityLevel,omitempty"`
	TestDevice    *uint32                                `protobuf:"varint,8,opt,name=TestDevice" json:"TestDevice,omitempty"` // bool?
	// contains filtered or unexported fields
}

func (*ProvisionedDeviceInfo) Descriptor deprecated

func (*ProvisionedDeviceInfo) Descriptor() ([]byte, []int)

Deprecated: Use ProvisionedDeviceInfo.ProtoReflect.Descriptor instead.

func (*ProvisionedDeviceInfo) GetDeviceType

func (x *ProvisionedDeviceInfo) GetDeviceType() string

func (*ProvisionedDeviceInfo) GetManufacturer

func (x *ProvisionedDeviceInfo) GetManufacturer() string

func (*ProvisionedDeviceInfo) GetModel

func (x *ProvisionedDeviceInfo) GetModel() string

func (*ProvisionedDeviceInfo) GetModelYear

func (x *ProvisionedDeviceInfo) GetModelYear() uint32

func (*ProvisionedDeviceInfo) GetSecurityLevel

func (*ProvisionedDeviceInfo) GetSoc

func (x *ProvisionedDeviceInfo) GetSoc() string

func (*ProvisionedDeviceInfo) GetSystemId

func (x *ProvisionedDeviceInfo) GetSystemId() uint32

func (*ProvisionedDeviceInfo) GetTestDevice

func (x *ProvisionedDeviceInfo) GetTestDevice() uint32

func (*ProvisionedDeviceInfo) ProtoMessage

func (*ProvisionedDeviceInfo) ProtoMessage()

func (*ProvisionedDeviceInfo) ProtoReflect

func (x *ProvisionedDeviceInfo) ProtoReflect() protoreflect.Message

func (*ProvisionedDeviceInfo) Reset

func (x *ProvisionedDeviceInfo) Reset()

func (*ProvisionedDeviceInfo) String

func (x *ProvisionedDeviceInfo) String() string

type ProvisionedDeviceInfo_WvSecurityLevel

type ProvisionedDeviceInfo_WvSecurityLevel int32
const (
	ProvisionedDeviceInfo_LEVEL_UNSPECIFIED ProvisionedDeviceInfo_WvSecurityLevel = 0
	ProvisionedDeviceInfo_LEVEL_1           ProvisionedDeviceInfo_WvSecurityLevel = 1
	ProvisionedDeviceInfo_LEVEL_2           ProvisionedDeviceInfo_WvSecurityLevel = 2
	ProvisionedDeviceInfo_LEVEL_3           ProvisionedDeviceInfo_WvSecurityLevel = 3
)

func (ProvisionedDeviceInfo_WvSecurityLevel) Descriptor

func (ProvisionedDeviceInfo_WvSecurityLevel) Enum

func (ProvisionedDeviceInfo_WvSecurityLevel) EnumDescriptor deprecated

func (ProvisionedDeviceInfo_WvSecurityLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProvisionedDeviceInfo_WvSecurityLevel.Descriptor instead.

func (ProvisionedDeviceInfo_WvSecurityLevel) Number

func (ProvisionedDeviceInfo_WvSecurityLevel) String

func (ProvisionedDeviceInfo_WvSecurityLevel) Type

func (*ProvisionedDeviceInfo_WvSecurityLevel) UnmarshalJSON deprecated

func (x *ProvisionedDeviceInfo_WvSecurityLevel) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type ProvisioningOptions

type ProvisioningOptions struct {
	// contains filtered or unexported fields
}

todo: fill

func (*ProvisioningOptions) Descriptor deprecated

func (*ProvisioningOptions) Descriptor() ([]byte, []int)

Deprecated: Use ProvisioningOptions.ProtoReflect.Descriptor instead.

func (*ProvisioningOptions) ProtoMessage

func (*ProvisioningOptions) ProtoMessage()

func (*ProvisioningOptions) ProtoReflect

func (x *ProvisioningOptions) ProtoReflect() protoreflect.Message

func (*ProvisioningOptions) Reset

func (x *ProvisioningOptions) Reset()

func (*ProvisioningOptions) String

func (x *ProvisioningOptions) String() string

type ProvisioningRequest

type ProvisioningRequest struct {
	// contains filtered or unexported fields
}

todo: fill

func (*ProvisioningRequest) Descriptor deprecated

func (*ProvisioningRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProvisioningRequest.ProtoReflect.Descriptor instead.

func (*ProvisioningRequest) ProtoMessage

func (*ProvisioningRequest) ProtoMessage()

func (*ProvisioningRequest) ProtoReflect

func (x *ProvisioningRequest) ProtoReflect() protoreflect.Message

func (*ProvisioningRequest) Reset

func (x *ProvisioningRequest) Reset()

func (*ProvisioningRequest) String

func (x *ProvisioningRequest) String() string

type ProvisioningResponse

type ProvisioningResponse struct {
	// contains filtered or unexported fields
}

todo: fill

func (*ProvisioningResponse) Descriptor deprecated

func (*ProvisioningResponse) Descriptor() ([]byte, []int)

Deprecated: Use ProvisioningResponse.ProtoReflect.Descriptor instead.

func (*ProvisioningResponse) ProtoMessage

func (*ProvisioningResponse) ProtoMessage()

func (*ProvisioningResponse) ProtoReflect

func (x *ProvisioningResponse) ProtoReflect() protoreflect.Message

func (*ProvisioningResponse) Reset

func (x *ProvisioningResponse) Reset()

func (*ProvisioningResponse) String

func (x *ProvisioningResponse) String() string

type RemoteAttestation

type RemoteAttestation struct {
	Certificate *EncryptedClientIdentification `protobuf:"bytes,1,opt,name=Certificate" json:"Certificate,omitempty"`
	Salt        *string                        `protobuf:"bytes,2,opt,name=Salt" json:"Salt,omitempty"`
	Signature   *string                        `protobuf:"bytes,3,opt,name=Signature" json:"Signature,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteAttestation) Descriptor deprecated

func (*RemoteAttestation) Descriptor() ([]byte, []int)

Deprecated: Use RemoteAttestation.ProtoReflect.Descriptor instead.

func (*RemoteAttestation) GetCertificate

func (x *RemoteAttestation) GetCertificate() *EncryptedClientIdentification

func (*RemoteAttestation) GetSalt

func (x *RemoteAttestation) GetSalt() string

func (*RemoteAttestation) GetSignature

func (x *RemoteAttestation) GetSignature() string

func (*RemoteAttestation) ProtoMessage

func (*RemoteAttestation) ProtoMessage()

func (*RemoteAttestation) ProtoReflect

func (x *RemoteAttestation) ProtoReflect() protoreflect.Message

func (*RemoteAttestation) Reset

func (x *RemoteAttestation) Reset()

func (*RemoteAttestation) String

func (x *RemoteAttestation) String() string

type SessionInit

type SessionInit struct {
	// contains filtered or unexported fields
}

todo: fill

func (*SessionInit) Descriptor deprecated

func (*SessionInit) Descriptor() ([]byte, []int)

Deprecated: Use SessionInit.ProtoReflect.Descriptor instead.

func (*SessionInit) ProtoMessage

func (*SessionInit) ProtoMessage()

func (*SessionInit) ProtoReflect

func (x *SessionInit) ProtoReflect() protoreflect.Message

func (*SessionInit) Reset

func (x *SessionInit) Reset()

func (*SessionInit) String

func (x *SessionInit) String() string

type SessionState

type SessionState struct {
	// contains filtered or unexported fields
}

todo: fill

func (*SessionState) Descriptor deprecated

func (*SessionState) Descriptor() ([]byte, []int)

Deprecated: Use SessionState.ProtoReflect.Descriptor instead.

func (*SessionState) ProtoMessage

func (*SessionState) ProtoMessage()

func (*SessionState) ProtoReflect

func (x *SessionState) ProtoReflect() protoreflect.Message

func (*SessionState) Reset

func (x *SessionState) Reset()

func (*SessionState) String

func (x *SessionState) String() string

type SignedCertificateStatusList

type SignedCertificateStatusList struct {
	// contains filtered or unexported fields
}

todo: fill

func (*SignedCertificateStatusList) Descriptor deprecated

func (*SignedCertificateStatusList) Descriptor() ([]byte, []int)

Deprecated: Use SignedCertificateStatusList.ProtoReflect.Descriptor instead.

func (*SignedCertificateStatusList) ProtoMessage

func (*SignedCertificateStatusList) ProtoMessage()

func (*SignedCertificateStatusList) ProtoReflect

func (*SignedCertificateStatusList) Reset

func (x *SignedCertificateStatusList) Reset()

func (*SignedCertificateStatusList) String

func (x *SignedCertificateStatusList) String() string

type SignedDeviceCertificate

type SignedDeviceCertificate struct {

	//optional bytes DeviceCertificate = 1; // again, they use a buffer where it's supposed to be a message, so we'll replace it with what it really is:
	XDeviceCertificate *DeviceCertificate       `protobuf:"bytes,1,opt,name=_DeviceCertificate,json=DeviceCertificate" json:"_DeviceCertificate,omitempty"` // how should we deal with duped names? will have to look at proto docs later
	Signature          []byte                   `protobuf:"bytes,2,opt,name=Signature" json:"Signature,omitempty"`
	Signer             *SignedDeviceCertificate `protobuf:"bytes,3,opt,name=Signer" json:"Signer,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedDeviceCertificate) Descriptor deprecated

func (*SignedDeviceCertificate) Descriptor() ([]byte, []int)

Deprecated: Use SignedDeviceCertificate.ProtoReflect.Descriptor instead.

func (*SignedDeviceCertificate) GetSignature

func (x *SignedDeviceCertificate) GetSignature() []byte

func (*SignedDeviceCertificate) GetSigner

func (*SignedDeviceCertificate) GetXDeviceCertificate

func (x *SignedDeviceCertificate) GetXDeviceCertificate() *DeviceCertificate

func (*SignedDeviceCertificate) ProtoMessage

func (*SignedDeviceCertificate) ProtoMessage()

func (*SignedDeviceCertificate) ProtoReflect

func (x *SignedDeviceCertificate) ProtoReflect() protoreflect.Message

func (*SignedDeviceCertificate) Reset

func (x *SignedDeviceCertificate) Reset()

func (*SignedDeviceCertificate) String

func (x *SignedDeviceCertificate) String() string

type SignedLicense

type SignedLicense struct {
	Type *SignedLicense_MessageType `protobuf:"varint,1,opt,name=Type,enum=SignedLicense_MessageType" json:"Type,omitempty"` // has in incorrect overlap with License_KeyContainer_SecurityLevel
	Msg  *License                   `protobuf:"bytes,2,opt,name=Msg" json:"Msg,omitempty"`                                   // this has to be casted dynamically, to LicenseRequest, License or LicenseError (? unconfirmed), for Request, no other fields but Type need to be present
	// for SERVICE_CERTIFICATE, only Type and Msg are present, and it's just a DeviceCertificate with CertificateType set to SERVICE
	Signature         []byte             `protobuf:"bytes,3,opt,name=Signature" json:"Signature,omitempty"`   // might be different type of signatures (ex. RSA vs AES CMAC(??), unconfirmed for now)
	SessionKey        []byte             `protobuf:"bytes,4,opt,name=SessionKey" json:"SessionKey,omitempty"` // often RSA wrapped for licenses
	RemoteAttestation *RemoteAttestation `protobuf:"bytes,5,opt,name=RemoteAttestation" json:"RemoteAttestation,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedLicense) Descriptor deprecated

func (*SignedLicense) Descriptor() ([]byte, []int)

Deprecated: Use SignedLicense.ProtoReflect.Descriptor instead.

func (*SignedLicense) GetMsg

func (x *SignedLicense) GetMsg() *License

func (*SignedLicense) GetRemoteAttestation

func (x *SignedLicense) GetRemoteAttestation() *RemoteAttestation

func (*SignedLicense) GetSessionKey

func (x *SignedLicense) GetSessionKey() []byte

func (*SignedLicense) GetSignature

func (x *SignedLicense) GetSignature() []byte

func (*SignedLicense) GetType

func (*SignedLicense) ProtoMessage

func (*SignedLicense) ProtoMessage()

func (*SignedLicense) ProtoReflect

func (x *SignedLicense) ProtoReflect() protoreflect.Message

func (*SignedLicense) Reset

func (x *SignedLicense) Reset()

func (*SignedLicense) String

func (x *SignedLicense) String() string

type SignedLicenseRequest

type SignedLicenseRequest struct {
	Type *SignedLicenseRequest_MessageType `protobuf:"varint,1,opt,name=Type,enum=SignedLicenseRequest_MessageType" json:"Type,omitempty"` // has in incorrect overlap with License_KeyContainer_SecurityLevel
	Msg  *LicenseRequest                   `protobuf:"bytes,2,opt,name=Msg" json:"Msg,omitempty"`                                          // this has to be casted dynamically, to LicenseRequest, License or LicenseError (? unconfirmed), for Request, no other fields but Type need to be present
	// for SERVICE_CERTIFICATE, only Type and Msg are present, and it's just a DeviceCertificate with CertificateType set to SERVICE
	Signature         []byte             `protobuf:"bytes,3,opt,name=Signature" json:"Signature,omitempty"`   // might be different type of signatures (ex. RSA vs AES CMAC(??), unconfirmed for now)
	SessionKey        []byte             `protobuf:"bytes,4,opt,name=SessionKey" json:"SessionKey,omitempty"` // often RSA wrapped for licenses
	RemoteAttestation *RemoteAttestation `protobuf:"bytes,5,opt,name=RemoteAttestation" json:"RemoteAttestation,omitempty"`
	// contains filtered or unexported fields
}

from here on, it's just for testing, these messages don't exist in the binaries, I'm adding them to avoid detecting type programmatically

func (*SignedLicenseRequest) Descriptor deprecated

func (*SignedLicenseRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignedLicenseRequest.ProtoReflect.Descriptor instead.

func (*SignedLicenseRequest) GetMsg

func (x *SignedLicenseRequest) GetMsg() *LicenseRequest

func (*SignedLicenseRequest) GetRemoteAttestation

func (x *SignedLicenseRequest) GetRemoteAttestation() *RemoteAttestation

func (*SignedLicenseRequest) GetSessionKey

func (x *SignedLicenseRequest) GetSessionKey() []byte

func (*SignedLicenseRequest) GetSignature

func (x *SignedLicenseRequest) GetSignature() []byte

func (*SignedLicenseRequest) GetType

func (*SignedLicenseRequest) ProtoMessage

func (*SignedLicenseRequest) ProtoMessage()

func (*SignedLicenseRequest) ProtoReflect

func (x *SignedLicenseRequest) ProtoReflect() protoreflect.Message

func (*SignedLicenseRequest) Reset

func (x *SignedLicenseRequest) Reset()

func (*SignedLicenseRequest) String

func (x *SignedLicenseRequest) String() string

type SignedLicenseRequestRaw

type SignedLicenseRequestRaw struct {
	Type *SignedLicenseRequestRaw_MessageType `protobuf:"varint,1,opt,name=Type,enum=SignedLicenseRequestRaw_MessageType" json:"Type,omitempty"` // has in incorrect overlap with License_KeyContainer_SecurityLevel
	Msg  *LicenseRequestRaw                   `protobuf:"bytes,2,opt,name=Msg" json:"Msg,omitempty"`                                             // this has to be casted dynamically, to LicenseRequest, License or LicenseError (? unconfirmed), for Request, no other fields but Type need to be present
	// for SERVICE_CERTIFICATE, only Type and Msg are present, and it's just a DeviceCertificate with CertificateType set to SERVICE
	Signature         []byte             `protobuf:"bytes,3,opt,name=Signature" json:"Signature,omitempty"`   // might be different type of signatures (ex. RSA vs AES CMAC(??), unconfirmed for now)
	SessionKey        []byte             `protobuf:"bytes,4,opt,name=SessionKey" json:"SessionKey,omitempty"` // often RSA wrapped for licenses
	RemoteAttestation *RemoteAttestation `protobuf:"bytes,5,opt,name=RemoteAttestation" json:"RemoteAttestation,omitempty"`
	// contains filtered or unexported fields
}

hack

func (*SignedLicenseRequestRaw) Descriptor deprecated

func (*SignedLicenseRequestRaw) Descriptor() ([]byte, []int)

Deprecated: Use SignedLicenseRequestRaw.ProtoReflect.Descriptor instead.

func (*SignedLicenseRequestRaw) GetMsg

func (*SignedLicenseRequestRaw) GetRemoteAttestation

func (x *SignedLicenseRequestRaw) GetRemoteAttestation() *RemoteAttestation

func (*SignedLicenseRequestRaw) GetSessionKey

func (x *SignedLicenseRequestRaw) GetSessionKey() []byte

func (*SignedLicenseRequestRaw) GetSignature

func (x *SignedLicenseRequestRaw) GetSignature() []byte

func (*SignedLicenseRequestRaw) GetType

func (*SignedLicenseRequestRaw) ProtoMessage

func (*SignedLicenseRequestRaw) ProtoMessage()

func (*SignedLicenseRequestRaw) ProtoReflect

func (x *SignedLicenseRequestRaw) ProtoReflect() protoreflect.Message

func (*SignedLicenseRequestRaw) Reset

func (x *SignedLicenseRequestRaw) Reset()

func (*SignedLicenseRequestRaw) String

func (x *SignedLicenseRequestRaw) String() string

type SignedLicenseRequestRaw_MessageType

type SignedLicenseRequestRaw_MessageType int32
const (
	SignedLicenseRequestRaw_LICENSE_REQUEST             SignedLicenseRequestRaw_MessageType = 1
	SignedLicenseRequestRaw_LICENSE                     SignedLicenseRequestRaw_MessageType = 2
	SignedLicenseRequestRaw_ERROR_RESPONSE              SignedLicenseRequestRaw_MessageType = 3
	SignedLicenseRequestRaw_SERVICE_CERTIFICATE_REQUEST SignedLicenseRequestRaw_MessageType = 4
	SignedLicenseRequestRaw_SERVICE_CERTIFICATE         SignedLicenseRequestRaw_MessageType = 5
)

func (SignedLicenseRequestRaw_MessageType) Descriptor

func (SignedLicenseRequestRaw_MessageType) Enum

func (SignedLicenseRequestRaw_MessageType) EnumDescriptor deprecated

func (SignedLicenseRequestRaw_MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SignedLicenseRequestRaw_MessageType.Descriptor instead.

func (SignedLicenseRequestRaw_MessageType) Number

func (SignedLicenseRequestRaw_MessageType) String

func (SignedLicenseRequestRaw_MessageType) Type

func (*SignedLicenseRequestRaw_MessageType) UnmarshalJSON deprecated

func (x *SignedLicenseRequestRaw_MessageType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type SignedLicenseRequest_MessageType

type SignedLicenseRequest_MessageType int32
const (
	SignedLicenseRequest_LICENSE_REQUEST             SignedLicenseRequest_MessageType = 1
	SignedLicenseRequest_LICENSE                     SignedLicenseRequest_MessageType = 2
	SignedLicenseRequest_ERROR_RESPONSE              SignedLicenseRequest_MessageType = 3
	SignedLicenseRequest_SERVICE_CERTIFICATE_REQUEST SignedLicenseRequest_MessageType = 4
	SignedLicenseRequest_SERVICE_CERTIFICATE         SignedLicenseRequest_MessageType = 5
)

func (SignedLicenseRequest_MessageType) Descriptor

func (SignedLicenseRequest_MessageType) Enum

func (SignedLicenseRequest_MessageType) EnumDescriptor deprecated

func (SignedLicenseRequest_MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SignedLicenseRequest_MessageType.Descriptor instead.

func (SignedLicenseRequest_MessageType) Number

func (SignedLicenseRequest_MessageType) String

func (SignedLicenseRequest_MessageType) Type

func (*SignedLicenseRequest_MessageType) UnmarshalJSON deprecated

func (x *SignedLicenseRequest_MessageType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type SignedLicense_MessageType

type SignedLicense_MessageType int32
const (
	SignedLicense_LICENSE_REQUEST             SignedLicense_MessageType = 1
	SignedLicense_LICENSE                     SignedLicense_MessageType = 2
	SignedLicense_ERROR_RESPONSE              SignedLicense_MessageType = 3
	SignedLicense_SERVICE_CERTIFICATE_REQUEST SignedLicense_MessageType = 4
	SignedLicense_SERVICE_CERTIFICATE         SignedLicense_MessageType = 5
)

func (SignedLicense_MessageType) Descriptor

func (SignedLicense_MessageType) Enum

func (SignedLicense_MessageType) EnumDescriptor deprecated

func (SignedLicense_MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SignedLicense_MessageType.Descriptor instead.

func (SignedLicense_MessageType) Number

func (SignedLicense_MessageType) String

func (x SignedLicense_MessageType) String() string

func (SignedLicense_MessageType) Type

func (*SignedLicense_MessageType) UnmarshalJSON deprecated

func (x *SignedLicense_MessageType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type SignedMessage

type SignedMessage struct {
	Type *SignedMessage_MessageType `protobuf:"varint,1,opt,name=Type,enum=SignedMessage_MessageType" json:"Type,omitempty"` // has in incorrect overlap with License_KeyContainer_SecurityLevel
	Msg  []byte                     `protobuf:"bytes,2,opt,name=Msg" json:"Msg,omitempty"`                                   // this has to be casted dynamically, to LicenseRequest, License or LicenseError (? unconfirmed), for Request, no other fields but Type need to be present
	// for SERVICE_CERTIFICATE, only Type and Msg are present, and it's just a DeviceCertificate with CertificateType set to SERVICE
	Signature         []byte             `protobuf:"bytes,3,opt,name=Signature" json:"Signature,omitempty"`   // might be different type of signatures (ex. RSA vs AES CMAC(??), unconfirmed for now)
	SessionKey        []byte             `protobuf:"bytes,4,opt,name=SessionKey" json:"SessionKey,omitempty"` // often RSA wrapped for licenses
	RemoteAttestation *RemoteAttestation `protobuf:"bytes,5,opt,name=RemoteAttestation" json:"RemoteAttestation,omitempty"`
	// contains filtered or unexported fields
}

the root of all messages, from either server or client

func (*SignedMessage) Descriptor deprecated

func (*SignedMessage) Descriptor() ([]byte, []int)

Deprecated: Use SignedMessage.ProtoReflect.Descriptor instead.

func (*SignedMessage) GetMsg

func (x *SignedMessage) GetMsg() []byte

func (*SignedMessage) GetRemoteAttestation

func (x *SignedMessage) GetRemoteAttestation() *RemoteAttestation

func (*SignedMessage) GetSessionKey

func (x *SignedMessage) GetSessionKey() []byte

func (*SignedMessage) GetSignature

func (x *SignedMessage) GetSignature() []byte

func (*SignedMessage) GetType

func (*SignedMessage) ProtoMessage

func (*SignedMessage) ProtoMessage()

func (*SignedMessage) ProtoReflect

func (x *SignedMessage) ProtoReflect() protoreflect.Message

func (*SignedMessage) Reset

func (x *SignedMessage) Reset()

func (*SignedMessage) String

func (x *SignedMessage) String() string

type SignedMessage_MessageType

type SignedMessage_MessageType int32
const (
	SignedMessage_LICENSE_REQUEST             SignedMessage_MessageType = 1
	SignedMessage_LICENSE                     SignedMessage_MessageType = 2
	SignedMessage_ERROR_RESPONSE              SignedMessage_MessageType = 3
	SignedMessage_SERVICE_CERTIFICATE_REQUEST SignedMessage_MessageType = 4
	SignedMessage_SERVICE_CERTIFICATE         SignedMessage_MessageType = 5
)

func (SignedMessage_MessageType) Descriptor

func (SignedMessage_MessageType) Enum

func (SignedMessage_MessageType) EnumDescriptor deprecated

func (SignedMessage_MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SignedMessage_MessageType.Descriptor instead.

func (SignedMessage_MessageType) Number

func (SignedMessage_MessageType) String

func (x SignedMessage_MessageType) String() string

func (SignedMessage_MessageType) Type

func (*SignedMessage_MessageType) UnmarshalJSON deprecated

func (x *SignedMessage_MessageType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type SignedProvisioningMessage

type SignedProvisioningMessage struct {
	// contains filtered or unexported fields
}

todo: fill

func (*SignedProvisioningMessage) Descriptor deprecated

func (*SignedProvisioningMessage) Descriptor() ([]byte, []int)

Deprecated: Use SignedProvisioningMessage.ProtoReflect.Descriptor instead.

func (*SignedProvisioningMessage) ProtoMessage

func (*SignedProvisioningMessage) ProtoMessage()

func (*SignedProvisioningMessage) ProtoReflect

func (*SignedProvisioningMessage) Reset

func (x *SignedProvisioningMessage) Reset()

func (*SignedProvisioningMessage) String

func (x *SignedProvisioningMessage) String() string

type SignedServiceCertificate

type SignedServiceCertificate struct {
	Type *SignedServiceCertificate_MessageType `protobuf:"varint,1,opt,name=Type,enum=SignedServiceCertificate_MessageType" json:"Type,omitempty"` // has in incorrect overlap with License_KeyContainer_SecurityLevel
	Msg  *SignedDeviceCertificate              `protobuf:"bytes,2,opt,name=Msg" json:"Msg,omitempty"`                                              // this has to be casted dynamically, to LicenseRequest, License or LicenseError (? unconfirmed), for Request, no other fields but Type need to be present
	// for SERVICE_CERTIFICATE, only Type and Msg are present, and it's just a DeviceCertificate with CertificateType set to SERVICE
	Signature         []byte             `protobuf:"bytes,3,opt,name=Signature" json:"Signature,omitempty"`   // might be different type of signatures (ex. RSA vs AES CMAC(??), unconfirmed for now)
	SessionKey        []byte             `protobuf:"bytes,4,opt,name=SessionKey" json:"SessionKey,omitempty"` // often RSA wrapped for licenses
	RemoteAttestation *RemoteAttestation `protobuf:"bytes,5,opt,name=RemoteAttestation" json:"RemoteAttestation,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedServiceCertificate) Descriptor deprecated

func (*SignedServiceCertificate) Descriptor() ([]byte, []int)

Deprecated: Use SignedServiceCertificate.ProtoReflect.Descriptor instead.

func (*SignedServiceCertificate) GetMsg

func (*SignedServiceCertificate) GetRemoteAttestation

func (x *SignedServiceCertificate) GetRemoteAttestation() *RemoteAttestation

func (*SignedServiceCertificate) GetSessionKey

func (x *SignedServiceCertificate) GetSessionKey() []byte

func (*SignedServiceCertificate) GetSignature

func (x *SignedServiceCertificate) GetSignature() []byte

func (*SignedServiceCertificate) GetType

func (*SignedServiceCertificate) ProtoMessage

func (*SignedServiceCertificate) ProtoMessage()

func (*SignedServiceCertificate) ProtoReflect

func (x *SignedServiceCertificate) ProtoReflect() protoreflect.Message

func (*SignedServiceCertificate) Reset

func (x *SignedServiceCertificate) Reset()

func (*SignedServiceCertificate) String

func (x *SignedServiceCertificate) String() string

type SignedServiceCertificate_MessageType

type SignedServiceCertificate_MessageType int32
const (
	SignedServiceCertificate_LICENSE_REQUEST             SignedServiceCertificate_MessageType = 1
	SignedServiceCertificate_LICENSE                     SignedServiceCertificate_MessageType = 2
	SignedServiceCertificate_ERROR_RESPONSE              SignedServiceCertificate_MessageType = 3
	SignedServiceCertificate_SERVICE_CERTIFICATE_REQUEST SignedServiceCertificate_MessageType = 4
	SignedServiceCertificate_SERVICE_CERTIFICATE         SignedServiceCertificate_MessageType = 5
)

func (SignedServiceCertificate_MessageType) Descriptor

func (SignedServiceCertificate_MessageType) Enum

func (SignedServiceCertificate_MessageType) EnumDescriptor deprecated

func (SignedServiceCertificate_MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SignedServiceCertificate_MessageType.Descriptor instead.

func (SignedServiceCertificate_MessageType) Number

func (SignedServiceCertificate_MessageType) String

func (SignedServiceCertificate_MessageType) Type

func (*SignedServiceCertificate_MessageType) UnmarshalJSON deprecated

func (x *SignedServiceCertificate_MessageType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type WidevineCencHeader

type WidevineCencHeader struct {
	Algorithm *WidevineCencHeader_Algorithm `protobuf:"varint,1,opt,name=algorithm,enum=WidevineCencHeader_Algorithm" json:"algorithm,omitempty"`
	KeyId     [][]byte                      `protobuf:"bytes,2,rep,name=key_id,json=keyId" json:"key_id,omitempty"`
	// Content provider name.
	Provider *string `protobuf:"bytes,3,opt,name=provider" json:"provider,omitempty"`
	// A content identifier, specified by content provider.
	ContentId []byte `protobuf:"bytes,4,opt,name=content_id,json=contentId" json:"content_id,omitempty"`
	// Track type. Acceptable values are SD, HD and AUDIO. Used to
	// differentiate content keys used by an asset.
	TrackTypeDeprecated *string `protobuf:"bytes,5,opt,name=track_type_deprecated,json=trackTypeDeprecated" json:"track_type_deprecated,omitempty"`
	// The name of a registered policy to be used for this asset.
	Policy *string `protobuf:"bytes,6,opt,name=policy" json:"policy,omitempty"`
	// Crypto period index, for media using key rotation.
	CryptoPeriodIndex *uint32 `protobuf:"varint,7,opt,name=crypto_period_index,json=cryptoPeriodIndex" json:"crypto_period_index,omitempty"`
	// Optional protected context for group content. The grouped_license is a
	// serialized SignedMessage.
	GroupedLicense []byte `protobuf:"bytes,8,opt,name=grouped_license,json=groupedLicense" json:"grouped_license,omitempty"`
	// Protection scheme identifying the encryption algorithm.
	// Represented as one of the following 4CC values:
	// 'cenc' (AESCTR), 'cbc1' (AESCBC),
	// 'cens' (AESCTR subsample), 'cbcs' (AESCBC subsample).
	ProtectionScheme *uint32 `protobuf:"varint,9,opt,name=protection_scheme,json=protectionScheme" json:"protection_scheme,omitempty"`
	// Optional. For media using key rotation, this represents the duration
	// of each crypto period in seconds.
	CryptoPeriodSeconds *uint32 `protobuf:"varint,10,opt,name=crypto_period_seconds,json=cryptoPeriodSeconds" json:"crypto_period_seconds,omitempty"`
	// contains filtered or unexported fields
}

This message is copied from google's docs, not reversed:

func (*WidevineCencHeader) Descriptor deprecated

func (*WidevineCencHeader) Descriptor() ([]byte, []int)

Deprecated: Use WidevineCencHeader.ProtoReflect.Descriptor instead.

func (*WidevineCencHeader) GetAlgorithm

func (*WidevineCencHeader) GetContentId

func (x *WidevineCencHeader) GetContentId() []byte

func (*WidevineCencHeader) GetCryptoPeriodIndex

func (x *WidevineCencHeader) GetCryptoPeriodIndex() uint32

func (*WidevineCencHeader) GetCryptoPeriodSeconds

func (x *WidevineCencHeader) GetCryptoPeriodSeconds() uint32

func (*WidevineCencHeader) GetGroupedLicense

func (x *WidevineCencHeader) GetGroupedLicense() []byte

func (*WidevineCencHeader) GetKeyId

func (x *WidevineCencHeader) GetKeyId() [][]byte

func (*WidevineCencHeader) GetPolicy

func (x *WidevineCencHeader) GetPolicy() string

func (*WidevineCencHeader) GetProtectionScheme

func (x *WidevineCencHeader) GetProtectionScheme() uint32

func (*WidevineCencHeader) GetProvider

func (x *WidevineCencHeader) GetProvider() string

func (*WidevineCencHeader) GetTrackTypeDeprecated

func (x *WidevineCencHeader) GetTrackTypeDeprecated() string

func (*WidevineCencHeader) ProtoMessage

func (*WidevineCencHeader) ProtoMessage()

func (*WidevineCencHeader) ProtoReflect

func (x *WidevineCencHeader) ProtoReflect() protoreflect.Message

func (*WidevineCencHeader) Reset

func (x *WidevineCencHeader) Reset()

func (*WidevineCencHeader) String

func (x *WidevineCencHeader) String() string

type WidevineCencHeader_Algorithm

type WidevineCencHeader_Algorithm int32
const (
	WidevineCencHeader_UNENCRYPTED WidevineCencHeader_Algorithm = 0
	WidevineCencHeader_AESCTR      WidevineCencHeader_Algorithm = 1
)

func (WidevineCencHeader_Algorithm) Descriptor

func (WidevineCencHeader_Algorithm) Enum

func (WidevineCencHeader_Algorithm) EnumDescriptor deprecated

func (WidevineCencHeader_Algorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use WidevineCencHeader_Algorithm.Descriptor instead.

func (WidevineCencHeader_Algorithm) Number

func (WidevineCencHeader_Algorithm) String

func (WidevineCencHeader_Algorithm) Type

func (*WidevineCencHeader_Algorithm) UnmarshalJSON deprecated

func (x *WidevineCencHeader_Algorithm) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL