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

Go to the source code of this file.

Functions

EC_GROUPEC_GROUP_new_curve_GFp (const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 
EC_GROUPEC_GROUP_new_curve_GF2m (const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
 

Function Documentation

EC_GROUP* EC_GROUP_new_curve_GF2m ( const BIGNUM p,
const BIGNUM a,
const BIGNUM b,
BN_CTX ctx 
)

Creates a new EC_GROUP object with the specified parameters defined over GF2m (defined by the equation y^2 + x*y = x^3 + a*x^2 + b)

Parameters
pBIGNUM with the polynomial defining the underlying field
aBIGNUM with the parameter a of the equation
bBIGNUM with the parameter b of the equation
ctxBN_CTX object (optional)
Returns
newly created EC_GROUP object with the specified parameters

Definition at line 151 of file ec_cvt.c.

EC_GROUP* EC_GROUP_new_curve_GFp ( const BIGNUM p,
const BIGNUM a,
const BIGNUM b,
BN_CTX ctx 
)

Creates a new EC_GROUP object with the specified parameters defined over GFp (defined by the equation y^2 = x^3 + a*x + b)

Parameters
pBIGNUM with the prime number
aBIGNUM with the parameter a of the equation
bBIGNUM with the parameter b of the equation
ctxBN_CTX object (optional)
Returns
newly created EC_GROUP object with the specified parameters

Definition at line 76 of file ec_cvt.c.