mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-09 22:03:41 +02:00
Wipe stack buffers in block_cipher_df
This is a partial backport of1b36499062(only for the buffer wiping). Other wiping calls were previously added as backports of "CTR_DRBG: clean stack buffers" (d9aa84dc0d). This completes the backporting of stack buffer wiping from the development branch.
This commit is contained in:
@@ -226,6 +226,10 @@ static int block_cipher_df( unsigned char *output,
|
||||
|
||||
mbedtls_aes_free( &aes_ctx );
|
||||
|
||||
mbedtls_zeroize( buf, sizeof( buf ) );
|
||||
mbedtls_zeroize( tmp, sizeof( tmp ) );
|
||||
mbedtls_zeroize( key, sizeof( key ) );
|
||||
mbedtls_zeroize( chain, sizeof( chain ) );
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user