mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-27 06:41:08 +00:00
Free other secret in tls12_prf context
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
23650286ac
commit
e3ee221893
@ -4315,6 +4315,13 @@ psa_status_t psa_key_derivation_abort( psa_key_derivation_operation_t *operation
|
||||
mbedtls_free( operation->ctx.tls12_prf.label );
|
||||
}
|
||||
|
||||
if( operation->ctx.tls12_prf.other_secret != NULL )
|
||||
{
|
||||
mbedtls_platform_zeroize( operation->ctx.tls12_prf.other_secret,
|
||||
operation->ctx.tls12_prf.other_secret_length );
|
||||
mbedtls_free( operation->ctx.tls12_prf.other_secret );
|
||||
}
|
||||
|
||||
status = PSA_SUCCESS;
|
||||
|
||||
/* We leave the fields Ai and output_block to be erased safely by the
|
||||
|
Loading…
x
Reference in New Issue
Block a user