59#ifndef BLOCXX_MD5_HPP_INCLUDE_GUARD_
60#define BLOCXX_MD5_HPP_INCLUDE_GUARD_
61#include "blocxx/BLOCXX_config.h"
65#ifdef BLOCXX_HAVE_STREAMBUF
70#ifdef BLOCXX_HAVE_OSTREAM
72#elif defined(BLOCXX_HAVE_OSTREAM_H)
92 virtual std::streamsize
xsputn(
const char* s, std::streamsize num);
#define BLOCXX_DECLARE_APIEXCEPTION(NAME, LINKAGE_SPEC)
Declare a new exception class named <NAME>Exception that derives from Exception This macro is typical...
static void MD5Init(MD5_CTX *md5ctx)
void init(const String &input)
static String convertBinToHex(const unsigned char *sBin)
static void MD5Final(unsigned char *, MD5_CTX *)
unsigned char * getDigest()
friend class MD5StreamBuffer
unsigned char m_digest[16]
String toString()
Finish the digest, and return the results.
void update(const String &input)
Process more data.
static void MD5Update(MD5_CTX *md5ctx, const unsigned char *input, UInt32 inputLen)
virtual int overflow(int c)
MD5StreamBuffer(MD5 *md5)
virtual std::streamsize xsputn(const char *s, std::streamsize num)
This String class is an abstract data type that represents as NULL terminated string of characters.