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

RSA-2048 private key parameters. More...

#include <ssh_rsa.h>

Public Attributes

uint8_t n [SSH_RSA_KEY_BYTES]
 Modulus n (256 bytes, big-endian).
 
uint8_t d [SSH_RSA_KEY_BYTES]
 Private exponent d (SENSITIVE).
 
uint8_t e_bytes [4]
 Public exponent e (typically 65537).
 

Detailed Description

RSA-2048 private key parameters.

WARNING: This struct is intentionally NOT to be declared as a global or static variable. The ONLY valid use is as an automatic (stack) variable inside ssh_rsa_sign(). After the signature is computed, every byte is overwritten via ssh_wipe() before the function returns.

On Arduino, these fields are populated from mbedtls_rsa_context by reading the mpi limbs into 256-byte big-endian buffers.

On native, the fields are set directly by the test fixture or loaded from a DER blob via a minimal DER parser included in ssh_rsa.cpp.

Definition at line 191 of file ssh_rsa.h.

Member Data Documentation

◆ n

uint8_t SshRsaPrivKey::n[SSH_RSA_KEY_BYTES]

Modulus n (256 bytes, big-endian).

Definition at line 193 of file ssh_rsa.h.

◆ d

uint8_t SshRsaPrivKey::d[SSH_RSA_KEY_BYTES]

Private exponent d (SENSITIVE).

Definition at line 194 of file ssh_rsa.h.

◆ e_bytes

uint8_t SshRsaPrivKey::e_bytes[4]

Public exponent e (typically 65537).

Definition at line 195 of file ssh_rsa.h.


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