pub struct BreakCrypto {
pub dialect: Option<u16>,
pub signing_key: Option<[u8; 16]>,
pub enc_keys: Option<([u8; 32], [u8; 32])>,
pub cipher: Option<u16>,
pub session_id: u64,
pub encrypt: bool,
pub signed: bool,
}Expand description
Crypto material needed to sign/seal an unsolicited oplock break for a holder, snapshotted at grant time (mirrors the async completion path).
Fields§
§dialect: Option<u16>Negotiated dialect.
signing_key: Option<[u8; 16]>Signing key, if the session signs.
enc_keys: Option<([u8; 32], [u8; 32])>(c2s, s2c) cipher keys, if a cipher is negotiated.
cipher: Option<u16>Negotiated cipher id.
session_id: u64Session id for the transform header.
encrypt: boolSeal the break notification.
signed: boolSign the break notification.
Trait Implementations§
Source§impl Clone for BreakCrypto
impl Clone for BreakCrypto
Source§fn clone(&self) -> BreakCrypto
fn clone(&self) -> BreakCrypto
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BreakCrypto
impl RefUnwindSafe for BreakCrypto
impl Send for BreakCrypto
impl Sync for BreakCrypto
impl Unpin for BreakCrypto
impl UnsafeUnpin for BreakCrypto
impl UnwindSafe for BreakCrypto
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