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

Go to the source code of this file.

Classes

struct  JPAKE_ZKP
 
struct  JPAKE_STEP_PART
 
struct  JPAKE_STEP1
 
struct  JPAKE_STEP3A
 
struct  JPAKE_STEP3B
 

Macros

#define JPAKE_F_JPAKE_STEP1_PROCESS   101
 
#define JPAKE_F_JPAKE_STEP2_PROCESS   102
 
#define JPAKE_F_JPAKE_STEP3A_PROCESS   103
 
#define JPAKE_F_JPAKE_STEP3B_PROCESS   104
 
#define JPAKE_F_VERIFY_ZKP   100
 
#define JPAKE_R_G_TO_THE_X3_IS_NOT_LEGAL   108
 
#define JPAKE_R_G_TO_THE_X4_IS_NOT_LEGAL   109
 
#define JPAKE_R_G_TO_THE_X4_IS_ONE   105
 
#define JPAKE_R_HASH_OF_HASH_OF_KEY_MISMATCH   106
 
#define JPAKE_R_HASH_OF_KEY_MISMATCH   107
 
#define JPAKE_R_VERIFY_B_FAILED   102
 
#define JPAKE_R_VERIFY_X3_FAILED   103
 
#define JPAKE_R_VERIFY_X4_FAILED   104
 
#define JPAKE_R_ZKP_VERIFY_FAILED   100
 

Typedefs

typedef struct JPAKE_CTX JPAKE_CTX
 
typedef JPAKE_STEP_PART JPAKE_STEP2
 

Functions

JPAKE_CTXJPAKE_CTX_new (const char *name, const char *peer_name, const BIGNUM *p, const BIGNUM *g, const BIGNUM *q, const BIGNUM *secret)
 
void JPAKE_CTX_free (JPAKE_CTX *ctx)
 
void JPAKE_STEP1_init (JPAKE_STEP1 *s1)
 
int JPAKE_STEP1_generate (JPAKE_STEP1 *send, JPAKE_CTX *ctx)
 
int JPAKE_STEP1_process (JPAKE_CTX *ctx, const JPAKE_STEP1 *received)
 
void JPAKE_STEP1_release (JPAKE_STEP1 *s1)
 
void JPAKE_STEP2_init (JPAKE_STEP2 *s2)
 
int JPAKE_STEP2_generate (JPAKE_STEP2 *send, JPAKE_CTX *ctx)
 
int JPAKE_STEP2_process (JPAKE_CTX *ctx, const JPAKE_STEP2 *received)
 
void JPAKE_STEP2_release (JPAKE_STEP2 *s2)
 
void JPAKE_STEP3A_init (JPAKE_STEP3A *s3a)
 
int JPAKE_STEP3A_generate (JPAKE_STEP3A *send, JPAKE_CTX *ctx)
 
int JPAKE_STEP3A_process (JPAKE_CTX *ctx, const JPAKE_STEP3A *received)
 
void JPAKE_STEP3A_release (JPAKE_STEP3A *s3a)
 
void JPAKE_STEP3B_init (JPAKE_STEP3B *s3b)
 
int JPAKE_STEP3B_generate (JPAKE_STEP3B *send, JPAKE_CTX *ctx)
 
int JPAKE_STEP3B_process (JPAKE_CTX *ctx, const JPAKE_STEP3B *received)
 
void JPAKE_STEP3B_release (JPAKE_STEP3B *s3b)
 
const BIGNUMJPAKE_get_shared_key (JPAKE_CTX *ctx)
 
void ERR_load_JPAKE_strings (void)
 

Macro Definition Documentation

#define JPAKE_F_JPAKE_STEP1_PROCESS   101

Definition at line 111 of file jpake.h.

#define JPAKE_F_JPAKE_STEP2_PROCESS   102

Definition at line 112 of file jpake.h.

#define JPAKE_F_JPAKE_STEP3A_PROCESS   103

Definition at line 113 of file jpake.h.

#define JPAKE_F_JPAKE_STEP3B_PROCESS   104

Definition at line 114 of file jpake.h.

#define JPAKE_F_VERIFY_ZKP   100

