Type Alias holochain::prelude::nonce::SecretBoxNonce
pub type SecretBoxNonce = XSalsa20Poly1305Nonce;
Aliased Type§
struct SecretBoxNonce(/* private fields */);
Trait Implementations§
§impl AsRef<[u8]> for XSalsa20Poly1305Nonce
impl AsRef<[u8]> for XSalsa20Poly1305Nonce
§impl Clone for XSalsa20Poly1305Nonce
impl Clone for XSalsa20Poly1305Nonce
§fn clone(&self) -> XSalsa20Poly1305Nonce
fn clone(&self) -> XSalsa20Poly1305Nonce
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for XSalsa20Poly1305Nonce
impl Debug for XSalsa20Poly1305Nonce
§impl<'de> Deserialize<'de> for XSalsa20Poly1305Nonce
impl<'de> Deserialize<'de> for XSalsa20Poly1305Nonce
§fn deserialize<D>(
deserializer: D
) -> Result<XSalsa20Poly1305Nonce, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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
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
fn from(b: [u8; 24]) -> XSalsa20Poly1305Nonce
Converts to this type from the input type.
§impl PartialEq<XSalsa20Poly1305Nonce> for XSalsa20Poly1305Nonce
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
fn eq(&self, other: &XSalsa20Poly1305Nonce) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for XSalsa20Poly1305Nonce
impl Serialize for XSalsa20Poly1305Nonce
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
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
impl TryFrom<&[u8]> for XSalsa20Poly1305Nonce
§type Error = SecurePrimitiveError
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>
fn try_from( slice: &[u8] ) -> Result<XSalsa20Poly1305Nonce, <XSalsa20Poly1305Nonce as TryFrom<&[u8]>>::Error>
Performs the conversion.
§impl TryFrom<SerializedBytes> for XSalsa20Poly1305Nonce
impl TryFrom<SerializedBytes> for XSalsa20Poly1305Nonce
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
§fn try_from(
sb: SerializedBytes
) -> Result<XSalsa20Poly1305Nonce, SerializedBytesError>
fn try_from( sb: SerializedBytes ) -> Result<XSalsa20Poly1305Nonce, SerializedBytesError>
Performs the conversion.