Struct fcp_cryptoauth::handshake_packet::HandshakePacket [] [src]

pub struct HandshakePacket {
    pub raw: Vec<u8>,
}

Represents a raw CryptoAuth packet, as defined by https://github.com/fc00/spec/blob/10b349ab11/cryptoauth.md#packet-layout

Fields

Methods

impl HandshakePacket
[src]

Returns the session state of the packet if it is a known session state, as defined by https://github.com/fc00/spec/blob/10b349ab11/cryptoauth.md#protocol

Returns Err(value of field) if the session state field is set to an unknown value.

Returns a copy of the packet's Authorization Challenge.

Returns a copy of the packet's Nonce.

Returns a copy of the packet's sender permanent public key, as a byte array.

Returns a copy of the packet's Message Authentication Code.

Returns a copy of the packet's sender temporary public key, encrypted and as a byte array.

Returns a reference to the packet's encrypted “piggy-backed” data.

Returns msg_auth_code, sender_encrypted_temp_pub_key, and encrypted_data concatenated in that order. The purpose is to use it as input to the 'open' cryptographic primitive.

Trait Implementations

impl Debug for HandshakePacket
[src]

Formats the value using the given formatter.