pub struct CipherSettings {
pub key_settings: KeySettings,
pub key_refresh: KeyMaterialRefreshSettings,
pub stream_keys: StreamEncryptionKeys,
}
Fields§
§key_settings: KeySettings
§key_refresh: KeyMaterialRefreshSettings
§stream_keys: StreamEncryptionKeys
Implementations§
Source§impl CipherSettings
impl CipherSettings
pub fn new_random( key_settings: &KeySettings, km_refresh: &KeyMaterialRefreshSettings, ) -> Self
pub fn new( key_settings: &KeySettings, km_refresh: &KeyMaterialRefreshSettings, key_material: &KeyingMaterialMessage, ) -> Result<Self, KeyMaterialError>
pub fn wrap_keying_material(&self) -> Option<KeyingMaterialMessage>
Trait Implementations§
Source§impl Clone for CipherSettings
impl Clone for CipherSettings
Source§fn clone(&self) -> CipherSettings
fn clone(&self) -> CipherSettings
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 CipherSettings
impl Debug for CipherSettings
Source§impl PartialEq for CipherSettings
impl PartialEq for CipherSettings
impl Eq for CipherSettings
impl StructuralPartialEq for CipherSettings
Auto Trait Implementations§
impl Freeze for CipherSettings
impl RefUnwindSafe for CipherSettings
impl Send for CipherSettings
impl Sync for CipherSettings
impl Unpin for CipherSettings
impl UnwindSafe for CipherSettings
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.