OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
ecdh.h File Reference
#include <openssl/opensslconf.h>
#include <openssl/ec.h>
#include <openssl/ossl_typ.h>
#include <openssl/bn.h>

Go to the source code of this file.

Macros

#define ECDH_F_ECDH_CHECK   102
 
#define ECDH_F_ECDH_COMPUTE_KEY   100
 
#define ECDH_F_ECDH_DATA_NEW_METHOD   101
 
#define ECDH_R_KDF_FAILED   102
 
#define ECDH_R_NON_FIPS_METHOD   103
 
#define ECDH_R_NO_PRIVATE_VALUE   100
 
#define ECDH_R_POINT_ARITHMETIC_FAILURE   101
 

Functions

const ECDH_METHODECDH_OpenSSL (void)
 
void ECDH_set_default_method (const ECDH_METHOD *)
 
const ECDH_METHODECDH_get_default_method (void)
 
int ECDH_set_method (EC_KEY *, const ECDH_METHOD *)
 
int ECDH_compute_key (void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen))
 
int ECDH_get_ex_new_index (long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
 
int ECDH_set_ex_data (EC_KEY *d, int idx, void *arg)
 
voidECDH_get_ex_data (EC_KEY *d, int idx)
 
void ERR_load_ECDH_strings (void)
 

Macro Definition Documentation

#define ECDH_F_ECDH_CHECK   102

Definition at line 112 of file ecdh.h.

#define ECDH_F_ECDH_COMPUTE_KEY   100

Definition at line 113 of file ecdh.h.

#define ECDH_F_ECDH_DATA_NEW_METHOD   101

Definition at line 114 of file ecdh.h.

#define ECDH_R_KDF_FAILED   102

Definition at line 117 of file ecdh.h.

#define ECDH_R_NO_PRIVATE_VALUE   100

Definition at line 119 of file ecdh.h.

#define ECDH_R_NON_FIPS_METHOD   103

Definition at line 118 of file ecdh.h.

#define ECDH_R_POINT_ARITHMETIC_FAILURE   101

Definition at line 120 of file ecdh.h.

Function Documentation

int ECDH_compute_key ( void out,
size_t  outlen,
const EC_POINT pub_key,
EC_KEY ecdh,
void *(*)(const void *in, size_t inlen, void *out, size_t *outlen)  KDF 
)

Definition at line 75 of file ech_key.c.

const ECDH_METHOD* ECDH_get_default_method ( void  )

Definition at line 93 of file ech_lib.c.

void* ECDH_get_ex_data ( EC_KEY d,
int  idx 
)

Definition at line 259 of file ech_lib.c.

int ECDH_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 243 of file ech_lib.c.

const ECDH_METHOD* ECDH_OpenSSL ( void  )

Definition at line 97 of file ech_ossl.c.

void ECDH_set_default_method ( const ECDH_METHOD )

Definition at line 88 of file ech_lib.c.

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

Definition at line 250 of file ech_lib.c.

int ECDH_set_method ( EC_KEY ,
const ECDH_METHOD  
)

Definition at line 109 of file ech_lib.c.

void ERR_load_ECDH_strings ( void  )

Definition at line 90 of file ech_err.c.