pub struct EncryptedFormat {
    pub init_vector: Option<Vec<u8>>,
    pub subsamples: Option<Vec<SubsampleEntry>>,
    pub pattern: Option<EncryptionPattern>,
    pub scheme: Option<String>,
    pub key_id: Option<Vec<u8>>,
    /* private fields */
}Expand description
EncryptedFormat
The stream format details payload of a decrypting stream processor. This is a sparsely populated table to specify parameters necessary for decryption other than the data stream. It is only necessary to update fields if they changed, but not an error if the same value is repeated.
Fields§
§init_vector: Option<Vec<u8>>init_vector is used in combination with a key and a block of content
to create the first cipher block in a chain and derive subsequent cipher
blocks in a cipher block chain.
Usage:
- It is required to be set prior to the delivery of input packets to a decryptor.
 - This may be changed multiple times during a data stream.
 
subsamples: Option<Vec<SubsampleEntry>>subsamples is used to identify the clear and encrypted portions of a
subsample.
Usage:
- For whole sample encryption, this parameter should not be sent.
 - This may be changed multiple times during a data stream.
 
pattern: Option<EncryptionPattern>pattern is used to identify the clear and encrypted blocks for pattern
based encryption.
Usage:
- This is not allowed for CENC and CBC1 and required for CENS and CBCS.
 - If required, it must be set prior to the delivery of input packets to a decryptor.
 - This may be changed multiple times during a data stream.
 
scheme: Option<String>scheme specifies which encryption scheme to use, such as
fuchsia.media.ENCRYPTION_SCHEME_CENC.
Usage:
- It is required to be set prior to delivery of input packets.
 - Changing the scheme mid-stream is only permitted in some scenarios.
Once an encrypted scheme is selected for a stream, the scheme may
only be set to 
fuchsia.media.ENCRYPTION_SCHEME_UNENCRYPTEDor that same initial encrypted scheme. The scheme may be set tofuchsia.media.ENCRYPTION_SCHEME_UNENCRYPTEDat any point. 
key_id: Option<Vec<u8>>key_id identifies the key that should be used for decrypting
subsequent data.
Usage:
- It is required to be set prior to delivery of input packets to a decryptor.
 - This may be changed multiple times during a data stream.
 
Trait Implementations§
Source§impl Clone for EncryptedFormat
 
impl Clone for EncryptedFormat
Source§fn clone(&self) -> EncryptedFormat
 
fn clone(&self) -> EncryptedFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EncryptedFormat
 
impl Debug for EncryptedFormat
Source§impl<D> Decode<EncryptedFormat, D> for EncryptedFormatwhere
    D: ResourceDialect,
 
impl<D> Decode<EncryptedFormat, D> for EncryptedFormatwhere
    D: ResourceDialect,
Source§fn new_empty() -> EncryptedFormat
 
fn new_empty() -> EncryptedFormat
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for EncryptedFormat
 
impl Default for EncryptedFormat
Source§fn default() -> EncryptedFormat
 
fn default() -> EncryptedFormat
Source§impl<D> Encode<EncryptedFormat, D> for &EncryptedFormatwhere
    D: ResourceDialect,
 
impl<D> Encode<EncryptedFormat, D> for &EncryptedFormatwhere
    D: ResourceDialect,
Source§impl PartialEq for EncryptedFormat
 
impl PartialEq for EncryptedFormat
Source§impl TypeMarker for EncryptedFormat
 
impl TypeMarker for EncryptedFormat
Source§type Owned = EncryptedFormat
 
type Owned = EncryptedFormat
Source§fn inline_align(_context: Context) -> usize
 
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
 
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
 
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
 
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for EncryptedFormat
 
impl ValueTypeMarker for EncryptedFormat
Source§type Borrowed<'a> = &'a EncryptedFormat
 
type Borrowed<'a> = &'a EncryptedFormat
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
    value: &<EncryptedFormat as TypeMarker>::Owned,
) -> <EncryptedFormat as ValueTypeMarker>::Borrowed<'_>
 
fn borrow( value: &<EncryptedFormat as TypeMarker>::Owned, ) -> <EncryptedFormat as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.