ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
ota_rsa_der.h File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::ota
 

Functions

size_t esphome::ota::rsa_der_public_key (const uint8_t *modulus_be, const uint8_t *exponent_be, size_t exponent_len, uint8_t *out, size_t out_len)
 Wrap a raw RSA-3072 modulus and exponent as a DER RSAPublicKey.
 

Variables

constexpr size_t esphome::ota::RSA_3072_MODULUS_BYTES = 384
 
constexpr uint8_t esphome::ota::RSA_DER_MODULUS_PREFIX [] = {0x02, 0x82, 0x01, 0x81, 0x00}
 
constexpr size_t esphome::ota::RSA_DER_MODULUS_LEN = sizeof(RSA_DER_MODULUS_PREFIX) + RSA_3072_MODULUS_BYTES
 
constexpr size_t esphome::ota::RSA_DER_PUBKEY_MAX = 4 + RSA_DER_MODULUS_LEN + 7