Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# aesxam.c File Reference

`#include <stdio.h>`
`#include <stdlib.h>`
`#include <ctype.h>`
`#include <memory.h>`
`#include "aes.h"`
`#include <time.h>`

Include dependency graph for aesxam.c:

## Defines
#define | BLOCK_LEN 16
#define | READ_ERROR -7
#define | WRITE_ERROR -8
#define | file_len(x) (unsigned long)x
#define | RAND(a, b)
## Functions
void | cycles (volatile unsigned __int64 *rtn)
void | fillrand (char *buf, const int len)
int | encfile (FILE *fin, FILE *fout, aes_encrypt_ctx ctx, const char *ifn, const char *ofn)
int | decfile (FILE *fin, FILE *fout, aes_decrypt_ctx ctx, const char *ifn, const char *ofn)
int | main (int argc, char *argv[])

## Define Documentation

#define BLOCK_LEN 16

#define file_len | ( | x |  | ) | (unsigned long)x

#define RAND | ( | a,
|  | b |  | ) |

| Value:
    (((a = 36969 * (a & 65535) + (a >> 16)) << 16) + \
                        (b = 18000 * (b & 65535) + (b >> 16))  )

#define READ_ERROR -7

#define WRITE_ERROR -8

## Function Documentation

void cycles | ( | volatile unsigned __int64 * | rtn | ) |

int decfile | ( | FILE * | fin,
|  | FILE * | fout,
|  | aes_decrypt_ctx | ctx,
|  | const char * | ifn,
|  | const char * | ofn
| ) |

int encfile | ( | FILE * | fin,
|  | FILE * | fout,
|  | aes_encrypt_ctx | ctx,
|  | const char * | ifn,
|  | const char * | ofn
| ) |

void fillrand | ( | char * | buf,
|  | const int | len
| ) |

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