#[non_exhaustive]pub struct SFrameConfig {
pub replay_window: Option<usize>,
pub allow_non_minimal_headers: bool,
}Expand description
Options of an SFrameContext.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.replay_window: Option<usize>The anti-replay window of each decryption key, in counter values, or None for no
replay protection (RFC 9605 section 9.3 leaves it to the receiver). With a window, an
authentic ciphertext is accepted once per counter, and refused when its counter is older
than the window. Rounded up to a multiple of 64, at most
MAX_REPLAY_WINDOW. It applies to keys added afterwards.
Default: DEFAULT_REPLAY_WINDOW.
allow_non_minimal_headers: boolAccept a header whose KID or CTR is longer than it needs to be. RFC 9605 section 4.3 requires the shortest form of a sender; this admits senders that do not follow it.
Default: false.
Trait Implementations§
Source§impl Clone for SFrameConfig
impl Clone for SFrameConfig
Source§impl Debug for SFrameConfig
impl Debug for SFrameConfig
Source§impl Default for SFrameConfig
impl Default for SFrameConfig
impl Eq for SFrameConfig
Source§impl PartialEq for SFrameConfig
impl PartialEq for SFrameConfig
impl StructuralPartialEq for SFrameConfig
Auto Trait Implementations§
impl Forget for SFrameConfig
impl Freeze for SFrameConfig
impl Move for SFrameConfig
impl RefUnwindSafe for SFrameConfig
impl Send for SFrameConfig
impl Sync for SFrameConfig
impl Unpin for SFrameConfig
impl UnsafeUnpin for SFrameConfig
impl UnwindSafe for SFrameConfig
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