Skip to content

Commit 5c858a4

Browse files
committed
remove mbedtls_printf error notification
1 parent d73088a commit 5c858a4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

features/mbedtls/targets/TARGET_STM/aes_alt.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,9 @@ void mbedtls_aes_encrypt( mbedtls_aes_context *ctx,
275275
unsigned char output[16] )
276276
{
277277

278-
if (HAL_CRYP_AESECB_Encrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10) !=0)
279-
mbedtls_printf( "HAL_CRYP_AESECB_Encrypt timeout\n" );
278+
if (HAL_CRYP_AESECB_Encrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10) !=0) {
279+
// error found to be returned
280+
}
280281

281282
}
282283

@@ -285,8 +286,9 @@ void mbedtls_aes_decrypt( mbedtls_aes_context *ctx,
285286
unsigned char output[16] )
286287
{
287288

288-
if(HAL_CRYP_AESECB_Decrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10))
289-
mbedtls_printf( "HAL_CRYP_AESECB_Decrypt timeout\n" );
289+
if(HAL_CRYP_AESECB_Decrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10)) {
290+
// error found to be returned
291+
}
290292
}
291293

292294

0 commit comments

Comments
 (0)