Skip to content

Commit

Permalink
Fix ECP::Double and brainpoolP256r1 (GH #878)
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Aug 26, 2019
1 parent 66a6994 commit e06e3bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ecp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -269,6 +271,7 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P) const

return R;
}
#endif
else // A_Montgomery
{
// More gyrations
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -470,6 +475,7 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P, const ECP::Point& Q

return R;
}
#endif
else // A_Montgomery
{
// More gyrations
Expand Down

0 comments on commit e06e3bd

Please sign in to comment.