#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"
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 struct _RDD_BLOCKHASH_FILTER RDD_BLOCKHASH_FILTER |
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.
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.
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 | |||
) |
Definition at line 87 of file md5blockfilter.c.
References error(), _RDD_BLOCKHASH_FILTER::md5_state, _RDD_BLOCKHASH_FILTER::path, _RDD_BLOCKHASH_FILTER::printer, rdd_mp_open_file_printer(), rdd_new_filter(), RDD_NOMEM, RDD_OK, and _RDD_FILTER::state.
RDD_FILTER_OPS blockhash_ops [static] |
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.