indent has problems with comments that are on the right hand side of a line.
[openssl.git] / crypto / ec / ec_lcl.h
index b7982d91ded8f3ee0f0f4465bcd63f09ac810325..1f175a982026487d2b719fb412df0d4a11157339 100644 (file)
@@ -205,39 +205,49 @@ struct ec_group_st {
        /* The following members are handled by the method functions,
         * even if they appear generic */
        
-       BIGNUM *field; /* Field specification.
-                      * For curves over GF(p), this is the modulus;
-                      * for curves over GF(2^m), this is the 
-                      * irreducible polynomial defining the field.
-                      */
-
-       int poly[6]; /* Field specification for curves over GF(2^m).
-                     * The irreducible f(t) is then of the form:
-                     *     t^poly[0] + t^poly[1] + ... + t^poly[k]
-                     * where m = poly[0] > poly[1] > ... > poly[k] = 0.
-                     * The array is terminated with poly[k+1]=-1.
-                     * All elliptic curve irreducibles have at most 5
-                     * non-zero terms.
-                     */
-
-       BIGNUM *a, *b; /* Curve coefficients.
-                     * (Here the assumption is that BIGNUMs can be used
-                     * or abused for all kinds of fields, not just GF(p).)
-                     * For characteristic  > 3,  the curve is defined
-                     * by a Weierstrass equation of the form
-                     *     y^2 = x^3 + a*x + b.
-                     * For characteristic  2,  the curve is defined by
-                     * an equation of the form
-                     *     y^2 + x*y = x^3 + a*x^2 + b.
-                     */
-
-       int a_is_minus3; /* enable optimized point arithmetics for special case */
-
-       void *field_data1; /* method-specific (e.g., Montgomery structure) */
-       void *field_data2; /* method-specific */
-       int (*field_mod_func)(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *); /* method-specific */
-
-       BN_MONT_CTX *mont_data;    /* data for ECDSA inverse */
+       /* Field specification.
+        * For curves over GF(p), this is the modulus;
+        * for curves over GF(2^m), this is the 
+        * irreducible polynomial defining the field.
+        */
+       BIGNUM *field;
+
+       /* Field specification for curves over GF(2^m).
+        * The irreducible f(t) is then of the form:
+        *     t^poly[0] + t^poly[1] + ... + t^poly[k]
+        * where m = poly[0] > poly[1] > ... > poly[k] = 0.
+        * The array is terminated with poly[k+1]=-1.
+        * All elliptic curve irreducibles have at most 5
+        * non-zero terms.
+        */
+       int poly[6]; 
+
+       /* Curve coefficients.
+        * (Here the assumption is that BIGNUMs can be used
+        * or abused for all kinds of fields, not just GF(p).)
+        * For characteristic  > 3,  the curve is defined
+        * by a Weierstrass equation of the form
+        *     y^2 = x^3 + a*x + b.
+        * For characteristic  2,  the curve is defined by
+        * an equation of the form
+        *     y^2 + x*y = x^3 + a*x^2 + b.
+        */
+       BIGNUM *a, *b;
+
+       /* enable optimized point arithmetics for special case */
+       int a_is_minus3;
+
+       /* method-specific (e.g., Montgomery structure) */
+       void *field_data1;
+
+       /* method-specific */
+       void *field_data2;
+
+       /* method-specific */
+       int (*field_mod_func)(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
+
+       /* data for ECDSA inverse */
+       BN_MONT_CTX *mont_data;
 } /* EC_GROUP */;
 
 struct ec_key_st {