Struct srt_protocol::protocol::encryption::key::KeyEncryptionKey
source · pub struct KeyEncryptionKey(/* private fields */);Implementations§
source§impl KeyEncryptionKey
impl KeyEncryptionKey
pub fn new(key_settings: &KeySettings, salt: &Salt) -> Self
pub fn encrypt_wrapped_keys(&self, keys: &[u8]) -> Vec<u8>
pub fn decrypt_wrapped_keys( &self, wrapped_keys: &[u8] ) -> Result<Vec<u8>, WrapInitializationVector>
Methods from Deref<Target = EncryptionKey>§
Trait Implementations§
source§impl Clone for KeyEncryptionKey
impl Clone for KeyEncryptionKey
source§fn clone(&self) -> KeyEncryptionKey
fn clone(&self) -> KeyEncryptionKey
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 KeyEncryptionKey
impl Debug for KeyEncryptionKey
source§impl Deref for KeyEncryptionKey
impl Deref for KeyEncryptionKey
source§impl PartialEq<KeyEncryptionKey> for KeyEncryptionKey
impl PartialEq<KeyEncryptionKey> for KeyEncryptionKey
source§fn eq(&self, other: &KeyEncryptionKey) -> bool
fn eq(&self, other: &KeyEncryptionKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for KeyEncryptionKey
impl StructuralEq for KeyEncryptionKey
impl StructuralPartialEq for KeyEncryptionKey
Auto Trait Implementations§
impl RefUnwindSafe for KeyEncryptionKey
impl Send for KeyEncryptionKey
impl Sync for KeyEncryptionKey
impl Unpin for KeyEncryptionKey
impl UnwindSafe for KeyEncryptionKey
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.