OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
ecp_smpl.c File Reference
#include <openssl/err.h>
#include <openssl/symhacks.h>
#include "ec_lcl.h"

Go to the source code of this file.

Functions

const EC_METHODEC_GFp_simple_method (void)
 
int ec_GFp_simple_group_init (EC_GROUP *group)
 
void ec_GFp_simple_group_finish (EC_GROUP *group)
 
void ec_GFp_simple_group_clear_finish (EC_GROUP *group)
 
int ec_GFp_simple_group_copy (EC_GROUP *dest, const EC_GROUP *src)
 
int ec_GFp_simple_group_set_curve (EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 
int ec_GFp_simple_group_get_curve (const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
 
int ec_GFp_simple_group_get_degree (const EC_GROUP *group)
 
int ec_GFp_simple_group_check_discriminant (const EC_GROUP *group, BN_CTX *ctx)
 
int ec_GFp_simple_point_init (EC_POINT *point)
 
void ec_GFp_simple_point_finish (EC_POINT *point)
 
void ec_GFp_simple_point_clear_finish (EC_POINT *point)
 
int ec_GFp_simple_point_copy (EC_POINT *dest, const EC_POINT *src)
 
int ec_GFp_simple_point_set_to_infinity (const EC_GROUP *group, EC_POINT *point)
 
int ec_GFp_simple_set_Jprojective_coordinates_GFp (const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx)
 
int ec_GFp_simple_get_Jprojective_coordinates_GFp (const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx)
 
int ec_GFp_simple_point_set_affine_coordinates (const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx)
 
int ec_GFp_simple_point_get_affine_coordinates (const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BN_CTX *ctx)
 
int ec_GFp_simple_add (const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
 
int ec_GFp_simple_dbl (const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *ctx)
 
int ec_GFp_simple_invert (const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
 
int ec_GFp_simple_is_at_infinity (const EC_GROUP *group, const EC_POINT *point)
 
int ec_GFp_simple_is_on_curve (const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx)
 
int ec_GFp_simple_cmp (const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
 
int ec_GFp_simple_make_affine (const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
 
int ec_GFp_simple_points_make_affine (const EC_GROUP *group, size_t num, EC_POINT *points[], BN_CTX *ctx)
 
int ec_GFp_simple_field_mul (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 
int ec_GFp_simple_field_sqr (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
 

Function Documentation

int ec_GFp_simple_add ( const EC_GROUP group,
EC_POINT r,
const EC_POINT a,
const EC_POINT b,
BN_CTX ctx 
)

Definition at line 643 of file ecp_smpl.c.

int ec_GFp_simple_cmp ( const EC_GROUP group,
const EC_POINT a,
const EC_POINT b,
BN_CTX ctx 
)

Definition at line 1031 of file ecp_smpl.c.

int ec_GFp_simple_dbl ( const EC_GROUP group,
EC_POINT r,
const EC_POINT a,
BN_CTX ctx 
)

Definition at line 807 of file ecp_smpl.c.

int ec_GFp_simple_field_mul ( const EC_GROUP group,
BIGNUM r,
const BIGNUM a,
const BIGNUM b,
BN_CTX ctx 
)

Definition at line 1351 of file ecp_smpl.c.

int ec_GFp_simple_field_sqr ( const EC_GROUP group,
BIGNUM r,
const BIGNUM a,
BN_CTX ctx 
)

Definition at line 1357 of file ecp_smpl.c.

int ec_GFp_simple_get_Jprojective_coordinates_GFp ( const EC_GROUP group,
const EC_POINT point,
BIGNUM x,
BIGNUM y,
BIGNUM z,
BN_CTX ctx 
)

Definition at line 461 of file ecp_smpl.c.

int ec_GFp_simple_group_check_discriminant ( const EC_GROUP group,
BN_CTX ctx 
)

Definition at line 287 of file ecp_smpl.c.

void ec_GFp_simple_group_clear_finish ( EC_GROUP group)

Definition at line 155 of file ecp_smpl.c.

int ec_GFp_simple_group_copy ( EC_GROUP dest,
const EC_GROUP src 
)

Definition at line 163 of file ecp_smpl.c.

void ec_GFp_simple_group_finish ( EC_GROUP group)

Definition at line 147 of file ecp_smpl.c.

int ec_GFp_simple_group_get_curve ( const EC_GROUP group,
BIGNUM p,
BIGNUM a,
BIGNUM b,
BN_CTX ctx 
)

Definition at line 230 of file ecp_smpl.c.

int ec_GFp_simple_group_get_degree ( const EC_GROUP group)

Definition at line 281 of file ecp_smpl.c.

int ec_GFp_simple_group_init ( EC_GROUP group)

Definition at line 137 of file ecp_smpl.c.

int ec_GFp_simple_group_set_curve ( EC_GROUP group,
const BIGNUM p,
const BIGNUM a,
const BIGNUM b,
BN_CTX ctx 
)

Definition at line 175 of file ecp_smpl.c.

int ec_GFp_simple_invert ( const EC_GROUP group,
EC_POINT point,
BN_CTX ctx 
)

Definition at line 924 of file ecp_smpl.c.

int ec_GFp_simple_is_at_infinity ( const EC_GROUP group,
const EC_POINT point 
)

Definition at line 934 of file ecp_smpl.c.

int ec_GFp_simple_is_on_curve ( const EC_GROUP group,
const EC_POINT point,
BN_CTX ctx 
)

Definition at line 940 of file ecp_smpl.c.

int ec_GFp_simple_make_affine ( const EC_GROUP group,
EC_POINT point,
BN_CTX ctx 
)

Definition at line 1142 of file ecp_smpl.c.

const EC_METHOD* EC_GFp_simple_method ( void  )

Returns the basic GFp ec methods which provides the basis for the optimized methods.

Returns
EC_METHOD object

Definition at line 74 of file ecp_smpl.c.

void ec_GFp_simple_point_clear_finish ( EC_POINT point)

Definition at line 373 of file ecp_smpl.c.

int ec_GFp_simple_point_copy ( EC_POINT dest,
const EC_POINT src 
)

Definition at line 382 of file ecp_smpl.c.

void ec_GFp_simple_point_finish ( EC_POINT point)

Definition at line 365 of file ecp_smpl.c.

int ec_GFp_simple_point_get_affine_coordinates ( const EC_GROUP group,
const EC_POINT point,
BIGNUM x,
BIGNUM y,
BN_CTX ctx 
)

Definition at line 528 of file ecp_smpl.c.

int ec_GFp_simple_point_init ( EC_POINT point)

Definition at line 354 of file ecp_smpl.c.

int ec_GFp_simple_point_set_affine_coordinates ( const EC_GROUP group,
EC_POINT point,
const BIGNUM x,
const BIGNUM y,
BN_CTX ctx 
)

Definition at line 514 of file ecp_smpl.c.

int ec_GFp_simple_point_set_to_infinity ( const EC_GROUP group,
EC_POINT point 
)

Definition at line 393 of file ecp_smpl.c.

int ec_GFp_simple_points_make_affine ( const EC_GROUP group,
size_t  num,
EC_POINT points[],
BN_CTX ctx 
)

Definition at line 1181 of file ecp_smpl.c.

int ec_GFp_simple_set_Jprojective_coordinates_GFp ( const EC_GROUP group,
EC_POINT point,
const BIGNUM x,
const BIGNUM y,
const BIGNUM z,
BN_CTX ctx 
)

Definition at line 401 of file ecp_smpl.c.