webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions
simple.c File Reference
#include <openssl/ec.h>
#include <string.h>
#include <openssl/bn.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include "internal.h"

Functions

int ec_GFp_simple_group_init (EC_GROUP *group)
 
void ec_GFp_simple_group_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)
 
unsigned ec_GFp_simple_group_get_degree (const EC_GROUP *group)
 
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_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

◆ ec_GFp_simple_add()

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

◆ ec_GFp_simple_cmp()

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

◆ ec_GFp_simple_dbl()

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

◆ ec_GFp_simple_field_mul()

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

◆ ec_GFp_simple_field_sqr()

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

◆ ec_GFp_simple_get_Jprojective_coordinates_GFp()

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 
)

◆ ec_GFp_simple_group_copy()

int ec_GFp_simple_group_copy ( EC_GROUP *  dest,
const EC_GROUP *  src 
)

◆ ec_GFp_simple_group_finish()

void ec_GFp_simple_group_finish ( EC_GROUP *  group)

◆ ec_GFp_simple_group_get_curve()

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

◆ ec_GFp_simple_group_get_degree()

unsigned ec_GFp_simple_group_get_degree ( const EC_GROUP *  group)

◆ ec_GFp_simple_group_init()

int ec_GFp_simple_group_init ( EC_GROUP *  group)

◆ ec_GFp_simple_group_set_curve()

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

◆ ec_GFp_simple_invert()

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

◆ ec_GFp_simple_is_at_infinity()

int ec_GFp_simple_is_at_infinity ( const EC_GROUP *  group,
const EC_POINT *  point 
)

◆ ec_GFp_simple_is_on_curve()

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

◆ ec_GFp_simple_make_affine()

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

◆ ec_GFp_simple_point_clear_finish()

void ec_GFp_simple_point_clear_finish ( EC_POINT *  point)

◆ ec_GFp_simple_point_copy()

int ec_GFp_simple_point_copy ( EC_POINT *  dest,
const EC_POINT *  src 
)

◆ ec_GFp_simple_point_finish()

void ec_GFp_simple_point_finish ( EC_POINT *  point)

◆ ec_GFp_simple_point_init()

int ec_GFp_simple_point_init ( EC_POINT *  point)

◆ ec_GFp_simple_point_set_affine_coordinates()

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

◆ ec_GFp_simple_point_set_to_infinity()

int ec_GFp_simple_point_set_to_infinity ( const EC_GROUP *  group,
EC_POINT *  point 
)

◆ ec_GFp_simple_points_make_affine()

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

◆ ec_GFp_simple_set_Jprojective_coordinates_GFp()

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 
)