OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
ecs_lib.c File Reference
#include <string.h>
#include "ecs_locl.h"
#include <openssl/engine.h>
#include <openssl/err.h>
#include <openssl/bn.h>

Go to the source code of this file.

Functions

void ECDSA_set_default_method (const ECDSA_METHOD *meth)
 
const ECDSA_METHODECDSA_get_default_method (void)
 
int ECDSA_set_method (EC_KEY *eckey, const ECDSA_METHOD *meth)
 
ECDSA_DATAecdsa_check (EC_KEY *key)
 
int ECDSA_size (const EC_KEY *r)
 
int ECDSA_get_ex_new_index (long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
 
int ECDSA_set_ex_data (EC_KEY *d, int idx, void *arg)
 
voidECDSA_get_ex_data (EC_KEY *d, int idx)
 

Variables

const char ECDSA_version [] ="ECDSA" OPENSSL_VERSION_PTEXT
 

Function Documentation

ECDSA_DATA* ecdsa_check ( EC_KEY eckey)

ecdsa_check checks whether ECKEY->meth_data is a pointer to a ECDSA_DATA structure and if not it removes the old meth_data and creates a ECDSA_DATA structure.

Parameters
eckeypointer to a EC_KEY object
Returns
pointer to a ECDSA_DATA structure

Definition at line 192 of file ecs_lib.c.

const ECDSA_METHOD* ECDSA_get_default_method ( void  )

Returns the default ECDSA method

Returns
pointer to ECDSA_METHOD structure containing the default method

Definition at line 80 of file ecs_lib.c.

void* ECDSA_get_ex_data ( EC_KEY d,
int  idx 
)

Definition at line 271 of file ecs_lib.c.

int ECDSA_get_ex_new_index ( long  argl,
void argp,
CRYPTO_EX_new new_func,
CRYPTO_EX_dup dup_func,
CRYPTO_EX_free free_func 
)

Definition at line 255 of file ecs_lib.c.

void ECDSA_set_default_method ( const ECDSA_METHOD meth)

Sets the default ECDSA method

Parameters
methnew default ECDSA_METHOD

Definition at line 75 of file ecs_lib.c.

int ECDSA_set_ex_data ( EC_KEY d,
int  idx,
void arg 
)

Definition at line 262 of file ecs_lib.c.

int ECDSA_set_method ( EC_KEY eckey,
const ECDSA_METHOD meth 
)

Sets method to be used for the ECDSA operations

Parameters
eckeyEC_KEY object
methnew method
Returns
1 on success and 0 otherwise

Definition at line 96 of file ecs_lib.c.

int ECDSA_size ( const EC_KEY eckey)

Returns the maximum length of the DER encoded signature

Parameters
eckeyEC_KEY object
Returns
numbers of bytes required for the DER encoded signature

Definition at line 220 of file ecs_lib.c.

Variable Documentation

const char ECDSA_version[] ="ECDSA" OPENSSL_VERSION_PTEXT

Definition at line 67 of file ecs_lib.c.