• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/ec/

Lines Matching refs:EC_GROUP

93 	int (*group_init)(EC_GROUP *);
94 void (*group_finish)(EC_GROUP *);
95 void (*group_clear_finish)(EC_GROUP *);
96 int (*group_copy)(EC_GROUP *, const EC_GROUP *);
100 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
101 int (*group_get_curve)(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *);
104 int (*group_get_degree)(const EC_GROUP *);
107 int (*group_check_discriminant)(const EC_GROUP *, BN_CTX *);
122 int (*point_set_to_infinity)(const EC_GROUP *, EC_POINT *);
123 int (*point_set_Jprojective_coordinates_GFp)(const EC_GROUP *, EC_POINT *,
125 int (*point_get_Jprojective_coordinates_GFp)(const EC_GROUP *, const EC_POINT *,
127 int (*point_set_affine_coordinates)(const EC_GROUP *, EC_POINT *,
129 int (*point_get_affine_coordinates)(const EC_GROUP *, const EC_POINT *,
131 int (*point_set_compressed_coordinates)(const EC_GROUP *, EC_POINT *,
135 size_t (*point2oct)(const EC_GROUP *, const EC_POINT *, point_conversion_form_t form,
137 int (*oct2point)(const EC_GROUP *, EC_POINT *,
141 int (*add)(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
142 int (*dbl)(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *);
143 int (*invert)(const EC_GROUP *, EC_POINT *, BN_CTX *);
146 int (*is_at_infinity)(const EC_GROUP *, const EC_POINT *);
147 int (*is_on_curve)(const EC_GROUP *, const EC_POINT *, BN_CTX *);
148 int (*point_cmp)(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
151 int (*make_affine)(const EC_GROUP *, EC_POINT *, BN_CTX *);
152 int (*points_make_affine)(const EC_GROUP *, size_t num, EC_POINT *[], BN_CTX *);
156 int (*mul)(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
158 int (*precompute_mult)(EC_GROUP *group, BN_CTX *);
159 int (*have_precompute_mult)(const EC_GROUP *group);
167 int (*field_mul)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
168 int (*field_sqr)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
169 int (*field_div)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
171 int (*field_encode)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *); /* e.g. to Montgomery */
172 int (*field_decode)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *); /* e.g. from Montgomery */
173 int (*field_set_to_one)(const EC_GROUP *, BIGNUM *r, BN_CTX *);
182 } EC_EXTRA_DATA; /* used in EC_GROUP */
230 } /* EC_GROUP */;
235 EC_GROUP *group;
283 int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
285 int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *);
286 int ec_wNAF_have_precompute_mult(const EC_GROUP *group);
290 int ec_GFp_simple_group_init(EC_GROUP *);
291 void ec_GFp_simple_group_finish(EC_GROUP *);
292 void ec_GFp_simple_group_clear_finish(EC_GROUP *);
293 int ec_GFp_simple_group_copy(EC_GROUP *, const EC_GROUP *);
294 int ec_GFp_simple_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
295 int ec_GFp_simple_group_get_curve(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *);
296 int ec_GFp_simple_group_get_degree(const EC_GROUP *);
297 int ec_GFp_simple_group_check_discriminant(const EC_GROUP *, BN_CTX *);
302 int ec_GFp_simple_point_set_to_infinity(const EC_GROUP *, EC_POINT *);
303 int ec_GFp_simple_set_Jprojective_coordinates_GFp(const EC_GROUP *, EC_POINT *,
305 int ec_GFp_simple_get_Jprojective_coordinates_GFp(const EC_GROUP *, const EC_POINT *,
307 int ec_GFp_simple_point_set_affine_coordinates(const EC_GROUP *, EC_POINT *,
309 int ec_GFp_simple_point_get_affine_coordinates(const EC_GROUP *, const EC_POINT *,
311 int ec_GFp_simple_set_compressed_coordinates(const EC_GROUP *, EC_POINT *,
313 size_t ec_GFp_simple_point2oct(const EC_GROUP *, const EC_POINT *, point_conversion_form_t form,
315 int ec_GFp_simple_oct2point(const EC_GROUP *, EC_POINT *,
317 int ec_GFp_simple_add(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
318 int ec_GFp_simple_dbl(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *);
319 int ec_GFp_simple_invert(const EC_GROUP *, EC_POINT *, BN_CTX *);
320 int ec_GFp_simple_is_at_infinity(const EC_GROUP *, const EC_POINT *);
321 int ec_GFp_simple_is_on_curve(const EC_GROUP *, const EC_POINT *, BN_CTX *);
322 int ec_GFp_simple_cmp(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
323 int ec_GFp_simple_make_affine(const EC_GROUP *, EC_POINT *, BN_CTX *);
324 int ec_GFp_simple_points_make_affine(const EC_GROUP *, size_t num, EC_POINT *[], BN_CTX *);
325 int ec_GFp_simple_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
326 int ec_GFp_simple_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
330 int ec_GFp_mont_group_init(EC_GROUP *);
331 int ec_GFp_mont_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
332 void ec_GFp_mont_group_finish(EC_GROUP *);
333 void ec_GFp_mont_group_clear_finish(EC_GROUP *);
334 int ec_GFp_mont_group_copy(EC_GROUP *, const EC_GROUP *);
335 int ec_GFp_mont_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
336 int ec_GFp_mont_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
337 int ec_GFp_mont_field_encode(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
338 int ec_GFp_mont_field_decode(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
339 int ec_GFp_mont_field_set_to_one(const EC_GROUP *, BIGNUM *r, BN_CTX *);
343 int ec_GFp_nist_group_copy(EC_GROUP *dest, const EC_GROUP *src);
344 int ec_GFp_nist_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
345 int ec_GFp_nist_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
346 int ec_GFp_nist_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
350 int ec_GF2m_simple_group_init(EC_GROUP *);
351 void ec_GF2m_simple_group_finish(EC_GROUP *);
352 void ec_GF2m_simple_group_clear_finish(EC_GROUP *);
353 int ec_GF2m_simple_group_copy(EC_GROUP *, const EC_GROUP *);
354 int ec_GF2m_simple_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
355 int ec_GF2m_simple_group_get_curve(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *);
356 int ec_GF2m_simple_group_get_degree(const EC_GROUP *);
357 int ec_GF2m_simple_group_check_discriminant(const EC_GROUP *, BN_CTX *);
362 int ec_GF2m_simple_point_set_to_infinity(const EC_GROUP *, EC_POINT *);
363 int ec_GF2m_simple_point_set_affine_coordinates(const EC_GROUP *, EC_POINT *,
365 int ec_GF2m_simple_point_get_affine_coordinates(const EC_GROUP *, const EC_POINT *,
367 int ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *, EC_POINT *,
369 size_t ec_GF2m_simple_point2oct(const EC_GROUP *, const EC_POINT *, point_conversion_form_t form,
371 int ec_GF2m_simple_oct2point(const EC_GROUP *, EC_POINT *,
373 int ec_GF2m_simple_add(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
374 int ec_GF2m_simple_dbl(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *);
375 int ec_GF2m_simple_invert(const EC_GROUP *, EC_POINT *, BN_CTX *);
376 int ec_GF2m_simple_is_at_infinity(const EC_GROUP *, const EC_POINT *);
377 int ec_GF2m_simple_is_on_curve(const EC_GROUP *, const EC_POINT *, BN_CTX *);
378 int ec_GF2m_simple_cmp(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
379 int ec_GF2m_simple_make_affine(const EC_GROUP *, EC_POINT *, BN_CTX *);
380 int ec_GF2m_simple_points_make_affine(const EC_GROUP *, size_t num, EC_POINT *[], BN_CTX *);
381 int ec_GF2m_simple_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
382 int ec_GF2m_simple_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
383 int ec_GF2m_simple_field_div(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
387 int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
389 int ec_GF2m_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
390 int ec_GF2m_have_precompute_mult(const EC_GROUP *group);