Skip to main content

Module sample_decryption

Module sample_decryption 

Source
Expand description

Sample decryption resource objects — ETSI TS 103 205 V1.4.1 §7.4, Tables 30-39 (PDF pp. 52-60). See docs/ts_103_205/sample-decryption.md.

Resource ID 0x00920041 (Class 146, Type 1, Version 1). The resource controls decryption by the CICAM of a set of consecutive media Samples packaged into an MPEG-2 TS (the IP-delivery Host-player mode). Tags live in the CI Plus 0x9F98xx namespace.

  • sd_info_req (9F 98 00, Table 31) — Host → CICAM, header-only.
  • sd_info_reply (9F 98 01, Table 32) — CICAM → Host.
  • sd_start (9F 98 02, Table 33) — Host → CICAM.
  • sd_start_reply (9F 98 03, Table 35) — CICAM → Host.
  • sd_update (9F 98 04, Table 38) — Host → CICAM.
  • sd_update_reply (9F 98 05, Table 39) — CICAM → Host.

The drm_metadata_byte bodies (pssh/sinf/CASD/MPD/OSDT blobs, Table 34) are opaque to the wire parser — carried as borrowed &[u8].

Modules§

tag
Resource-scoped apdu_tags for the Sample decryption resource (Table 30).

Structs§

DrmMetadataRecord
One drm_metadata record (Tables 33/38): the drm_metadata_source, drm_system_id, drm_uuid, and the opaque drm_metadata_byte body.
SampleTrack
One Sample Track entry (the ts_flag == 0 branch of Tables 33/38): track_PID + a number_of_metadata_records loop of DrmMetadataRecord.
SdInfoReply
sd_info_reply() (Table 32): CICAM → Host. Lists drm_system_ids and DRM UUIDs the CICAM supports for Sample decryption.
SdInfoReq
sd_info_req() (Table 31): Host → CICAM, header-only.
SdStart
sd_start() (Table 33): Host → CICAM.
SdStartReply
sd_start_reply() (Table 35): CICAM → Host.
SdUpdate
sd_update() (Table 38): Host → CICAM. Same ts_flag-selected payload shape as SdStart, but the per-LTS header has no program_number.
SdUpdateReply
sd_update_reply() (Table 39): CICAM → Host.

Enums§

DrmStatus
drm_status values (Table 37).
SampleDecryptionApdu
Resource-scoped dispatch over the Sample decryption resource objects.
SamplePayload
The Sample-decryption payload that follows the per-LTS fixed header in both sd_start (Table 33) and sd_update (Table 38): selected by ts_flag.
TransmissionStatus
transmission_status values (Table 36).

Constants§

DRM_UUID_LEN
A 128-bit (16-byte) DRM UUID (drm_uuid). All-0xFF means “not used”.