projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24893ca
)
comment
author
Bodo Möller
<bodo@openssl.org>
Fri, 7 Feb 2003 11:54:57 +0000
(11:54 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 7 Feb 2003 11:54:57 +0000
(11:54 +0000)
crypto/ec/ec_mult.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ec_mult.c
b/crypto/ec/ec_mult.c
index 42cd98181c096039a4b93acc5a4d3ea6d5e61a71..937004ac455e85e043e3f334a8b008b6aa76f20b 100644
(file)
--- a/
crypto/ec/ec_mult.c
+++ b/
crypto/ec/ec_mult.c
@@
-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)