mirror of
https://github.com/polhenarejos/pico-keys-sdk.git
synced 2026-08-23 04:57:22 +01:00
RP2040 has no OTP, so we keep otp ptr to NULL.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
+2
-10
@@ -15,8 +15,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "picokeys.h"
|
||||
#include "otp_platform.h"
|
||||
|
||||
@@ -36,12 +34,6 @@ bool otp_platform_is_secure_boot_locked(void) {
|
||||
}
|
||||
|
||||
void otp_platform_init(const uint8_t **otp_key_1_out, const uint8_t **otp_key_2_out) {
|
||||
static uint8_t _otp1[32] = {0};
|
||||
static uint8_t _otp2[32] = {0};
|
||||
|
||||
memset(_otp1, 0xDF, sizeof(_otp1));
|
||||
memset(_otp2, 0x93, sizeof(_otp2));
|
||||
|
||||
*otp_key_1_out = _otp1;
|
||||
*otp_key_2_out = _otp2;
|
||||
*otp_key_1_out = NULL;
|
||||
*otp_key_2_out = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user