Versions in this module Expand all Collapse all v0 v0.0.2 Jul 28, 2022 v0.0.1 Jul 22, 2022 Changes in this version + func DebugCKC(ckcplayback []byte) + type CKCContainer struct + CKCDataInitV []byte + CKCPayload []byte + CKCPayloadLength uint32 + CKCVersion uint32 + Reserved []byte + func (c *CKCContainer) Serialize() []byte + type CKCPayload struct + HU []byte + IntegrityBytes []byte + R1 []byte + SK []byte + type CkcContentKeyDurationBlock struct + KeyType uint32 + LeaseDuration uint32 + RentalDuration uint32 + func NewCkcContentKeyDurationBlock(LeaseDuration, RentalDuration uint32) *CkcContentKeyDurationBlock + type CkcDataIv struct + IV []byte + type CkcEncryptedPayload struct + Payload []byte + type CkcR1 struct + R1 []byte + type ContentKey interface + FetchContentKey func(assetID []byte) ([]byte, []byte, error) + FetchContentKeyDuration func(assetID []byte) (*CkcContentKeyDurationBlock, error) + type DecryptedSKR1Payload struct + HU []byte + IntegrityBytes []byte + R1 []byte + SK []byte + type Ksm struct + Ask []byte + DFunction d.D + Pri string + Pub string + Rck ContentKey + func (k *Ksm) GenCKC(playback []byte) ([]byte, error) + type RandomContentKey struct + func (RandomContentKey) FetchContentKey(assetID []byte) ([]byte, []byte, error) + func (RandomContentKey) FetchContentKeyDuration(assetID []byte) (*CkcContentKeyDurationBlock, error) + type SKR1TLLVBlock struct + IV []byte + Payload []byte + type SPCContainer struct + AesKeyIV []byte + CertificateHash []byte + EncryptedAesKey []byte + Reserved []byte + SPCPlayload []byte + SPCPlayloadLength uint32 + TTLVS map[uint64]TLLVBlock + Version uint32 + func ParseSPCV1(playback []byte, pub, pri string) (*SPCContainer, error) + type TLLVBlock struct + BlockLength uint32 + Tag uint64 + Value []byte + ValueLength uint32 + func NewTLLVBlock(tag uint64, value []byte) *TLLVBlock + func (t *TLLVBlock) Serialize() ([]byte, error)