#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 "==Hello there!==" |
Functions | |
| int | main (void) |
| #define _CRT_SECURE_NO_DEPRECATE 1 |
Definition at line 22 of file dh_server.c.
| #define PLAINTEXT "==Hello there!==" |
| #define SERVER_PORT 11999 |
Definition at line 35 of file dh_server.c.
| int main | ( | void | ) |
Definition at line 38 of file dh_server.c.
References aes_crypt_ecb(), AES_ENCRYPT, aes_setkey_enc(), buf, client_fd, rsa_context::D, dhm_calc_secret(), dhm_free(), dhm_make_params(), dhm_read_public(), rsa_context::DP, rsa_context::DQ, rsa_context::E, f, dhm_context::G, havege_init(), havege_rand(), dhm_context::len, rsa_context::len, mpi_msb(), mpi_read_file(), rsa_context::N, net_accept(), net_bind(), net_close(), net_recv(), net_send(), dhm_context::P, rsa_context::P, PLAINTEXT, rsa_context::Q, rsa_context::QP, rsa_free(), rsa_init(), rsa_pkcs1_sign(), RSA_PKCS_V15, RSA_PRIVATE, RSA_SHA1, SERVER_PORT, and sha1().
1.5.4