Harden nRF52 storage and hardware recovery

This commit is contained in:
mikecarper
2026-07-21 00:01:01 -07:00
parent d5a00da2a0
commit bda0722ad8
40 changed files with 2069 additions and 275 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ void LocalIdentity::printTo(Stream& s) const {
s.print("prv_key: "); Utils::printHex(s, prv_key, PRV_KEY_SIZE); s.println();
}
size_t LocalIdentity::writeTo(uint8_t* dest, size_t max_len) {
size_t LocalIdentity::writeTo(uint8_t* dest, size_t max_len) const {
if (max_len < PRV_KEY_SIZE) return 0; // not big enough
if (max_len < PRV_KEY_SIZE + PUB_KEY_SIZE) { // only room for prv_key