src/md5blockfilter.c File Reference

#include "rdd.h"
#include "rdd_internals.h"
#include <math.h>
#include <string.h>
#include <stdio.h>
#include "error.h"
#include "writer.h"
#include "filter.h"
#include "msgprinter.h"

Include dependency graph for md5blockfilter.c:

Go to the source code of this file.

Data Structures

struct  _RDD_BLOCKHASH_FILTER

Typedefs

typedef struct
_RDD_BLOCKHASH_FILTER 
RDD_BLOCKHASH_FILTER

Functions

static int blockhash_block (RDD_FILTER *f, unsigned nbyte)
static int blockhash_close (RDD_FILTER *f)
static int blockhash_free (RDD_FILTER *f)
static int blockhash_input (RDD_FILTER *f, const unsigned char *buf, unsigned nbyte)
int rdd_new_md5_blockfilter (RDD_FILTER **self, unsigned blocksize, const char *outpath, const int force_overwrite)

Variables

static RDD_FILTER_OPS blockhash_ops
static char copyright []


Typedef Documentation


Function Documentation

static int blockhash_block ( RDD_FILTER self,
unsigned  block_size 
) [static]

Outputs the MD5 hash value of the block that has just been completed.

Definition at line 144 of file md5blockfilter.c.

References _RDD_BLOCKHASH_FILTER::blocknum, _RDD_BLOCKHASH_FILTER::md5_state, _RDD_BLOCKHASH_FILTER::printer, rdd_buf2hex(), rdd_mp_message(), RDD_MSG_INFO, and RDD_OK.

Here is the call graph for this function:

static int blockhash_close ( RDD_FILTER f  )  [static]

Definition at line 167 of file md5blockfilter.c.

References _RDD_BLOCKHASH_FILTER::md5_state, _RDD_BLOCKHASH_FILTER::printer, rdd_mp_close(), RDD_MP_READONLY, RDD_MP_RECURSE, and RDD_OK.

Here is the call graph for this function:

static int blockhash_free ( RDD_FILTER f  )  [static]

Definition at line 184 of file md5blockfilter.c.

References _RDD_BLOCKHASH_FILTER::path, and RDD_OK.

static int blockhash_input ( RDD_FILTER self,
const unsigned char *  buf,
unsigned  nbyte 
) [static]

Updates the running MD5 hash value for the current block.

Definition at line 131 of file md5blockfilter.c.

References _RDD_BLOCKHASH_FILTER::md5_state, and RDD_OK.

int rdd_new_md5_blockfilter ( RDD_FILTER **  self,
unsigned  blocksize,
const char *  outpath,
const int  force_overwrite 
)


Variable Documentation

Initial value:

Definition at line 78 of file md5blockfilter.c.

char copyright[] [static]

Initial value:

"@(#) Copyright (c) 2002\n\
    Netherlands Forensic Institute.  All rights reserved.\n"

Definition at line 39 of file md5blockfilter.c.


Generated on Sun Feb 6 12:36:14 2011 for rdd by  doxygen 1.5.6