Commit 922fa76e authored by Bodo Möller's avatar Bodo Möller
Browse files

add a comment

parent 19aa3705
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -112,6 +112,20 @@ const EC_METHOD *EC_GFp_simple_method(void)
	}
	}




/* Most method functions in this file are designed to work with
 * non-trivial representations of field elements if necessary
 * (see ecp_mont.c): while standard modular addition and subtraction
 * are used, the field_mul and field_sqr methods will be used for
 * multiplication, and field_encode and field_decode (if defined)
 * will be used for converting between representations.

 * Functions ec_GFp_simple_points_make_affine() and
 * ec_GFp_simple_point_get_affine_coordinates() specifically assume
 * that if a non-trivial representation is used, it is a Montgomery
 * representation (i.e. 'encoding' means multiplying by some factor R).
 */


int ec_GFp_simple_group_init(EC_GROUP *group)
int ec_GFp_simple_group_init(EC_GROUP *group)
	{
	{
	BN_init(&group->field);
	BN_init(&group->field);