aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-05 21:45:37 -0500
committerJack Lloyd <[email protected]>2018-12-05 21:45:37 -0500
commitfcccdaf40ca342743055cf555eff049d5146c90a (patch)
tree3fcb909069323c96f14d07201956886bc4294552 /src/lib/math
parent6b22107d40dcd385d42d8ea1adfd1efa0b62626d (diff)
Do swaps in PointGFp instead of copies
Saves 5% for ECDSA
Diffstat (limited to 'src/lib/math')
-rw-r--r--src/lib/math/bigint/bigint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h
index ee8f81719..31eee4c3c 100644
--- a/src/lib/math/bigint/bigint.h
+++ b/src/lib/math/bigint/bigint.h
@@ -350,7 +350,7 @@ class BOTAN_PUBLIC_API(2,0) BigInt final
* Zeroize the BigInt. The size of the underlying register is not
* modified.
*/
- void clear() { m_data.set_to_zero(); }
+ void clear() { m_data.set_to_zero(); m_signedness = Positive; }
/**
* Compare this to another BigInt