Harden nRF52 storage and hardware recovery
This commit is contained in:
1 parent
d5a00da2a0
commit
bda0722ad8
40 files changed
+2069
-275
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user