#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 | SERVER_NAME "localhost" |
#define | SERVER_PORT 11999 |
Functions | |
int | main (void) |
#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().
int main | ( | void | ) |
Definition at line 38 of file dh_client.c.
References aes_crypt_ecb(), AES_DECRYPT, aes_setkey_dec(), buf, dhm_calc_secret(), dhm_free(), dhm_make_public(), dhm_read_params(), rsa_context::E, f, havege_init(), havege_rand(), dhm_context::len, rsa_context::len, mpi_msb(), mpi_read_file(), rsa_context::N, net_close(), net_connect(), net_recv(), net_send(), rsa_free(), rsa_init(), rsa_pkcs1_verify(), RSA_PKCS_V15, RSA_PUBLIC, RSA_SHA1, server_fd, SERVER_NAME, SERVER_PORT, and sha1().