comment
authorBodo Möller <bodo@openssl.org>
Fri, 7 Feb 2003 11:54:57 +0000 (11:54 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 7 Feb 2003 11:54:57 +0000 (11:54 +0000)
crypto/ec/ec_mult.c

index 42cd98181c096039a4b93acc5a4d3ea6d5e61a71..937004ac455e85e043e3f334a8b008b6aa76f20b 100644 (file)
@@ -795,6 +795,13 @@ CRYPTO_push_info("ec_wNAF_precompute_mult");
                }
 
        bits = BN_num_bits(order);
+       /* The following parameters mean we precompute (approximately)
+        * one point per bit.
+        *
+        * TBD: The combination  8, 4  is perfect for 160 bits; for other
+        * bit lengths, other parameter combinations might provide better
+        * efficiency.
+        */
        blocksize = 8;
        w = 4;
        if (EC_window_bits_for_scalar_size(bits) > w)