HEVC Test Model (HM)  HM-16.3
libmd5.c File Reference
#include <stdint.h>
#include <string.h>
#include "libmd5.h"
Include dependency graph for libmd5.c:

Go to the source code of this file.

#define byteReverse(buf, len)   /* Nothing */
 
#define F1(x, y, z)   (z ^ (x & (y ^ z)))
 
#define F2(x, y, z)   F1(z, x, y)
 
#define F3(x, y, z)   (x ^ y ^ z)
 
#define F4(x, y, z)   (y ^ (x | ~z))
 
#define MD5STEP(f, w, x, y, z, data, s)   ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
 
static void MD5Transform (uint32_t buf[4], uint32_t const in[16])
 
void MD5Init (context_md5_t *ctx)
 
void MD5Update (context_md5_t *ctx, unsigned char *buf, unsigned len)
 
void MD5Final (unsigned char digest[16], context_md5_t *ctx)
 

Macro Definition Documentation

#define byteReverse (   buf,
  len 
)    /* Nothing */

Definition at line 26 of file libmd5.c.

#define F1 (   x,
  y,
 
)    (z ^ (x & (y ^ z)))

Definition at line 161 of file libmd5.c.

#define F2 (   x,
  y,
 
)    F1(z, x, y)

Definition at line 162 of file libmd5.c.

#define F3 (   x,
  y,
 
)    (x ^ y ^ z)

Definition at line 163 of file libmd5.c.

#define F4 (   x,
  y,
 
)    (y ^ (x | ~z))

Definition at line 164 of file libmd5.c.

#define MD5STEP (   f,
  w,
  x,
  y,
  z,
  data,
 
)    ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )

Definition at line 167 of file libmd5.c.

Function Documentation

void MD5Final ( unsigned char  digest[16],
context_md5_t ctx 
)

Definition at line 112 of file libmd5.c.

void MD5Init ( context_md5_t ctx)

Definition at line 49 of file libmd5.c.

void MD5Update ( context_md5_t ctx,
unsigned char *  buf,
unsigned  len 
)

Definition at line 64 of file libmd5.c.