mirror of
https://github.com/polhenarejos/pico-keys-sdk.git
synced 2026-08-24 05:27:34 +01:00
Clean hardware sha256 state on free
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user