pub struct Encryption {
pub scheme: Option<String>,
pub default_key_id: Option<Vec<u8>>,
pub default_init_vector: Option<Vec<u8>>,
pub default_pattern: Option<EncryptionPattern>,
/* private fields */
}
Expand description
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§
§scheme: Option<String>
Specifies which encryption scheme to use, such as 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
ENCRYPTION_SCHEME_UNENCRYPTED
or that same initial encrypted scheme. The scheme may be set toENCRYPTION_SCHEME_UNENCRYPTED
at any point.
default_key_id: Option<Vec<u8>>
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.
default_init_vector: Option<Vec<u8>>
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.
default_pattern: Option<EncryptionPattern>
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.
Trait Implementations§
Source§impl Clone for Encryption
impl Clone for Encryption
Source§fn clone(&self) -> Encryption
fn clone(&self) -> Encryption
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Encryption
impl Debug for Encryption
Source§impl<D: ResourceDialect> Decode<Encryption, D> for Encryption
impl<D: ResourceDialect> Decode<Encryption, D> for Encryption
Source§impl Default for Encryption
impl Default for Encryption
Source§fn default() -> Encryption
fn default() -> Encryption
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<Encryption, D> for &Encryption
impl<D: ResourceDialect> Encode<Encryption, D> for &Encryption
Source§impl PartialEq for Encryption
impl PartialEq for Encryption
Source§impl TypeMarker for Encryption
impl TypeMarker for Encryption
Source§type Owned = Encryption
type Owned = Encryption
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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 Encryption
impl ValueTypeMarker for Encryption
Source§type Borrowed<'a> = &'a Encryption
type Borrowed<'a> = &'a Encryption
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for Encryption
impl StructuralPartialEq for Encryption
Auto Trait Implementations§
impl Freeze for Encryption
impl RefUnwindSafe for Encryption
impl Send for Encryption
impl Sync for Encryption
impl Unpin for Encryption
impl UnwindSafe for Encryption
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)