Struct srt_protocol::protocol::encryption::stream::StreamEncryptionKeys
source · pub struct StreamEncryptionKeys { /* private fields */ }
Implementations§
source§impl StreamEncryptionKeys
impl StreamEncryptionKeys
pub fn new(salt: Salt) -> Self
pub fn new_random(key_size: KeySize) -> Self
pub fn commission_next_key( &mut self, active_sek: DataEncryption, key_settings: &KeySettings ) -> Option<KeyingMaterialMessage>
pub fn first_active_sek(&self) -> DataEncryption
pub fn unwrap_from( key_settings: &KeySettings, key_material: &KeyingMaterialMessage ) -> Result<Self, KeyMaterialError>
pub fn wrap_with( &self, key_settings: &KeySettings ) -> Option<KeyingMaterialMessage>
pub fn decrypt( &self, sek_selection: DataEncryption, seq_number: SeqNumber, data: &mut [u8] ) -> Option<usize>
pub fn encrypt( &self, sek_selection: DataEncryption, seq_number: SeqNumber, data: &mut [u8] ) -> Option<usize>
Trait Implementations§
source§impl Clone for StreamEncryptionKeys
impl Clone for StreamEncryptionKeys
source§fn clone(&self) -> StreamEncryptionKeys
fn clone(&self) -> StreamEncryptionKeys
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 StreamEncryptionKeys
impl Debug for StreamEncryptionKeys
source§impl PartialEq<StreamEncryptionKeys> for StreamEncryptionKeys
impl PartialEq<StreamEncryptionKeys> for StreamEncryptionKeys
source§fn eq(&self, other: &StreamEncryptionKeys) -> bool
fn eq(&self, other: &StreamEncryptionKeys) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StreamEncryptionKeys
impl StructuralEq for StreamEncryptionKeys
impl StructuralPartialEq for StreamEncryptionKeys
Auto Trait Implementations§
impl RefUnwindSafe for StreamEncryptionKeys
impl Send for StreamEncryptionKeys
impl Sync for StreamEncryptionKeys
impl Unpin for StreamEncryptionKeys
impl UnwindSafe for StreamEncryptionKeys
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.