#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 _CRT_SECURE_NO_DEPRECATE 1 |
Definition at line 25 of file dh_client.c.
| #define SERVER_NAME "localhost" |
| #define SERVER_PORT 11999 |
| int main | ( | void | ) |
Definition at line 41 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().
1.5.4