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

Go to the source code of this file.

Functions

const EC_METHODEC_GFp_mont_method (void)
 
int ec_GFp_mont_group_init (EC_GROUP *group)
 
void ec_GFp_mont_group_finish (EC_GROUP *group)
 
void ec_GFp_mont_group_clear_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)
 
int ec_GFp_mont_field_set_to_one (const EC_GROUP *group, BIGNUM *r, BN_CTX *ctx)
 

Function Documentation

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

Definition at line 301 of file ecp_mont.c.

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

Definition at line 289 of file ecp_mont.c.

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

Definition at line 265 of file ecp_mont.c.

int ec_GFp_mont_field_set_to_one ( const EC_GROUP group,
BIGNUM r,
BN_CTX ctx 
)

Definition at line 313 of file ecp_mont.c.

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

Definition at line 277 of file ecp_mont.c.

void ec_GFp_mont_group_clear_finish ( EC_GROUP group)

Definition at line 150 of file ecp_mont.c.

int ec_GFp_mont_group_copy ( EC_GROUP dest,
const EC_GROUP src 
)

Definition at line 166 of file ecp_mont.c.

void ec_GFp_mont_group_finish ( EC_GROUP group)

Definition at line 134 of file ecp_mont.c.

int ec_GFp_mont_group_init ( EC_GROUP group)

Definition at line 123 of file ecp_mont.c.

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

Definition at line 205 of file ecp_mont.c.

const EC_METHOD* EC_GFp_mont_method ( void  )

Returns GFp methods using montgomery multiplication.

Returns
EC_METHOD object

Definition at line 73 of file ecp_mont.c.