From 3d124c093eba62f0379985e212a1eb0b7ceeb531 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 8 Jul 2022 09:06:08 -0700 Subject: [PATCH] Fix PK function name in log. Remove the ECC logging (spams benchmark with `--enable-debug`). --- src/pk.c | 2 +- wolfcrypt/src/ecc.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pk.c b/src/pk.c index 148a6f7ad..10db127bb 100644 --- a/src/pk.c +++ b/src/pk.c @@ -10375,7 +10375,7 @@ WOLFSSL_ECDSA_SIG *wolfSSL_ECDSA_do_sign(const unsigned char *d, int dlen, } } else { - WOLFSSL_MSG("wc_ecc_sign_hash_ex failed"); + WOLFSSL_MSG("wc_ecc_sign_hash failed"); } } diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index eadec7cc8..2776e89ac 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -4308,8 +4308,6 @@ static int wc_ecc_shared_secret_gen_sync(ecc_key* private_key, ecc_point* point, #endif #endif - WOLFSSL_ENTER("wc_ecc_shared_secret_gen_sync"); - #ifdef HAVE_ECC_CDH /* if cofactor flag has been set */ if (private_key->flags & WC_ECC_FLAG_COFACTOR) { @@ -4464,8 +4462,6 @@ static int wc_ecc_shared_secret_gen_sync(ecc_key* private_key, ecc_point* point, #endif #endif - WOLFSSL_LEAVE("wc_ecc_shared_secret_gen_sync", err); - return err; } @@ -4650,8 +4646,6 @@ int wc_ecc_shared_secret_ex(ecc_key* private_key, ecc_point* point, RESTORE_VECTOR_REGISTERS(); - WOLFSSL_LEAVE("wc_ecc_shared_secret_ex", err); - /* if async pending then return and skip done cleanup below */ if (err == WC_PENDING_E) { private_key->state++;