#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"
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_context * | Curl_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)))) |
#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))) |
Value:
Definition at line 267 of file md5.c.
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
Function Documentation
static const void* body |
( |
MD5_CTX * |
ctx, |
|
|
const void * |
data, |
|
|
unsigned long |
size |
|
) |
| [static] |
void Curl_md5it |
( |
unsigned char * |
outbuffer, |
|
|
const unsigned char * |
input |
|
) |
| |
static void MD5_Update |
( |
MD5_CTX * |
ctx, |
|
|
const void * |
data, |
|
|
unsigned long |
size |
|
) |
| [static] |
Variable Documentation
Initial value:
Definition at line 498 of file md5.c.
Initial value:
Definition at line 487 of file md5.c.