diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
-rw-r--r-- | src/lib/libcrypto/ec/ec_local.h | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 677ae0c368..a1d7c9d3f2 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_local.h,v 1.8 2023/03/07 05:45:14 jsing Exp $ */ | 1 | /* $OpenBSD: ec_local.h,v 1.9 2023/03/07 05:50:59 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -371,43 +371,13 @@ int ec_GFp_simple_mul_double_nonct(const EC_GROUP *, EC_POINT *r, const BIGNUM * | |||
371 | 371 | ||
372 | int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); | 372 | int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); |
373 | 373 | ||
374 | /* method functions in ec2_smpl.c */ | ||
375 | int ec_GF2m_simple_group_init(EC_GROUP *); | ||
376 | void ec_GF2m_simple_group_finish(EC_GROUP *); | ||
377 | void ec_GF2m_simple_group_clear_finish(EC_GROUP *); | ||
378 | int ec_GF2m_simple_group_copy(EC_GROUP *, const EC_GROUP *); | ||
379 | int ec_GF2m_simple_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *); | ||
380 | int ec_GF2m_simple_group_get_curve(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *); | ||
381 | int ec_GF2m_simple_group_get_degree(const EC_GROUP *); | ||
382 | int ec_GF2m_simple_group_check_discriminant(const EC_GROUP *, BN_CTX *); | ||
383 | int ec_GF2m_simple_point_init(EC_POINT *); | ||
384 | void ec_GF2m_simple_point_finish(EC_POINT *); | ||
385 | void ec_GF2m_simple_point_clear_finish(EC_POINT *); | ||
386 | int ec_GF2m_simple_point_copy(EC_POINT *, const EC_POINT *); | ||
387 | int ec_GF2m_simple_point_set_to_infinity(const EC_GROUP *, EC_POINT *); | ||
388 | int ec_GF2m_simple_point_set_affine_coordinates(const EC_GROUP *, EC_POINT *, | ||
389 | const BIGNUM *x, const BIGNUM *y, BN_CTX *); | ||
390 | int ec_GF2m_simple_point_get_affine_coordinates(const EC_GROUP *, const EC_POINT *, | ||
391 | BIGNUM *x, BIGNUM *y, BN_CTX *); | ||
392 | int ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *, EC_POINT *, | 374 | int ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *, EC_POINT *, |
393 | const BIGNUM *x, int y_bit, BN_CTX *); | 375 | const BIGNUM *x, int y_bit, BN_CTX *); |
394 | size_t ec_GF2m_simple_point2oct(const EC_GROUP *, const EC_POINT *, point_conversion_form_t form, | 376 | size_t ec_GF2m_simple_point2oct(const EC_GROUP *, const EC_POINT *, point_conversion_form_t form, |
395 | unsigned char *buf, size_t len, BN_CTX *); | 377 | unsigned char *buf, size_t len, BN_CTX *); |
396 | int ec_GF2m_simple_oct2point(const EC_GROUP *, EC_POINT *, | 378 | int ec_GF2m_simple_oct2point(const EC_GROUP *, EC_POINT *, |
397 | const unsigned char *buf, size_t len, BN_CTX *); | 379 | const unsigned char *buf, size_t len, BN_CTX *); |
398 | int ec_GF2m_simple_add(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *); | 380 | |
399 | int ec_GF2m_simple_dbl(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *); | ||
400 | int ec_GF2m_simple_invert(const EC_GROUP *, EC_POINT *, BN_CTX *); | ||
401 | int ec_GF2m_simple_is_at_infinity(const EC_GROUP *, const EC_POINT *); | ||
402 | int ec_GF2m_simple_is_on_curve(const EC_GROUP *, const EC_POINT *, BN_CTX *); | ||
403 | int ec_GF2m_simple_cmp(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b, BN_CTX *); | ||
404 | int ec_GF2m_simple_make_affine(const EC_GROUP *, EC_POINT *, BN_CTX *); | ||
405 | int ec_GF2m_simple_points_make_affine(const EC_GROUP *, size_t num, EC_POINT *[], BN_CTX *); | ||
406 | int ec_GF2m_simple_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *); | ||
407 | int ec_GF2m_simple_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *); | ||
408 | int ec_GF2m_simple_field_div(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *); | ||
409 | |||
410 | /* method functions in ec2_mult.c */ | ||
411 | int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, | 381 | int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, |
412 | size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *); | 382 | size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *); |
413 | int ec_GF2m_precompute_mult(EC_GROUP *group, BN_CTX *ctx); | 383 | int ec_GF2m_precompute_mult(EC_GROUP *group, BN_CTX *ctx); |