Definition at line 115 of file jpake.h.

#define JPAKE_R_G_TO_THE_X3_IS_NOT_LEGAL   108

Definition at line 118 of file jpake.h.

#define JPAKE_R_G_TO_THE_X4_IS_NOT_LEGAL   109

Definition at line 119 of file jpake.h.

#define JPAKE_R_G_TO_THE_X4_IS_ONE   105

Definition at line 120 of file jpake.h.

#define JPAKE_R_HASH_OF_HASH_OF_KEY_MISMATCH   106

Definition at line 121 of file jpake.h.

#define JPAKE_R_HASH_OF_KEY_MISMATCH   107

Definition at line 122 of file jpake.h.

#define JPAKE_R_VERIFY_B_FAILED   102

Definition at line 123 of file jpake.h.

#define JPAKE_R_VERIFY_X3_FAILED   103

Definition at line 124 of file jpake.h.

#define JPAKE_R_VERIFY_X4_FAILED   104

Definition at line 125 of file jpake.h.

#define JPAKE_R_ZKP_VERIFY_FAILED   100

Definition at line 126 of file jpake.h.

Typedef Documentation

typedef struct JPAKE_CTX JPAKE_CTX

Definition at line 24 of file jpake.h.

Definition at line 45 of file jpake.h.

Function Documentation

void ERR_load_JPAKE_strings ( void  )

Definition at line 97 of file jpake_err.c.

void JPAKE_CTX_free ( JPAKE_CTX ctx)

Definition at line 126 of file jpake.c.

JPAKE_CTX* JPAKE_CTX_new ( const char *  name,
const char *  peer_name,
const BIGNUM p,
const BIGNUM g,
const BIGNUM q,
const BIGNUM secret 
)

Definition at line 115 of file jpake.c.

const BIGNUM* JPAKE_get_shared_key ( JPAKE_CTX ctx)

Definition at line 507 of file jpake.c.

int JPAKE_STEP1_generate ( JPAKE_STEP1 send,
JPAKE_CTX ctx 
)

Definition at line 276 of file jpake.c.

void JPAKE_STEP1_init ( JPAKE_STEP1 s1)

Definition at line 62 of file jpake.c.

int JPAKE_STEP1_process ( JPAKE_CTX ctx,
const JPAKE_STEP1 received 
)

Definition at line 302 of file jpake.c.

void JPAKE_STEP1_release ( JPAKE_STEP1 s1)

Definition at line 68 of file jpake.c.

int JPAKE_STEP2_generate ( JPAKE_STEP2 send,
JPAKE_CTX ctx 
)

Definition at line 345 of file jpake.c.

void JPAKE_STEP2_init ( JPAKE_STEP2 s2)
int JPAKE_STEP2_process ( JPAKE_CTX ctx,
const JPAKE_STEP2 received 
)

Definition at line 414 of file jpake.c.

void JPAKE_STEP2_release ( JPAKE_STEP2 s2)
int JPAKE_STEP3A_generate ( JPAKE_STEP3A send,
JPAKE_CTX ctx 
)

Definition at line 456 of file jpake.c.

void JPAKE_STEP3A_init ( JPAKE_STEP3A s3a)

Definition at line 453 of file jpake.c.

int JPAKE_STEP3A_process ( JPAKE_CTX ctx,
const JPAKE_STEP3A received 
)

Definition at line 464 of file jpake.c.

void JPAKE_STEP3A_release ( JPAKE_STEP3A s3a)

Definition at line 478 of file jpake.c.

int JPAKE_STEP3B_generate ( JPAKE_STEP3B send,
JPAKE_CTX ctx 
)

Definition at line 484 of file jpake.c.

void JPAKE_STEP3B_init ( JPAKE_STEP3B s3b)

Definition at line 481 of file jpake.c.

int JPAKE_STEP3B_process ( JPAKE_CTX ctx,
const JPAKE_STEP3B received 
)

Definition at line 491 of file jpake.c.

void JPAKE_STEP3B_release ( JPAKE_STEP3B s3b)

Definition at line 504 of file jpake.c.