Zeroize pkey

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2025-12-27 22:02:58 +01:00
parent 7dc7be0909
commit 3bf035d68a
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -327,6 +327,7 @@ void init_otp_files() {
if (ret != 0) {
printf("Error writing OTP key 2 [%d]\n", ret);
}
mbedtls_platform_zeroize(pkey, sizeof(pkey));
#ifdef PICO_RP2350
otp_chaff(OTP_KEY_2, 32);
#endif