diff options
author | Jack Lloyd <jack@randombit.net> | 2018-11-26 20:42:28 -0500 |
---|---|---|
committer | Jack Lloyd <jack@randombit.net> | 2018-11-26 20:42:28 -0500 |
commit | 00b6842a547c07e95f8e8205231e5f08d66ec4ec (patch) | |
tree | b123a370c59d24dce1802a2931160702acf3dcef /src/lib/pubkey/ec_group | |
parent | a512d682fbaf5533b68edefc971e113a68c37037 (diff) |
Make more BigInt functions const-time
In particular comparisons, calc sig words, and mod_sub are const time now.
Diffstat (limited to 'src/lib/pubkey/ec_group')
-rw-r--r-- | src/lib/pubkey/ec_group/point_gfp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/pubkey/ec_group/point_gfp.cpp b/src/lib/pubkey/ec_group/point_gfp.cpp index 77803de78..7bc6c4975 100644 --- a/src/lib/pubkey/ec_group/point_gfp.cpp +++ b/src/lib/pubkey/ec_group/point_gfp.cpp @@ -341,6 +341,7 @@ void PointGFp::mult2(std::vector<BigInt>& ws_bn) m_curve.sqr(T4, m_coord_x, ws); // x^2 T4 *= 3; // 3*x^2 + T4.reduce_below(p, sub_ws); T4.mod_add(T3, p, sub_ws); // 3*x^2 + a*z^4 } |