From 3604c3a7d3a5099ca75ff6f2c7ca672e1493e3d7 Mon Sep 17 00:00:00 2001 From: adustm Date: Tue, 28 Feb 2017 18:05:15 +0100 Subject: [PATCH] remove mbedtls_printf error notification --- features/mbedtls/targets/TARGET_STM/aes_alt.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/features/mbedtls/targets/TARGET_STM/aes_alt.c b/features/mbedtls/targets/TARGET_STM/aes_alt.c index 080364831b..a5a8fa4dce 100644 --- a/features/mbedtls/targets/TARGET_STM/aes_alt.c +++ b/features/mbedtls/targets/TARGET_STM/aes_alt.c @@ -275,8 +275,9 @@ void mbedtls_aes_encrypt( mbedtls_aes_context *ctx, unsigned char output[16] ) { - if (HAL_CRYP_AESECB_Encrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10) !=0) - mbedtls_printf( "HAL_CRYP_AESECB_Encrypt timeout\n" ); + if (HAL_CRYP_AESECB_Encrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10) !=0) { + // error found to be returned + } } @@ -285,8 +286,9 @@ void mbedtls_aes_decrypt( mbedtls_aes_context *ctx, unsigned char output[16] ) { - if(HAL_CRYP_AESECB_Decrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10)) - mbedtls_printf( "HAL_CRYP_AESECB_Decrypt timeout\n" ); + if(HAL_CRYP_AESECB_Decrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10)) { + // error found to be returned + } }