diff options
author | Bodo Möller <bodo@openssl.org> | 2002-11-22 09:25:35 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-11-22 09:25:35 +0000 |
commit | 922fa76e26ece9566977f73fe2e21d38a9b036ad (patch) | |
tree | 0bfce1a9c7abdfb39620f379e053cc57eabbaf59 | |
parent | 19aa3705739cc8bde71916b02ab019bab7bb945c (diff) | |
download | openssl-922fa76e26ece9566977f73fe2e21d38a9b036ad.tar.gz |
add a comment
-rw-r--r-- | crypto/ec/ecp_smpl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/ec/ecp_smpl.c b/crypto/ec/ecp_smpl.c index 7325abf520..267134af4b 100644 --- a/crypto/ec/ecp_smpl.c +++ b/crypto/ec/ecp_smpl.c @@ -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) { BN_init(&group->field); |