dhm_context Struct Reference

#include <dhm.h>


Data Fields

int len
mpi P
mpi G
mpi X
mpi GX
mpi GY
mpi K
mpi RP


Detailed Description

Definition at line 20 of file dhm.h.


Field Documentation

int dhm_context::len

size(P) in chars

Definition at line 22 of file dhm.h.

Referenced by dhm_make_params(), dhm_make_public(), dhm_read_params(), dhm_read_public(), main(), ssl_parse_client_key_exchange(), ssl_parse_server_key_exchange(), and ssl_write_client_key_exchange().

mpi dhm_context::P

prime modulus

Definition at line 23 of file dhm.h.

Referenced by dhm_calc_secret(), dhm_free(), dhm_make_params(), dhm_make_public(), dhm_read_params(), and main().

mpi dhm_context::G

generator

Definition at line 24 of file dhm.h.

Referenced by dhm_free(), dhm_make_params(), dhm_make_public(), dhm_read_params(), and main().

mpi dhm_context::X

secret value

Definition at line 25 of file dhm.h.

Referenced by dhm_calc_secret(), dhm_free(), dhm_make_params(), and dhm_make_public().

mpi dhm_context::GX

self = G^X mod P

Definition at line 26 of file dhm.h.

Referenced by dhm_free(), dhm_make_params(), and dhm_make_public().

mpi dhm_context::GY

peer = G^Y mod P

Definition at line 27 of file dhm.h.

Referenced by dhm_calc_secret(), dhm_free(), dhm_read_params(), and dhm_read_public().

mpi dhm_context::K

key = GY^X mod P

Definition at line 28 of file dhm.h.

Referenced by dhm_calc_secret(), and dhm_free().

mpi dhm_context::RP

cached R^2 mod P

Definition at line 29 of file dhm.h.

Referenced by dhm_calc_secret(), dhm_free(), dhm_make_params(), and dhm_make_public().


The documentation for this struct was generated from the following file:
Generated on Fri May 16 14:49:57 2008 for Mobile-C by  doxygen 1.5.4