/home/dko/projects/mobilec/trunk/src/security/xyssl-0.7/programs/pkey/dh_client.c File Reference

#include <string.h>
#include <stdio.h>
#include "xyssl/net.h"
#include "xyssl/aes.h"
#include "xyssl/dhm.h"
#include "xyssl/rsa.h"
#include "xyssl/sha1.h"
#include "xyssl/havege.h"

Go to the source code of this file.

Defines

#define _CRT_SECURE_NO_DEPRECATE   1
#define SERVER_NAME   "localhost"
#define SERVER_PORT   11999

Functions

int main (void)


Define Documentation

#define _CRT_SECURE_NO_DEPRECATE   1

Definition at line 22 of file dh_client.c.

#define SERVER_NAME   "localhost"

Definition at line 35 of file dh_client.c.

Referenced by main().

#define SERVER_PORT   11999

Definition at line 36 of file dh_client.c.

Referenced by main().


Function Documentation

int main ( void   ) 

Definition at line 38 of file dh_client.c.

References aes_decrypt(), aes_set_key(), dhm_calc_secret(), dhm_free(), dhm_make_public(), dhm_read_params(), f, havege_init(), havege_rand(), rsa_context::len, dhm_context::len, net_close(), net_connect(), net_recv(), net_send(), rsa_free(), rsa_pkcs1_verify(), rsa_read_public(), RSA_SHA1, server_fd, SERVER_NAME, SERVER_PORT, and sha1().


Generated on Fri May 16 14:49:56 2008 for Mobile-C by  doxygen 1.5.4