mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-07 13:22:46 +00:00
Zeroize tmp buffer in entropy_update()
This commit is contained in:
parent
364051ff57
commit
6512193eff
@ -195,6 +195,8 @@ static int entropy_update( mbedtls_entropy_context *ctx, unsigned char source_id
|
|||||||
mbedtls_sha256_update( &ctx->accumulator, p, use_len );
|
mbedtls_sha256_update( &ctx->accumulator, p, use_len );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
mbedtls_zeroize( tmp, sizeof( tmp ) );
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user