Enum fcp_cryptoauth::auth_failure::AuthFailure [] [src]

pub enum AuthFailure {
    UnknownAuthMethod(u8),
    AuthNone,
    InvalidCredentials(String),
    WrongPublicKey,
    UnexpectedPacket(String),
    PacketTooShort(String),
    CorruptedPacket(String),
    LatePacket,
    Replay,
}

Enumeration used for reporting errors in authenticating a handshake or a data packet.

Variants

An incoming peer tried an auth method that is not None/Password/LoginPassword

An incoming peer tried to connect with None auth.

An incoming peer tried to connect with credentials unknown to us.

A peer used a public key different than expected.

The packet type does not match the session state.

The packet was too short to be decrypted (handshake of size < 120, or data of size < 28)

The packet had a bad format or its auth code was invalid.

The packet's nonce is way lower than the max packet nonce (ie. difference > 64) seen so far.

This packet was already received (detected using the nonce as a packet id)

Trait Implementations

impl Debug for AuthFailure
[src]

Formats the value using the given formatter.

impl Clone for AuthFailure
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for AuthFailure
[src]

impl PartialEq for AuthFailure
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.