[−][src]Struct ssb_crypto::NetworkKey
32-byte network key, known by client and server. Usually NetworkKey::SSB_MAIN_NET
Methods
impl NetworkKey
[src]
pub const SSB_MAIN_NET: NetworkKey
[src]
pub fn random() -> NetworkKey
[src]
pub fn as_slice(&self) -> &[u8]
[src]
pub fn from_slice(b: &[u8]) -> Option<NetworkKey>
[src]
pub fn authenticate(&self, data: &[u8]) -> AuthTag
[src]
pub fn verify(&self, tag: &AuthTag, data: &[u8]) -> bool
[src]
pub const fn size() -> usize
[src]
Trait Implementations
impl Clone for NetworkKey
[src]
fn clone(&self) -> NetworkKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NetworkKey
[src]
impl PartialEq<NetworkKey> for NetworkKey
[src]
fn eq(&self, other: &NetworkKey) -> bool
[src]
fn ne(&self, other: &NetworkKey) -> bool
[src]
impl StructuralPartialEq for NetworkKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for NetworkKey
impl Send for NetworkKey
impl Sync for NetworkKey
impl Unpin for NetworkKey
impl UnwindSafe for NetworkKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,