pub struct Nonce(/* private fields */);Expand description
Nonce bytes carried by signed invocations and WHY queries.
Nonce intentionally does not implement Clone or Copy; duplicating
nonce bytes increases the number of plaintext copies that must be cleared.
Implementations§
Trait Implementations§
impl Eq for Nonce
Source§impl Hash for Nonce
impl Hash for Nonce
Source§fn hash<H: Hasher>(&self, state: &mut H)
fn hash<H: Hasher>(&self, state: &mut H)
Hashes nonce bytes for non-adversarial collection use.
This hash operation is not constant-time. Replay caches for
high-assurance deployments should use a keyed structure that accounts
for timing and bucket-collision behavior instead of treating Hash as
a security boundary.
Auto Trait Implementations§
impl Freeze for Nonce
impl RefUnwindSafe for Nonce
impl Send for Nonce
impl Sync for Nonce
impl Unpin for Nonce
impl UnsafeUnpin for Nonce
impl UnwindSafe for Nonce
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