Clean hardware sha256 state on free

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-08-22 00:48:00 +02:00
parent 4d2e6c25af
commit 87cbaac98e
+1
View File
@@ -75,6 +75,7 @@ void mbedtls_sha256_free(mbedtls_sha256_context *ctx) {
return;
}
pico_sha256_cleanup(&ctx->pico_state);
mbedtls_platform_zeroize(ctx, sizeof(mbedtls_sha256_context));
}