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_UNENCRYPTED
or that same initial encrypted scheme. The scheme may be set tofuchsia.media.ENCRYPTION_SCHEME_UNENCRYPTED
at 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: ResourceDialect> Decode<EncryptedFormat, D> for EncryptedFormat
impl<D: ResourceDialect> Decode<EncryptedFormat, D> for EncryptedFormat
Source§impl Default for EncryptedFormat
impl Default for EncryptedFormat
Source§fn default() -> EncryptedFormat
fn default() -> EncryptedFormat
Source§impl<D: ResourceDialect> Encode<EncryptedFormat, D> for &EncryptedFormat
impl<D: ResourceDialect> Encode<EncryptedFormat, D> for &EncryptedFormat
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
.§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 more§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 moreimpl Persistable for EncryptedFormat
impl StructuralPartialEq for EncryptedFormat
Auto Trait Implementations§
impl Freeze for EncryptedFormat
impl RefUnwindSafe for EncryptedFormat
impl Send for EncryptedFormat
impl Sync for EncryptedFormat
impl Unpin for EncryptedFormat
impl UnwindSafe for EncryptedFormat
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)