DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
ssh_keymat.cpp
Go to the documentation of this file.
1// Copyright (C) 2026 Douglas Quigg (dstroy0) <dquigg123@gmail.com>
2// SPDX-License-Identifier: AGPL-3.0-or-later
3
4/**
5 * @file ssh_keymat.cpp
6 * @brief BSS definitions for SSH session key and DH state pools.
7 *
8 * Declared extern in ssh_keymat.h; defined here as separate linker symbols
9 * so that a linear overflow from ssh_pkt[] (in ssh_packet.cpp) cannot reach
10 * ssh_keys[] or ssh_dh[] in a single stride. See ssh_keymat.h for the full
11 * security rationale.
12 */
13
15
#define MAX_SSH_CONNS
Maximum simultaneous SSH connections.
SshDhState ssh_dh[MAX_SSH_CONNS]
Pool of ephemeral DH state, one entry per MAX_SSH_CONNS.
SshKeyMat ssh_keys[MAX_SSH_CONNS]
Pool of session key material, one entry per MAX_SSH_CONNS.
SSH session key material - types, pools, and security model.
Ephemeral Diffie-Hellman state for one SSH connection.
Definition ssh_keymat.h:243
AES-256-CTR + HMAC-SHA2-256 session keys for one SSH connection.
Definition ssh_keymat.h:192