From 977e93cbaac1eda244f937200bc8e4852ccfc25a Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 13 Sep 2021 13:12:37 -0400 Subject: [PATCH] Get rid of wolfssl warning about timing resistance --- src/wallet/crypter.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/wallet/crypter.cpp b/src/wallet/crypter.cpp index 17519c0ca..ff0da14d6 100644 --- a/src/wallet/crypter.cpp +++ b/src/wallet/crypter.cpp @@ -2,7 +2,6 @@ // Copyright (c) 2016-2021 The Hush developers // Distributed under the GPLv3 software license, see the accompanying // file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html - /****************************************************************************** * Copyright © 2014-2019 The SuperNET Developers. * * * @@ -17,17 +16,21 @@ * Removal or modification of this copyright notice is prohibited. * * * ******************************************************************************/ - #include "crypter.h" - #include "script/script.h" #include "script/standard.h" #include "streams.h" #include "util.h" - #include #include #include +// TODO: these are not set correctly by wolfssl for some reason. Ja bless. +#undef ECC_TIMING_RESISTANT +#undef TFM_TIMING_RESISTANT +#define ECC_TIMING_RESISTANT 420 +#define TFM_TIMING_RESISTANT 420 +#undef WC_RSA_BLINDING +#define WC_RSA_BLINDING #include #include