[][src]Struct ciph::salsa::Psk

pub struct Psk { /* fields omitted */ }

Pre-shared Key consisting of a WrapKey and a custom sequence of check bytes. These check bytes are used in the handshake by the server to ensure that decryption of the the transmitted key occurred properly.

Implementations

impl Psk[src]

pub fn wrap_k(&self) -> &WrapKey[src]

pub fn check(&self) -> &Vec<u8>[src]

impl Psk[src]

pub fn new(wrap_k: WrapKey, check: Vec<u8>) -> Self[src]

Trait Implementations

impl Clone for Psk[src]

impl Debug for Psk[src]

impl Drop for Psk[src]

impl Eq for Psk[src]

impl FromStr for Psk[src]

The actual string processing part. Make sure to zero the source string lest keys linger in memory.

type Err = LoadPskError

The associated error which can be returned from parsing.

impl PartialEq<Psk> for Psk[src]

impl StructuralEq for Psk[src]

impl StructuralPartialEq for Psk[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,