From 167d062dd9d60177691aa675a8a5b64424aa00e3 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Wed, 17 Feb 2016 00:17:09 -0500 Subject: Add constant time conditional swap, add, sub for bigint words Not optimized and relies on asm support for const time word_add/word_sub instructions. Fix a bug introduced in 46e9a89 - unpoison needs to call the valgrind API with the pointer rather than the reference. Caused values not to be unpoisoned. --- src/lib/utils/ct_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/utils/ct_utils.h') diff --git a/src/lib/utils/ct_utils.h b/src/lib/utils/ct_utils.h index 3d0d1ac86..401a53e86 100644 --- a/src/lib/utils/ct_utils.h +++ b/src/lib/utils/ct_utils.h @@ -68,7 +68,7 @@ template inline void unpoison(T& p) { #if defined(BOTAN_HAS_VALGRIND) - VALGRIND_MAKE_MEM_DEFINED(p, sizeof(T)); + VALGRIND_MAKE_MEM_DEFINED(&p, sizeof(T)); #else BOTAN_UNUSED(p); #endif -- cgit v1.2.3