pub type SecretBoxNonce = XSalsa20Poly1305Nonce;

Aliased Type§

struct SecretBoxNonce(/* private fields */);

Trait Implementations§

§

impl AsRef<[u8]> for XSalsa20Poly1305Nonce

§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for XSalsa20Poly1305Nonce

§

fn clone(&self) -> XSalsa20Poly1305Nonce

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for XSalsa20Poly1305Nonce

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for XSalsa20Poly1305Nonce

§

fn deserialize<D>( deserializer: D ) -> Result<XSalsa20Poly1305Nonce, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<[u8; 24]> for XSalsa20Poly1305Nonce

Trivial new type derivation. Secrets should have private interiors and be constructed directly from fixed length arrays of known length.

§

fn from(b: [u8; 24]) -> XSalsa20Poly1305Nonce

Converts to this type from the input type.
§

impl PartialEq<XSalsa20Poly1305Nonce> for XSalsa20Poly1305Nonce

Constant time equality check. This mitigates timing attacks where a remote agent can reverse engineer data by measuring tiny changes in latency associated with optimised equality checks. More matching bytes = more latency = vulnerability. This type of attack has been successfully demonstrated over a network despite varied latencies.

§

fn eq(&self, other: &XSalsa20Poly1305Nonce) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Serialize for XSalsa20Poly1305Nonce

§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<&[u8]> for XSalsa20Poly1305Nonce

§

type Error = SecurePrimitiveError

The type returned in the event of a conversion error.
§

fn try_from( slice: &[u8] ) -> Result<XSalsa20Poly1305Nonce, <XSalsa20Poly1305Nonce as TryFrom<&[u8]>>::Error>

Performs the conversion.
§

impl TryFrom<SerializedBytes> for XSalsa20Poly1305Nonce

§

type Error = SerializedBytesError

The type returned in the event of a conversion error.
§

fn try_from( sb: SerializedBytes ) -> Result<XSalsa20Poly1305Nonce, SerializedBytesError>

Performs the conversion.
§

impl TryFrom<Vec<u8, Global>> for XSalsa20Poly1305Nonce

§

type Error = SecurePrimitiveError

The type returned in the event of a conversion error.
§

fn try_from( v: Vec<u8, Global> ) -> Result<XSalsa20Poly1305Nonce, <XSalsa20Poly1305Nonce as TryFrom<Vec<u8, Global>>>::Error>

Performs the conversion.
§

impl Copy for XSalsa20Poly1305Nonce

§

impl Eq for XSalsa20Poly1305Nonce