#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 | MODE_ENCRYPT 0 |
#define | MODE_DECRYPT 1 |
#define | USAGE |
Functions | |
int | main (int argc, char *argv[]) |
#define MODE_DECRYPT 1 |
Definition at line 42 of file aescrypt2.c.
#define MODE_ENCRYPT 0 |
Definition at line 41 of file aescrypt2.c.
#define USAGE |
"\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().
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.