ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

md5.cpp File Reference

#include "common/md5.h"
#include "common/endian.h"
#include "common/str.h"
#include "common/stream.h"
Include dependency graph for md5.cpp:

Go to the source code of this file.

Classes

struct  Common::md5_context

Namespaces

namespace  Common
 

Internal interface to the QuickTime audio decoder.


Defines

#define GET_UINT32(n, b, i)   (n) = READ_LE_UINT32(b + i)
#define PUT_UINT32(n, b, i)   WRITE_LE_UINT32(b + i, n)
#define S(x, n)   ((x << n) | ((x & 0xFFFFFFFF) >> (32 - n)))
#define P(a, b, c, d, k, s, t)
#define F(x, y, z)   (z ^ (x & (y ^ z)))
#define F(x, y, z)   (y ^ (z & (x ^ y)))
#define F(x, y, z)   (x ^ y ^ z)
#define F(x, y, z)   (y ^ (x | ~z))

Functions

static void Common::md5_starts (md5_context *ctx)
static void Common::md5_update (md5_context *ctx, const uint8 *input, uint32 length)
static void Common::md5_finish (md5_context *ctx, uint8 digest[16])
static void Common::md5_process (md5_context *ctx, const uint8 data[64])
bool Common::computeStreamMD5 (ReadStream &stream, uint8 digest[16], uint32 length=0)
 Compute the MD5 checksum of the content of the given ReadStream.
String Common::computeStreamMD5AsString (ReadStream &stream, uint32 length=0)
 Compute the MD5 checksum of the content of the given ReadStream.

Variables

static const uint8 Common::md5_padding [64]

Define Documentation

#define F (   x,
  y,
  z 
)    (z ^ (x & (y ^ z)))
#define F (   x,
  y,
  z 
)    (y ^ (x | ~z))
#define F (   x,
  y,
  z 
)    (x ^ y ^ z)
#define F (   x,
  y,
  z 
)    (y ^ (z & (x ^ y)))
#define GET_UINT32 (   n,
  b,
  i 
)    (n) = READ_LE_UINT32(b + i)

Definition at line 47 of file md5.cpp.

#define P (   a,
  b,
  c,
  d,
  k,
  s,
  t 
)
Value:
{                                                 \
    a += F(b,c,d) + X[k] + t; a = S(a,s) + b; \
}
#define PUT_UINT32 (   n,
  b,
  i 
)    WRITE_LE_UINT32(b + i, n)

Definition at line 48 of file md5.cpp.

#define S (   x,
  n 
)    ((x << n) | ((x & 0xFFFFFFFF) >> (32 - n)))


Generated on Sat Jul 13 2019 05:01:45 for ResidualVM by doxygen 1.7.1
curved edge   curved edge