/home/dko/projects/mobilec/tags/MobileC-v1.10.2/MobileC-v1.10.2/src/security/xyssl-0.9/programs/pkey/rsa_genkey.c File Reference

#include <stdio.h>
#include "xyssl/havege.h"
#include "xyssl/bignum.h"
#include "xyssl/x509.h"
#include "xyssl/rsa.h"

Go to the source code of this file.

Defines

#define _CRT_SECURE_NO_DEPRECATE   1
#define KEY_SIZE   1024
#define EXPONENT   65537

Functions

int main (void)


Define Documentation

#define _CRT_SECURE_NO_DEPRECATE   1

Definition at line 22 of file rsa_genkey.c.

#define EXPONENT   65537

Definition at line 33 of file rsa_genkey.c.

Referenced by main().

#define KEY_SIZE   1024

Definition at line 32 of file rsa_genkey.c.

Referenced by main().


Function Documentation

int main ( void   ) 

Definition at line 35 of file rsa_genkey.c.

References rsa_context::D, rsa_context::DP, rsa_context::DQ, rsa_context::E, EXPONENT, havege_init(), havege_rand(), KEY_SIZE, mpi_write_file(), rsa_context::N, rsa_context::P, rsa_context::Q, rsa_context::QP, rsa_free(), rsa_gen_key(), rsa_init(), and RSA_PKCS_V15.


Generated on Fri Jul 11 17:59:49 2008 for Mobile-C by  doxygen 1.5.4