mirror of https://github.com/ARMmbed/mbed-os.git
Zeroize output buffer, upon authentication faliure.
Clear output buffer upon failure.pull/8704/head
parent
1aaff0e389
commit
53c02d7457
|
@ -146,6 +146,8 @@ int mbedtls_ccm_auth_decrypt( mbedtls_ccm_context *ctx, size_t length,
|
|||
}
|
||||
|
||||
exit:
|
||||
if( ret != 0 )
|
||||
mbedtls_platform_zeroize( output, length );
|
||||
return( ret );
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue