Classes | Macros | 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
 

Macros

#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 []
 

Macro Definition 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))
UNITTEST_START char * ptr
Definition: unit1330.c:38
unsigned int MD5_u32plus
Definition: md5.c:219

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);
f
XmlRpcServer s
geometry_msgs::TransformStamped t
Definition: unit1323.c:36

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

const MD5_params Curl_DIGEST_MD5[]
Initial value:
= {
{
sizeof(MD5_CTX),
16
}
}
static void MD5_Final(unsigned char *result, MD5_CTX *ctx)
Definition: md5.c:434
void(* Curl_MD5_final_func)(unsigned char *result, void *context)
Definition: curl_md5.h:34
static void MD5_Init(MD5_CTX *ctx)
Definition: md5.c:388
void(* Curl_MD5_init_func)(void *context)
Definition: curl_md5.h:30
static void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
Definition: md5.c:399
Definition: md5.c:221
void(* Curl_MD5_update_func)(void *context, const unsigned char *data, unsigned int len)
Definition: curl_md5.h:31

Definition at line 498 of file md5.c.

const HMAC_params Curl_HMAC_MD5[]
Initial value:
= {
{
sizeof(MD5_CTX),
64,
16
}
}
static void MD5_Final(unsigned char *result, MD5_CTX *ctx)
Definition: md5.c:434
void(* HMAC_hupdate_func)(void *context, const unsigned char *data, unsigned int len)
Definition: curl_hmac.h:28
static void MD5_Init(MD5_CTX *ctx)
Definition: md5.c:388
static void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
Definition: md5.c:399
Definition: md5.c:221
void(* HMAC_hinit_func)(void *context)
Definition: curl_hmac.h:27
void(* HMAC_hfinal_func)(unsigned char *result, void *context)
Definition: curl_hmac.h:31

Definition at line 487 of file md5.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17