Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
ngx_md5.c File Reference
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_md5.h>
Include dependency graph for ngx_md5.c:

Go to the source code of this file.

Macros

#define F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
#define G(x, y, z)   ((y) ^ ((z) & ((x) ^ (y))))
#define H(x, y, z)   ((x) ^ (y) ^ (z))
#define I(x, y, z)   ((y) ^ ((x) | ~(z)))
#define STEP(f, a, b, c, d, x, t, s)
#define SET(n)
#define GET(n)   block[n]

Functions

void ngx_md5_init (ngx_md5_t *ctx)
void ngx_md5_update (ngx_md5_t *ctx, const void *data, size_t size)
void ngx_md5_final (u_char result[16], ngx_md5_t *ctx)

Macro Definition Documentation

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

Definition at line 126 of file ngx_md5.c.

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

Definition at line 127 of file ngx_md5.c.

#define GET (   n)    block[n]

Definition at line 163 of file ngx_md5.c.

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

Definition at line 128 of file ngx_md5.c.

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

Definition at line 129 of file ngx_md5.c.

#define SET (   n)
Value:
(block[n] = \
(uint32_t) p[n * 4] | \
((uint32_t) p[n * 4 + 1] << 8) | \
((uint32_t) p[n * 4 + 2] << 16) | \
((uint32_t) p[n * 4 + 3] << 24))

Definition at line 156 of file ngx_md5.c.

#define STEP (   f,
  a,
  b,
  c,
  d,
  x,
  t,
 
)
Value:
(a) += f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \
(a) += (b)

Definition at line 135 of file ngx_md5.c.

Function Documentation

void ngx_md5_final ( u_char  result[16],
ngx_md5_t ctx 
)

Definition at line 66 of file ngx_md5.c.

Here is the caller graph for this function:

void ngx_md5_init ( ngx_md5_t ctx)

Definition at line 23 of file ngx_md5.c.

Here is the caller graph for this function:

void ngx_md5_update ( ngx_md5_t ctx,
const void *  data,
size_t  size 
)

Definition at line 35 of file ngx_md5.c.

Here is the caller graph for this function: