From 0126a39d68c0026f03a08856c56f4bb41ea9d213 Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 10 Oct 2013 18:47:25 -0700 Subject: [PATCH] fix shamir speed up init buffer --- ctaocrypt/src/ecc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctaocrypt/src/ecc.c b/ctaocrypt/src/ecc.c index b980298c5..92886f7d2 100644 --- a/ctaocrypt/src/ecc.c +++ b/ctaocrypt/src/ecc.c @@ -1567,6 +1567,8 @@ static int ecc_mul2add(ecc_point* A, mp_int* kA, XFREE(tA, NULL, DYNAMIC_TYPE_TMP_BUFFER); return GEN_MEM_ERR; } + XMEMSET(tA, 0, ECC_BUFSIZE); + XMEMSET(tB, 0, ECC_BUFSIZE); /* get sizes */ lenA = mp_unsigned_bin_size(kA);