From 0ff8cc90aa7f4d3403ed77d12853c17dd839669f Mon Sep 17 00:00:00 2001 From: Greg Alexander Date: Tue, 16 Dec 2014 21:48:41 -0500 Subject: [PATCH] back out partial LTC_SOURCE hack, in preparation for a more thorough one Revert "somehow #define LTC_SOURCE 1 (which should really be in all libtomcrypt" This reverts commit 11c4fa947dafffbb94cdc4fad4862235f36cef2d. --- dropbear/libtomcrypt/src/headers/tomcrypt_custom.h | 2 +- dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c | 1 - dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mulmod_timing.c | 1 - dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c | 1 - dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dropbear/libtomcrypt/src/headers/tomcrypt_custom.h b/dropbear/libtomcrypt/src/headers/tomcrypt_custom.h index cbfaeb3..fafde84 100644 --- a/dropbear/libtomcrypt/src/headers/tomcrypt_custom.h +++ b/dropbear/libtomcrypt/src/headers/tomcrypt_custom.h @@ -139,7 +139,7 @@ #ifdef DROPBEAR_ECC #define MECC #define LTC_ECC_SHAMIR -#define LTC_ECC_TIMING_RESISTANT +// #define LTC_ECC_TIMING_RESISTANT #define MPI #define LTM_DESC #ifdef DROPBEAR_ECC_256 diff --git a/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c b/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c index 57fb9fa..ac1c24f 100644 --- a/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c +++ b/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c @@ -14,7 +14,6 @@ * All curves taken from NIST recommendation paper of July 1999 * Available at http://csrc.nist.gov/cryptval/dss.htm */ -#define LTC_SOURCE 1 #include "tomcrypt.h" /** diff --git a/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mulmod_timing.c b/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mulmod_timing.c index edf3052..b94a50c 100644 --- a/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mulmod_timing.c +++ b/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_mulmod_timing.c @@ -14,7 +14,6 @@ * All curves taken from NIST recommendation paper of July 1999 * Available at http://csrc.nist.gov/cryptval/dss.htm */ -#define LTC_SOURCE 1 #include "tomcrypt.h" /** diff --git a/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c b/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c index 2add6ac..c8e359f 100644 --- a/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c +++ b/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c @@ -14,7 +14,6 @@ * All curves taken from NIST recommendation paper of July 1999 * Available at http://csrc.nist.gov/cryptval/dss.htm */ -#define LTC_SOURCE 1 #include "tomcrypt.h" /** diff --git a/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c b/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c index fbf3f68..f0b3e1d 100644 --- a/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c +++ b/dropbear/libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c @@ -14,7 +14,6 @@ * All curves taken from NIST recommendation paper of July 1999 * Available at http://csrc.nist.gov/cryptval/dss.htm */ -#define LTC_SOURCE 1 #include "tomcrypt.h" /**