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

Go to the source code of this file.

Functions

const EC_METHODEC_GF2m_simple_method (void)
 
int ec_GF2m_simple_group_init (EC_GROUP *group)
 
void ec_GF2m_simple_group_finish (EC_GROUP *group)
 
void ec_GF2m_simple_group_clear_finish (EC_GROUP *group)
 
int ec_GF2m_simple_group_copy (EC_GROUP *dest, const EC_GROUP *src)
 
int ec_GF2m_simple_group_set_curve (EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 
int ec_GF2m_simple_group_get_curve (const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
 
int ec_GF2m_simple_group_get_degree (const EC_GROUP *group)
 
int ec_GF2m_simple_group_check_discriminant (const EC_GROUP *group, BN_CTX *ctx)
 
int ec_GF2m_simple_point_init (EC_POINT *point)
 
void ec_GF2m_simple_point_finish (EC_POINT *point)
 
void ec_GF2m_simple_point_clear_finish (EC_POINT *point)
 
int ec_GF2m_simple_point_copy (EC_POINT *dest, const EC_POINT *src)
 
int ec_GF2m_simple_point_set_to_infinity (const EC_GROUP *group, EC_POINT *point)
 
int ec_GF2m_simple_point_set_affine_coordinates (const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx)
 
int ec_GF2m_simple_point_get_affine_coordinates (const EC_GROUP *group, const EC_POINT *point, BIGNUM *x, BIGNUM *y, BN_CTX *ctx)
 
int ec_GF2m_simple_add (const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
 
int ec_GF2m_simple_dbl (const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *ctx)
 
int ec_GF2m_simple_invert (const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
 
int ec_GF2m_simple_is_at_infinity (const EC_GROUP *group, const EC_POINT *point)
 
int ec_GF2m_simple_is_on_curve (const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx)
 
int ec_GF2m_simple_cmp (const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
 
int ec_GF2m_simple_make_affine (const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
 
int ec_GF2m_simple_points_make_affine (const EC_GROUP *group, size_t num, EC_POINT *points[], BN_CTX *ctx)
 
int ec_GF2m_simple_field_mul (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 
int ec_GF2m_simple_field_sqr (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
 
int ec_GF2m_simple_field_div (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 

Function Documentation

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

Definition at line 420 of file ec2_smpl.c.

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

Definition at line 605 of file ec2_smpl.c.

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

Definition at line 522 of file ec2_smpl.c.

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

Definition at line 714 of file ec2_smpl.c.

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

Definition at line 700 of file ec2_smpl.c.

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

Definition at line 707 of file ec2_smpl.c.

int ec_GF2m_simple_group_check_discriminant ( const EC_GROUP group,
BN_CTX ctx 
)

Definition at line 266 of file ec2_smpl.c.

void ec_GF2m_simple_group_clear_finish ( EC_GROUP group)

Definition at line 159 of file ec2_smpl.c.

int ec_GF2m_simple_group_copy ( EC_GROUP dest,
const EC_GROUP src 
)

Definition at line 176 of file ec2_smpl.c.

void ec_GF2m_simple_group_finish ( EC_GROUP group)

Definition at line 148 of file ec2_smpl.c.

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

Definition at line 230 of file ec2_smpl.c.

int ec_GF2m_simple_group_get_degree ( const EC_GROUP group)

Definition at line 257 of file ec2_smpl.c.

int ec_GF2m_simple_group_init ( EC_GROUP group)

Definition at line 136 of file ec2_smpl.c.

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

Definition at line 197 of file ec2_smpl.c.

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

Definition at line 528 of file ec2_smpl.c.

int ec_GF2m_simple_is_at_infinity ( const EC_GROUP group,
const EC_POINT point 
)

Definition at line 540 of file ec2_smpl.c.

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

Definition at line 550 of file ec2_smpl.c.

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

Definition at line 650 of file ec2_smpl.c.

const EC_METHOD* EC_GF2m_simple_method ( void  )

Returns the basic GF2m ec method

Returns
EC_METHOD object

Definition at line 81 of file ec2_smpl.c.

void ec_GF2m_simple_point_clear_finish ( EC_POINT point)

Definition at line 323 of file ec2_smpl.c.

int ec_GF2m_simple_point_copy ( EC_POINT dest,
const EC_POINT src 
)

Definition at line 333 of file ec2_smpl.c.

void ec_GF2m_simple_point_finish ( EC_POINT point)

Definition at line 314 of file ec2_smpl.c.

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

Definition at line 385 of file ec2_smpl.c.

int ec_GF2m_simple_point_init ( EC_POINT point)

Definition at line 304 of file ec2_smpl.c.

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

Definition at line 358 of file ec2_smpl.c.

int ec_GF2m_simple_point_set_to_infinity ( const EC_GROUP group,
EC_POINT point 
)

Definition at line 347 of file ec2_smpl.c.

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

Definition at line 686 of file ec2_smpl.c.