[−][src]Struct ring::aead::Nonce
A nonce for a single AEAD opening or sealing operation.
The user must ensure, for a particular key, that each nonce is unique.
Nonce
intentionally doesn't implement Clone
to ensure that each one is
consumed at most once.
Methods
impl Nonce
[src]
pub fn try_assume_unique_for_key(value: &[u8]) -> Result<Self, Unspecified>
[src]
Constructs a Nonce
with the given value, assuming that the value is
unique for the lifetime of the key it is being used with.
Fails if value
isn't NONCE_LEN
bytes long.
pub fn assume_unique_for_key(value: [u8; 12]) -> Self
[src]
Constructs a Nonce
with the given value, assuming that the value is
unique for the lifetime of the key it is being used with.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,