Classes | Defines | Typedefs | Functions

md5.h File Reference

#include <cstdio>
#include <string>
#include <boost/cstdint.hpp>
Include dependency graph for md5.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  md5_ctx

Defines

#define MD5_DIGEST_SIZE   16
#define MD5_BLOCK_SIZE   64

Typedefs

typedef unsigned long md5_uintptr

Functions

void md5_init_ctx (struct md5_ctx *ctx)
void md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx)
void md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
void * md5_finish_ctx (struct md5_ctx *ctx, void *resbuf)
void * md5_read_ctx (const struct md5_ctx *ctx, void *resbuf)
int md5_stream (FILE *stream, void *resblock)
bool md5_filespec (std::string &filespec, void *resblock)
bool md5_filespec_check (std::string &filespec, std::string &md5)
void * md5_buffer (const char *buffer, size_t len, void *resblock)

Define Documentation

#define MD5_BLOCK_SIZE   64
#define MD5_DIGEST_SIZE   16

Referenced by md5_filespec_check().


Typedef Documentation

typedef unsigned long md5_uintptr

Function Documentation

void* md5_buffer ( const char *  buffer,
size_t  len,
void *  resblock 
)
bool md5_filespec ( std::string &  filespec,
void *  resblock 
)
bool md5_filespec_check ( std::string &  filespec,
std::string &  md5 
)

References gnash::hexify(), MD5_DIGEST_SIZE, and md5_filespec().

Referenced by main().

void* md5_finish_ctx ( struct md5_ctx ctx,
void *  resbuf 
)
void md5_init_ctx ( struct md5_ctx ctx  ) 
void md5_process_block ( const void *  buffer,
size_t  len,
struct md5_ctx ctx 
)
void md5_process_bytes ( const void *  buffer,
size_t  len,
struct md5_ctx ctx 
)
void* md5_read_ctx ( const struct md5_ctx ctx,
void *  resbuf 
)

References md5_ctx::A, md5_ctx::B, md5_ctx::C, md5_ctx::D, and SWAP.

Referenced by md5_finish_ctx().

int md5_stream ( FILE *  stream,
void *  resblock 
)