Documentation
¶
Overview ¶
crypto.go
errors.go
pssh.go
request.go
response.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶ added in v1.9.1
func DecodePrivateKey(pemData []byte) (*rsa.PrivateKey, error)
func EncodeSignedMessage ¶ added in v1.9.1
func EncodeSignedMessage(requestData []byte, privateKey *rsa.PrivateKey) ([]byte, error)
EncodeSignedMessage envelopes the request with an RSA signature.
Types ¶
type KeyContainer ¶
func DecodeLicenseResponse ¶ added in v1.9.1
func DecodeLicenseResponse(responseData []byte, requestData []byte, privateKey *rsa.PrivateKey) ([]*KeyContainer, error)
type LicenseError ¶ added in v1.6.9
LicenseError reflects the structure of the Widevine LicenseError protobuf.
func (*LicenseError) Error ¶ added in v1.7.1
func (le *LicenseError) Error() string
Error implements the standard Go error interface.
type PsshData ¶ added in v1.7.5
PsshData represents the Widevine-specific protobuf message.
func DecodePsshData ¶ added in v1.9.1
DecodePsshData parses the protobuf wire format into a PsshData struct.
Click to show internal directories.
Click to hide internal directories.