diff options
author | Jack Lloyd <[email protected]> | 2018-12-13 20:51:53 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-13 20:52:56 -0500 |
commit | 646cae5e21408b92b891ca49b02dab103727f3ac (patch) | |
tree | 2682265624d2da895528e9179baca02584d71aaf /src/lib/pubkey/ec_group/point_mul.h | |
parent | 500e601f61c356c21f6988dbab7a116a60f6c646 (diff) |
Use a 3-bit comb for ECC base point multiply
Improves ECDSA signing by 15%
Diffstat (limited to 'src/lib/pubkey/ec_group/point_mul.h')
-rw-r--r-- | src/lib/pubkey/ec_group/point_mul.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/pubkey/ec_group/point_mul.h b/src/lib/pubkey/ec_group/point_mul.h index dbaae2995..019e483a1 100644 --- a/src/lib/pubkey/ec_group/point_mul.h +++ b/src/lib/pubkey/ec_group/point_mul.h @@ -29,6 +29,9 @@ class PointGFp_Base_Point_Precompute final const PointGFp& m_base_point; const Modular_Reducer& m_mod_order; + enum { WINDOW_BITS = 3 }; + enum { WINDOW_SIZE = (1 << WINDOW_BITS) - 1 }; + const size_t m_p_words; const size_t m_T_size; |