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

◆ F

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

Definition at line 239 of file md5.c.

◆ G

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

Definition at line 240 of file md5.c.

◆ GET

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

Definition at line 273 of file md5.c.

◆ H

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

Definition at line 241 of file md5.c.

◆ H2

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

Definition at line 242 of file md5.c.

◆ I

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

Definition at line 243 of file md5.c.

◆ SET

#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.

◆ STEP

#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

◆ MD5_u32plus

typedef unsigned int MD5_u32plus

Definition at line 219 of file md5.c.

Function Documentation

◆ body()

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

Definition at line 281 of file md5.c.

◆ Curl_MD5_final()

int Curl_MD5_final ( MD5_context context,
unsigned char *  result 
)

Definition at line 553 of file md5.c.

◆ Curl_MD5_init()

MD5_context* Curl_MD5_init ( const MD5_params md5params)

Definition at line 520 of file md5.c.

◆ Curl_MD5_update()

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

Definition at line 544 of file md5.c.

◆ Curl_md5it()

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

Definition at line 511 of file md5.c.

◆ MD5_Final()

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

Definition at line 434 of file md5.c.

◆ MD5_Init()

static void MD5_Init ( MD5_CTX ctx)
static

Definition at line 388 of file md5.c.

◆ MD5_Update()

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

Definition at line 399 of file md5.c.

Variable Documentation

◆ Curl_DIGEST_MD5

const MD5_params Curl_DIGEST_MD5[]
Initial value:

Definition at line 498 of file md5.c.

◆ Curl_HMAC_MD5

const HMAC_params Curl_HMAC_MD5[]
Initial value:

Definition at line 487 of file md5.c.

ptr
UNITTEST_START char * ptr
Definition: unit1330.c:38
HMAC_hinit_func
void(* HMAC_hinit_func)(void *context)
Definition: curl_hmac.h:27
s
XmlRpcServer s
HMAC_hupdate_func
void(* HMAC_hupdate_func)(void *context, const unsigned char *data, unsigned int len)
Definition: curl_hmac.h:28
MD5_u32plus
unsigned int MD5_u32plus
Definition: md5.c:219
Curl_MD5_update_func
void(* Curl_MD5_update_func)(void *context, const unsigned char *data, unsigned int len)
Definition: curl_md5.h:31
f
f
MD5_Init
static void MD5_Init(MD5_CTX *ctx)
Definition: md5.c:388
a
Definition: unit1323.c:36
Curl_MD5_init_func
void(* Curl_MD5_init_func)(void *context)
Definition: curl_md5.h:30
HMAC_hfinal_func
void(* HMAC_hfinal_func)(unsigned char *result, void *context)
Definition: curl_hmac.h:31
MD5_Update
static void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
Definition: md5.c:399
MD5_Final
static void MD5_Final(unsigned char *result, MD5_CTX *ctx)
Definition: md5.c:434
Curl_MD5_final_func
void(* Curl_MD5_final_func)(unsigned char *result, void *context)
Definition: curl_md5.h:34
t
geometry_msgs::TransformStamped t
MD5_CTX
Definition: md5.c:221


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sun May 15 2022 02:25:02