pub struct TencBox {
pub default_kid: [u8; 16],
pub is_protected: bool,
pub per_sample_iv_size: u8,
pub crypt_byte_block: u8,
pub skip_byte_block: u8,
pub constant_iv: Option<[u8; 16]>,
}Available on crate feature
decrypt-cenc only.Expand description
Track Encryption Box (tenc) - default encryption parameters for a track.
This box is found in the protection scheme info (sinf/schi) and provides the default KID, IV size, and pattern encryption parameters.
Fields§
§default_kid: [u8; 16]The default Key ID for this track.
is_protected: boolWhether the track is protected (encrypted).
per_sample_iv_size: u8Per-sample IV size (0 means constant IV is used, typically for CBCS).
crypt_byte_block: u8Number of 16-byte blocks to encrypt in pattern mode (CENS/CBCS). Only present in tenc version 1.
skip_byte_block: u8Number of 16-byte blocks to skip in pattern mode (CENS/CBCS). Only present in tenc version 1.
constant_iv: Option<[u8; 16]>Constant IV for CBCS mode (when per_sample_iv_size is 0).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TencBox
impl RefUnwindSafe for TencBox
impl Send for TencBox
impl Sync for TencBox
impl Unpin for TencBox
impl UnsafeUnpin for TencBox
impl UnwindSafe for TencBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more