Zeroize output buffer, upon authentication faliure.

Clear output buffer upon failure.
pull/8704/head
Ron Eldor 2018-11-15 17:24:54 +02:00
parent 1aaff0e389
commit 53c02d7457
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}