ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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 1031 of file packet.h.

Field Documentation

◆ preferred_auth

uint8_t crypto_capabilities_packet_t::preferred_auth

Preferred authentication algorithm (AUTH_ALGO_*).

Definition at line 1043 of file packet.h.

Referenced by browser_client_handshake_receive(), browser_session_receive(), and client_handshake_receive().

◆ preferred_cipher

uint8_t crypto_capabilities_packet_t::preferred_cipher

Preferred cipher algorithm (CIPHER_ALGO_*).

Definition at line 1045 of file packet.h.

Referenced by browser_client_handshake_receive(), browser_session_receive(), and client_handshake_receive().

◆ preferred_kex

uint8_t crypto_capabilities_packet_t::preferred_kex

Preferred key exchange algorithm (KEX_ALGO_*).

Definition at line 1041 of file packet.h.

Referenced by browser_client_handshake_receive(), browser_session_receive(), and client_handshake_receive().

◆ requires_verification

uint8_t crypto_capabilities_packet_t::requires_verification

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

Definition at line 1039 of file packet.h.

Referenced by browser_client_handshake_receive(), browser_session_receive(), and client_handshake_receive().

◆ supported_auth_algorithms

uint16_t crypto_capabilities_packet_t::supported_auth_algorithms

Supported authentication algorithms bitmask (AUTH_ALGO_*).

Definition at line 1035 of file packet.h.

Referenced by browser_client_handshake_receive(), browser_session_receive(), and client_handshake_receive().

◆ supported_cipher_algorithms

uint16_t crypto_capabilities_packet_t::supported_cipher_algorithms

Supported cipher algorithms bitmask (CIPHER_ALGO_*).

Definition at line 1037 of file packet.h.

Referenced by browser_client_handshake_receive(), browser_session_receive(), and client_handshake_receive().

◆ supported_kex_algorithms

uint16_t crypto_capabilities_packet_t::supported_kex_algorithms

Supported key exchange algorithms bitmask (KEX_ALGO_*).

Definition at line 1033 of file packet.h.

Referenced by browser_client_handshake_receive(), browser_session_receive(), and client_handshake_receive().


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