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

Functions

int ec_GFp_mont_group_init (EC_GROUP *group)
 
void ec_GFp_mont_group_finish (EC_GROUP *group)
 
int ec_GFp_mont_group_copy (EC_GROUP *dest, const EC_GROUP *src)
 
int ec_GFp_mont_group_set_curve (EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 
int ec_GFp_mont_field_mul (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 
int ec_GFp_mont_field_sqr (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
 
int ec_GFp_mont_field_encode (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
 
int ec_GFp_mont_field_decode (const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
 

Variables

const EC_METHOD EC_GFp_mont_method
 

Function Documentation

◆ ec_GFp_mont_field_decode()

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

◆ ec_GFp_mont_field_encode()

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

◆ ec_GFp_mont_field_mul()

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

◆ ec_GFp_mont_field_sqr()

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

◆ ec_GFp_mont_group_copy()

int ec_GFp_mont_group_copy ( EC_GROUP dest,
const EC_GROUP src 
)

◆ ec_GFp_mont_group_finish()

void ec_GFp_mont_group_finish ( EC_GROUP group)

◆ ec_GFp_mont_group_init()

int ec_GFp_mont_group_init ( EC_GROUP group)

◆ ec_GFp_mont_group_set_curve()

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

Variable Documentation

◆ EC_GFp_mont_method

const EC_METHOD EC_GFp_mont_method
Initial value:
= {
ec_GFp_mont_point_get_affine_coordinates,
}
int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
Definition: ec_montgomery.c:178
int ec_GFp_mont_group_copy(EC_GROUP *dest, const EC_GROUP *src)
Definition: ec_montgomery.c:91
int ec_GFp_mont_field_decode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
Definition: ec_montgomery.c:188
int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
Definition: ec_montgomery.c:158
int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
Definition: ec_montgomery.c:168
int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx)
Definition: wnaf.c:227
void ec_GFp_mont_group_finish(EC_GROUP *group)
Definition: ec_montgomery.c:85
int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
Definition: ec_montgomery.c:117
int ec_GFp_mont_group_init(EC_GROUP *group)
Definition: ec_montgomery.c:77