mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-11 12:58:14 +02:00
Fix key generation for RP2040.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -350,12 +350,11 @@ void init_otp_files() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#elif defined(ENABLE_EMULATION)
|
||||||
static uint8_t _otp1[32] = {0}, _otp2[32] = {0};
|
static uint8_t _otp1[32] = {0}, _otp2[32] = {0};
|
||||||
memset(_otp1, 0xAC, sizeof(_otp1));
|
memset(_otp1, 0xAC, sizeof(_otp1));
|
||||||
memset(_otp2, 0xBE, sizeof(_otp2));
|
memset(_otp2, 0xBE, sizeof(_otp2));
|
||||||
otp_key_1 = _otp1;
|
otp_key_1 = _otp1;
|
||||||
otp_key_2 = _otp2;
|
otp_key_2 = _otp2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user