DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
ssh_keymat.cpp File Reference

BSS definitions for SSH session key and DH state pools. More...

Go to the source code of this file.

Variables

SshKeyMat ssh_keys [MAX_SSH_CONNS]
 Pool of session key material, one entry per MAX_SSH_CONNS.
 
SshDhState ssh_dh [MAX_SSH_CONNS]
 Pool of ephemeral DH state, one entry per MAX_SSH_CONNS.
 

Detailed Description

BSS definitions for SSH session key and DH state pools.

Declared extern in ssh_keymat.h; defined here as separate linker symbols so that a linear overflow from ssh_pkt[] (in ssh_packet.cpp) cannot reach ssh_keys[] or ssh_dh[] in a single stride. See ssh_keymat.h for the full security rationale.

Definition in file ssh_keymat.cpp.

Variable Documentation

◆ ssh_keys

Pool of session key material, one entry per MAX_SSH_CONNS.

Separate BSS symbol from ssh_pool[] - see security model. Zeroed on connection close by ssh_keymat_wipe(slot).

Definition at line 16 of file ssh_keymat.cpp.

Referenced by ssh_dh_derive_keys_sid(), ssh_pkt_recv(), and ssh_pkt_send().

◆ ssh_dh

Pool of ephemeral DH state, one entry per MAX_SSH_CONNS.

Definition at line 17 of file ssh_keymat.cpp.

Referenced by ssh_dh_generate(), and ssh_kexdh_handle().