Classes | Defines | Typedefs | Functions | Variables
md5.c File Reference
#include "curl_setup.h"
#include <curl/curl.h>
#include "curl_md5.h"
#include "curl_hmac.h"
#include "warnless.h"
#include <string.h>
#include "curl_memory.h"
#include "memdebug.h"
Include dependency graph for md5.c:

Go to the source code of this file.

Classes

struct  MD5_CTX

Defines

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

Typedefs

typedef unsigned int MD5_u32plus

Functions

static const void * body (MD5_CTX *ctx, const void *data, unsigned long size)
int Curl_MD5_final (MD5_context *context, unsigned char *result)
MD5_contextCurl_MD5_init (const MD5_params *md5params)
int Curl_MD5_update (MD5_context *context, const unsigned char *data, unsigned int len)
void Curl_md5it (unsigned char *outbuffer, const unsigned char *input)
static void MD5_Final (unsigned char *result, MD5_CTX *ctx)
static void MD5_Init (MD5_CTX *ctx)
static void MD5_Update (MD5_CTX *ctx, const void *data, unsigned long size)

Variables

const MD5_params Curl_DIGEST_MD5 []
const HMAC_params Curl_HMAC_MD5 []

Define Documentation

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

Definition at line 239 of file md5.c.

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

Definition at line 240 of file md5.c.

#define GET (   n)    (ctx->block[(n)])

Definition at line 273 of file md5.c.

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

Definition at line 241 of file md5.c.

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

Definition at line 242 of file md5.c.

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

Definition at line 243 of file md5.c.

#define SET (   n)
Value:
(ctx->block[(n)] = \
        (MD5_u32plus)ptr[(n) * 4] | \
        ((MD5_u32plus)ptr[(n) * 4 + 1] << 8) | \
        ((MD5_u32plus)ptr[(n) * 4 + 2] << 16) | \
        ((MD5_u32plus)ptr[(n) * 4 + 3] << 24))

Definition at line 267 of file md5.c.

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

Definition at line 248 of file md5.c.


Typedef Documentation

typedef unsigned int MD5_u32plus

Definition at line 219 of file md5.c.


Function Documentation

static const void* body ( MD5_CTX ctx,
const void *  data,
unsigned long  size 
) [static]

Definition at line 281 of file md5.c.

int Curl_MD5_final ( MD5_context context,
unsigned char *  result 
)

Definition at line 553 of file md5.c.

MD5_context* Curl_MD5_init ( const MD5_params md5params)

Definition at line 520 of file md5.c.

int Curl_MD5_update ( MD5_context context,
const unsigned char *  data,
unsigned int  len 
)

Definition at line 544 of file md5.c.

void Curl_md5it ( unsigned char *  outbuffer,
const unsigned char *  input 
)

Definition at line 511 of file md5.c.

static void MD5_Final ( unsigned char *  result,
MD5_CTX ctx 
) [static]

Definition at line 434 of file md5.c.

static void MD5_Init ( MD5_CTX ctx) [static]

Definition at line 388 of file md5.c.

static void MD5_Update ( MD5_CTX ctx,
const void *  data,
unsigned long  size 
) [static]

Definition at line 399 of file md5.c.


Variable Documentation

Initial value:

Definition at line 498 of file md5.c.

Initial value:

Definition at line 487 of file md5.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09