aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/mp/mp_karat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/mp/mp_karat.cpp')
-rw-r--r--src/math/mp/mp_karat.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/math/mp/mp_karat.cpp b/src/math/mp/mp_karat.cpp
index 6d9adb4bf..b549a05c8 100644
--- a/src/math/mp/mp_karat.cpp
+++ b/src/math/mp/mp_karat.cpp
@@ -253,10 +253,7 @@ void bigint_mul(word z[], size_t z_size, word workspace[],
const size_t N = karatsuba_size(z_size, x_size, x_sw, y_size, y_sw);
if(N)
- {
- clear_mem(workspace, 2*N);
karatsuba_mul(z, x, y, N, workspace);
- }
else
bigint_simple_mul(z, x, x_sw, y, y_sw);
}
@@ -297,10 +294,7 @@ void bigint_sqr(word z[], size_t z_size, word workspace[],
const size_t N = karatsuba_size(z_size, x_size, x_sw);
if(N)
- {
- clear_mem(workspace, 2*N);
karatsuba_sqr(z, x, N, workspace);
- }
else
bigint_simple_sqr(z, x, x_sw);
}