remove mbedtls_printf error notification

pull/3691/head
adustm 2017-02-28 18:05:15 +01:00
parent d73088a90e
commit 5c858a456e
1 changed files with 6 additions and 4 deletions

View File

@ -275,8 +275,9 @@ void mbedtls_aes_encrypt( mbedtls_aes_context *ctx,
unsigned char output[16] ) unsigned char output[16] )
{ {
if (HAL_CRYP_AESECB_Encrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10) !=0) 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" ); // error found to be returned
}
} }
@ -285,8 +286,9 @@ void mbedtls_aes_decrypt( mbedtls_aes_context *ctx,
unsigned char output[16] ) unsigned char output[16] )
{ {
if(HAL_CRYP_AESECB_Decrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10)) if(HAL_CRYP_AESECB_Decrypt(&ctx->hcryp_aes, (uint8_t *)input, 16, (uint8_t *)output, 10)) {
mbedtls_printf( "HAL_CRYP_AESECB_Decrypt timeout\n" ); // error found to be returned
}
} }