Fix ECP::Double and brainpoolP256r1 (GH #878)

master
Jeffrey Walton 2019-08-26 18:33:26 -04:00
parent 66a6994e99
commit e06e3bd7a9
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 6 additions and 0 deletions

View File

@ -229,6 +229,8 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P) const
return R; 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) else if (m_alpha == A_Star)
{ {
// Gyrations attempt to maintain constant-timeness // Gyrations attempt to maintain constant-timeness
@ -269,6 +271,7 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P) const
return R; return R;
} }
#endif
else // A_Montgomery else // A_Montgomery
{ {
// More gyrations // More gyrations
@ -404,6 +407,8 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P, const ECP::Point& Q
return R; 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) else if (m_alpha == A_Star)
{ {
// Gyrations attempt to maintain constant-timeness // Gyrations attempt to maintain constant-timeness
@ -470,6 +475,7 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P, const ECP::Point& Q
return R; return R;
} }
#endif
else // A_Montgomery else // A_Montgomery
{ {
// More gyrations // More gyrations