pub struct KeyMaterialRefreshSettings { /* private fields */ }
Implementations§
Source§impl KeyMaterialRefreshSettings
impl KeyMaterialRefreshSettings
pub fn new( period: usize, pre_announcement_period: usize, ) -> Result<Self, KeyMaterialRefreshSettingsError>
pub fn period(&self) -> usize
pub fn pre_announcement_period(&self) -> usize
Sourcepub fn with_period(
self,
period: usize,
) -> Result<Self, KeyMaterialRefreshSettingsError>
pub fn with_period( self, period: usize, ) -> Result<Self, KeyMaterialRefreshSettingsError>
KM Refresh Period specifies the number of packets to be sent before switching to the new SEK
The recommended KM Refresh Period is after 2^25 packets encrypted with the same SEK are sent.
Sourcepub fn with_pre_announcement_period(
self,
pre_announcement_period: usize,
) -> Result<Self, KeyMaterialRefreshSettingsError>
pub fn with_pre_announcement_period( self, pre_announcement_period: usize, ) -> Result<Self, KeyMaterialRefreshSettingsError>
KM Pre-Announcement Period specifies when a new key is announced in a number of packets before key switchover. The same value is used to determine when to decommission the old key after switchover.
The recommended KM Pre-Announcement Period is 4000 packets (i.e. a new key is generated, wrapped, and sent at 2^25 minus 4000 packets; the old key is decommissioned at 2^25 plus 4000 packets).
Trait Implementations§
Source§impl Clone for KeyMaterialRefreshSettings
impl Clone for KeyMaterialRefreshSettings
Source§fn clone(&self) -> KeyMaterialRefreshSettings
fn clone(&self) -> KeyMaterialRefreshSettings
Returns a duplicate 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 KeyMaterialRefreshSettings
impl Debug for KeyMaterialRefreshSettings
Source§impl Default for KeyMaterialRefreshSettings
impl Default for KeyMaterialRefreshSettings
impl Eq for KeyMaterialRefreshSettings
impl StructuralPartialEq for KeyMaterialRefreshSettings
Auto Trait Implementations§
impl Freeze for KeyMaterialRefreshSettings
impl RefUnwindSafe for KeyMaterialRefreshSettings
impl Send for KeyMaterialRefreshSettings
impl Sync for KeyMaterialRefreshSettings
impl Unpin for KeyMaterialRefreshSettings
impl UnwindSafe for KeyMaterialRefreshSettings
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.