Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

validate.cpp File Reference

#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <vector>
#include <algorithm>

Include dependency graph for validate.cpp:

Go to the source code of this file.

Classes

struct  md5_ctx

Defines

#define __le32_to_cpus(buf)
#define __cpu_to_le32s(buf)
#define MD5_DIGEST_SIZE   16
#define MD5_HMAC_BLOCK_SIZE   64
#define MD5_BLOCK_WORDS   16
#define MD5_HASH_WORDS   4
#define F1(x, y, z)   (z ^ (x & (y ^ z)))
#define F2(x, y, z)   F1(z, x, y)
#define F3(x, y, z)   (x ^ y ^ z)
#define F4(x, y, z)   (y ^ (x | ~z))
#define MD5STEP(f, w, x, y, z, in, s)   (w += f(x, y, z) + in, w = (w<<s | w>>(32-s)) + x)

Typedefs

typedef uint8_t u8
typedef uint32_t u32
typedef uint64_t u64

Functions

void usage (char *s)
void parseparams (int argc, char *argv[])
bool parse_fimi_line (int &supp, vector< int > &itemset, char *linebuf)
void printsum (uint32_t *sum)
bool checksumfile (char *name)
int main (int argc, char *argv[])

Variables

char * infilename


Define Documentation

#define __cpu_to_le32s buf   ) 
 

Definition at line 49 of file validate.cpp.

#define __le32_to_cpus buf   ) 
 

Definition at line 48 of file validate.cpp.

#define F1 x,
y,
 )     (z ^ (x & (y ^ z)))
 

Definition at line 58 of file validate.cpp.

#define F2 x,
y,
 )     F1(z, x, y)
 

Definition at line 59 of file validate.cpp.

#define F3 x,
y,
 )     (x ^ y ^ z)
 

Definition at line 60 of file validate.cpp.

#define F4 x,
y,
 )     (y ^ (x | ~z))
 

Definition at line 61 of file validate.cpp.

#define MD5_BLOCK_WORDS   16
 

Definition at line 55 of file validate.cpp.

#define MD5_DIGEST_SIZE   16
 

Definition at line 53 of file validate.cpp.

#define MD5_HASH_WORDS   4
 

Definition at line 56 of file validate.cpp.

Referenced by checksumfile(), and printsum().

#define MD5_HMAC_BLOCK_SIZE   64
 

Definition at line 54 of file validate.cpp.

#define MD5STEP f,
w,
x,
y,
z,
in,
 )     (w += f(x, y, z) + in, w = (w<<s | w>>(32-s)) + x)
 

Definition at line 63 of file validate.cpp.


Typedef Documentation

typedef uint32_t u32
 

Definition at line 35 of file validate.cpp.

typedef uint64_t u64
 

Definition at line 36 of file validate.cpp.

typedef uint8_t u8
 

Definition at line 34 of file validate.cpp.


Function Documentation

bool checksumfile char *  name  ) 
 

Definition at line 341 of file validate.cpp.

References MD5_HASH_WORDS, parse_fimi_line(), and printsum().

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 384 of file validate.cpp.

References checksumfile(), and parseparams().

bool parse_fimi_line int &  supp,
vector< int > &  itemset,
char *  linebuf
 

Definition at line 285 of file validate.cpp.

Referenced by checksumfile().

void parseparams int  argc,
char *  argv[]
 

Definition at line 262 of file validate.cpp.

References usage().

Referenced by main().

void printsum uint32_t *  sum  ) 
 

Definition at line 329 of file validate.cpp.

References MD5_HASH_WORDS.

Referenced by checksumfile().

void usage char *  s  ) 
 

Definition at line 253 of file validate.cpp.


Variable Documentation

char* infilename
 

Definition at line 260 of file validate.cpp.


Generated on Sun Sep 17 17:55:04 2006 for FIM environment by  doxygen 1.4.4