From 8350d1e081dc4c2330f4c7a35a746b7682d7f0c1 Mon Sep 17 00:00:00 2001 From: Matthias Gierlings Date: Fri, 29 Apr 2016 20:45:47 +0200 Subject: Reduction of code complexity in MP & ECC classes. - reduced number of parameters in various methods - introduced structures and renamed variables to improve code readability. --- src/lib/math/bigint/big_ops3.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/math/bigint/big_ops3.cpp') diff --git a/src/lib/math/bigint/big_ops3.cpp b/src/lib/math/bigint/big_ops3.cpp index 6cf837020..24927b4fc 100644 --- a/src/lib/math/bigint/big_ops3.cpp +++ b/src/lib/math/bigint/big_ops3.cpp @@ -1,6 +1,7 @@ /* * BigInt Binary Operators * (C) 1999-2007 Jack Lloyd +* 2016 Matthias Gierlings * * Botan is released under the Simplified BSD License (see license.txt) */ @@ -93,9 +94,7 @@ BigInt operator*(const BigInt& x, const BigInt& y) else if(x_sw && y_sw) { secure_vector workspace(z.size()); - bigint_mul(z.mutable_data(), z.size(), workspace.data(), - x.data(), x.size(), x_sw, - y.data(), y.size(), y_sw); + bigint_mul(z, x, y, workspace.data()); } if(x_sw && y_sw && x.sign() != y.sign()) -- cgit v1.2.3