#include <MD5.h>
Definition at line 19 of file MD5.h.
◆ MD5_u32plus
Definition at line 30 of file MD5.h.
◆ MD5() [1/3]
MD5::MD5 |
( |
const unsigned char * |
buffer, |
|
|
unsigned long |
len |
|
) |
| |
◆ MD5() [2/3]
MD5::MD5 |
( |
const char * |
buffer, |
|
|
size_t |
len |
|
) |
| |
◆ MD5() [3/3]
MD5::MD5 |
( |
const std::string & |
buffer | ) |
|
◆ body()
const void * MD5::body |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
private |
Definition at line 161 of file MD5.cxx.
163 const unsigned char *
ptr;
166 Context* ctx = &
m_ctx;
168 ptr = (
const unsigned char *)
data;
◆ digest()
void MD5::digest |
( |
unsigned char * |
result | ) |
|
|
private |
Definition at line 322 of file MD5.cxx.
324 unsigned long used, available;
325 Context* ctx = &
m_ctx;
327 used = ctx->lo & 0x3f;
329 ctx->buffer[
used++] = 0x80;
331 available = 64 -
used;
334 memset(&ctx->buffer[
used], 0, available);
335 body(ctx->buffer, 64);
340 memset(&ctx->buffer[
used], 0, available - 8);
344 OUT(&ctx->buffer[56], ctx->lo)
355 memset(ctx, 0, sizeof(*ctx));
◆ hex_digest()
std::string MD5::hex_digest |
( |
| ) |
const |
Definition at line 94 of file MD5.cxx.
97 for (
int i = 0;
i < 16;
i++) {
◆ init()
◆ raw_digest()
void MD5::raw_digest |
( |
unsigned char * |
s | ) |
const |
◆ update()
void MD5::update |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
private |
Definition at line 281 of file MD5.cxx.
284 unsigned long used, available;
285 Context* ctx = &
m_ctx;
288 if ((ctx->lo = (saved_lo +
size) & 0x1fffffff) < saved_lo)
290 ctx->hi +=
size >> 29;
292 used = saved_lo & 0x3f;
295 available = 64 -
used;
297 if (
size < available) {
302 memcpy(&ctx->buffer[
used],
data, available);
303 data = (
const unsigned char *)
data + available;
305 body(ctx->buffer, 64);
◆ uuid_digest()
void MD5::uuid_digest |
( |
uuid_t & |
uuid | ) |
const |
◆ m_ctx
Definition at line 38 of file MD5.h.
◆ m_digest
unsigned char MD5::m_digest[16] |
|
private |
Definition at line 39 of file MD5.h.
The documentation for this class was generated from the following files:
#define STEP(f, a, b, c, d, x, t, s)