comment
[openssl.git] / crypto / ec / ec_mult.c
index bb717dd18870989dd70ce0921bd03fac356cebb4..2c430c85bdff898408fc8d0ca20587f1c4c457c9 100644 (file)
@@ -82,7 +82,7 @@ static signed char *compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len, B
        signed char *r = NULL;
        int sign = 1;
        int bit, next_bit, mask;
-       size_t len, j;
+       size_t len = 0, j;
        
        BN_CTX_start(ctx);
        c = BN_CTX_get(ctx);
@@ -171,7 +171,10 @@ static signed char *compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len, B
        }
 
 
-/* TODO: table should be optimised for the wNAF-based implementation */
+/* TODO: table should be optimised for the wNAF-based implementation,
+ *       sometimes smaller windows will give better performance
+ *       (thus the boundaries should be increased)
+ */
 #define EC_window_bits_for_scalar_size(b) \
                ((b) >= 2000 ? 6 : \
                 (b) >=  800 ? 5 : \