ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
crypto_capabilities_packet_t Struct Reference

Crypto capabilities packet structure (Packet Type 14). More...

#include <include/ascii-chat/network/packet/packet.h>

Data Fields

uint16_t supported_kex_algorithms
 Supported key exchange algorithms bitmask (KEX_ALGO_*).
uint16_t supported_auth_algorithms
 Supported authentication algorithms bitmask (AUTH_ALGO_*).
uint16_t supported_cipher_algorithms
 Supported cipher algorithms bitmask (CIPHER_ALGO_*).
uint8_t requires_verification
 Server verification requirement flag (1=required, 0=optional).
uint8_t preferred_kex
 Preferred key exchange algorithm (KEX_ALGO_*).
uint8_t preferred_auth
 Preferred authentication algorithm (AUTH_ALGO_*).
uint8_t preferred_cipher
 Preferred cipher algorithm (CIPHER_ALGO_*).

Detailed Description

Crypto capabilities packet structure (Packet Type 14).

Sent by client to server during crypto handshake to advertise supported cryptographic algorithms and preferences.

Note
This packet must be sent UNENCRYPTED (handshake packet).

Definition at line 1008 of file packet.h.

Field Documentation

◆ preferred_auth

uint8_t crypto_capabilities_packet_t::preferred_auth

Preferred authentication algorithm (AUTH_ALGO_*).

Definition at line 1020 of file packet.h.

Referenced by client_handshake_receive(), and peer_crypto_receive().

◆ preferred_cipher

uint8_t crypto_capabilities_packet_t::preferred_cipher

Preferred cipher algorithm (CIPHER_ALGO_*).

Definition at line 1022 of file packet.h.

Referenced by client_handshake_receive(), and peer_crypto_receive().

◆ preferred_kex

uint8_t crypto_capabilities_packet_t::preferred_kex

Preferred key exchange algorithm (KEX_ALGO_*).

Definition at line 1018 of file packet.h.

Referenced by client_handshake_receive(), and peer_crypto_receive().

◆ requires_verification

uint8_t crypto_capabilities_packet_t::requires_verification

Server verification requirement flag (1=required, 0=optional).

Definition at line 1016 of file packet.h.

Referenced by client_handshake_receive(), and peer_crypto_receive().

◆ supported_auth_algorithms

uint16_t crypto_capabilities_packet_t::supported_auth_algorithms

Supported authentication algorithms bitmask (AUTH_ALGO_*).

Definition at line 1012 of file packet.h.

Referenced by client_handshake_receive(), and peer_crypto_receive().

◆ supported_cipher_algorithms

uint16_t crypto_capabilities_packet_t::supported_cipher_algorithms

Supported cipher algorithms bitmask (CIPHER_ALGO_*).

Definition at line 1014 of file packet.h.

Referenced by client_handshake_receive(), and peer_crypto_receive().

◆ supported_kex_algorithms

uint16_t crypto_capabilities_packet_t::supported_kex_algorithms

Supported key exchange algorithms bitmask (KEX_ALGO_*).

Definition at line 1010 of file packet.h.

Referenced by client_handshake_receive(), and peer_crypto_receive().


The documentation for this struct was generated from the following file: