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

#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "xyssl/aes.h"
#include "xyssl/sha2.h"

Go to the source code of this file.

Defines

#define _CRT_SECURE_NO_DEPRECATE   1
#define MODE_ENCRYPT   0
#define MODE_DECRYPT   1
#define USAGE

Functions

int main (int argc, char *argv[])


Define Documentation

#define _CRT_SECURE_NO_DEPRECATE   1

Definition at line 22 of file aescrypt2.c.

#define MODE_DECRYPT   1

Definition at line 42 of file aescrypt2.c.

Referenced by main().

#define MODE_ENCRYPT   0

Definition at line 41 of file aescrypt2.c.

Referenced by main().

#define USAGE

Value:

"\n  aescrypt2 <mode> <input filename> <output filename> <key>\n" \
    "\n   <mode>: 0 = encrypt, 1 = decrypt\n" \
    "\n  example: aescrypt2 0 file file.aes hex:E76B2413958B00E193\n" \
    "\n"

Definition at line 44 of file aescrypt2.c.

Referenced by main().


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 50 of file aescrypt2.c.

References aes_crypt_ecb(), AES_DECRYPT, AES_ENCRYPT, aes_setkey_dec(), aes_setkey_enc(), int, MODE_DECRYPT, MODE_ENCRYPT, sha2_finish(), sha2_hmac_finish(), sha2_hmac_starts(), sha2_hmac_update(), sha2_starts(), sha2_update(), and USAGE.


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