/home/dko/projects/mobilec/trunk/src/security/xyssl-0.7/programs/pkey/dh_server.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_PORT   11999
#define PLAINTEXT   "0123456_89ABCDE_"

Functions

int main (void)


Define Documentation

#define _CRT_SECURE_NO_DEPRECATE   1

Definition at line 22 of file dh_server.c.

#define PLAINTEXT   "0123456_89ABCDE_"

Definition at line 36 of file dh_server.c.

Referenced by main().

#define SERVER_PORT   11999

Definition at line 35 of file dh_server.c.


Function Documentation

int main ( void   ) 

Definition at line 38 of file dh_server.c.

References aes_encrypt(), aes_set_key(), client_fd, dhm_calc_secret(), dhm_free(), dhm_make_params(), dhm_read_public(), f, dhm_context::G, havege_init(), havege_rand(), dhm_context::len, rsa_context::len, mpi_read_file(), net_accept(), net_bind(), net_close(), net_recv(), net_send(), dhm_context::P, PLAINTEXT, rsa_free(), rsa_pkcs1_sign(), rsa_read_private(), RSA_SHA1, SERVER_PORT, and sha1().


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