ascii-chat 0.11.33
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 952 of file packet.h.

Field Documentation

◆ preferred_auth

uint8_t crypto_capabilities_packet_t::preferred_auth

Preferred authentication algorithm (AUTH_ALGO_*)

Definition at line 964 of file packet.h.

Referenced by client_crypto_handshake(), and discovery_session_process().

◆ preferred_cipher

uint8_t crypto_capabilities_packet_t::preferred_cipher

Preferred cipher algorithm (CIPHER_ALGO_*)

Definition at line 966 of file packet.h.

Referenced by client_crypto_handshake(), and discovery_session_process().

◆ preferred_kex

uint8_t crypto_capabilities_packet_t::preferred_kex

Preferred key exchange algorithm (KEX_ALGO_*)

Definition at line 962 of file packet.h.

Referenced by client_crypto_handshake(), and discovery_session_process().

◆ requires_verification

uint8_t crypto_capabilities_packet_t::requires_verification

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

Definition at line 960 of file packet.h.

Referenced by client_crypto_handshake(), discovery_session_process(), and server_crypto_handshake().

◆ supported_auth_algorithms

uint16_t crypto_capabilities_packet_t::supported_auth_algorithms

Supported authentication algorithms bitmask (AUTH_ALGO_*)

Definition at line 956 of file packet.h.

Referenced by client_crypto_handshake(), discovery_session_process(), and server_crypto_handshake().

◆ supported_cipher_algorithms

uint16_t crypto_capabilities_packet_t::supported_cipher_algorithms

Supported cipher algorithms bitmask (CIPHER_ALGO_*)

Definition at line 958 of file packet.h.

Referenced by client_crypto_handshake(), discovery_session_process(), and server_crypto_handshake().

◆ supported_kex_algorithms

uint16_t crypto_capabilities_packet_t::supported_kex_algorithms

Supported key exchange algorithms bitmask (KEX_ALGO_*)

Definition at line 954 of file packet.h.

Referenced by client_crypto_handshake(), discovery_session_process(), and server_crypto_handshake().


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