pub struct EncryptOptions<'a, R: RngCore + CryptoRng> {
pub rng: &'a mut R,
pub msg_id: String,
pub timestamp_unix: u64,
}Expand description
Options for deterministic / injectable encryption parameters.
Fields§
§rng: &'a mut RRNG used for CEK, nonces, ML-KEM encapsulation, and signing randomness.
msg_id: StringMessage ID written into the header (normally a UUID).
timestamp_unix: u64Unix timestamp written into the header.
Auto Trait Implementations§
impl<'a, R> !UnwindSafe for EncryptOptions<'a, R>
impl<'a, R> Freeze for EncryptOptions<'a, R>
impl<'a, R> RefUnwindSafe for EncryptOptions<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for EncryptOptions<'a, R>where
R: Send,
impl<'a, R> Sync for EncryptOptions<'a, R>where
R: Sync,
impl<'a, R> Unpin for EncryptOptions<'a, R>
impl<'a, R> UnsafeUnpin for EncryptOptions<'a, R>
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