|
DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
|
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). | |
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.
| uint8_t SshRsaPrivKey::n[SSH_RSA_KEY_BYTES] |
| uint8_t SshRsaPrivKey::d[SSH_RSA_KEY_BYTES] |
| uint8_t SshRsaPrivKey::e_bytes[4] |