summaryrefslogtreecommitdiff
path: root/ecp.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-08-26 18:33:26 -0400
committerJeffrey Walton <noloader@gmail.com>2019-08-26 18:33:26 -0400
commite06e3bd7a998662fc2b12fd258ae5880537665b5 (patch)
tree1421564827c6960a791f43551646d0abf8544c97 /ecp.cpp
parent66a6994e991edcd94e3144d2bcbc5d634deecbb3 (diff)
downloadcryptopp-git-e06e3bd7a998662fc2b12fd258ae5880537665b5.tar.gz
Fix ECP::Double and brainpoolP256r1 (GH #878)
Diffstat (limited to 'ecp.cpp')
-rw-r--r--ecp.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ecp.cpp b/ecp.cpp
index daabb819..1a3a244f 100644
--- a/ecp.cpp
+++ b/ecp.cpp
@@ -229,6 +229,8 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P) const
return R;
}
+#if 0
+ // Code path disabled at the moment due to https://github.com/weidai11/cryptopp/issues/878
else if (m_alpha == A_Star)
{
// Gyrations attempt to maintain constant-timeness
@@ -269,6 +271,7 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P) const
return R;
}
+#endif
else // A_Montgomery
{
// More gyrations
@@ -404,6 +407,8 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P, const ECP::Point& Q
return R;
}
+#if 0
+ // Code path disabled at the moment due to https://github.com/weidai11/cryptopp/issues/878
else if (m_alpha == A_Star)
{
// Gyrations attempt to maintain constant-timeness
@@ -470,6 +475,7 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P, const ECP::Point& Q
return R;
}
+#endif
else // A_Montgomery
{
// More gyrations