MD5 hash implementation and interface functions. More...
#include "includes.h"
#include "common.h"
#include "md5.h"
#include "md5_i.h"
#include "crypto.h"
Go to the source code of this file.
Defines | |
#define | byteReverse(buf, len) |
#define | F1(x, y, z) (z ^ (x & (y ^ z))) |
#define | F2(x, y, z) F1(z, x, y) |
#define | F3(x, y, z) (x ^ y ^ z) |
#define | F4(x, y, z) (y ^ (x | ~z)) |
#define | MD5STEP(f, w, x, y, z, data, s) ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) |
Typedefs | |
typedef struct MD5Context | MD5_CTX |
Functions | |
int | md5_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
MD5 hash for data vector. | |
void | MD5Init (struct MD5Context *ctx) |
void | MD5Update (struct MD5Context *ctx, unsigned char const *buf, unsigned len) |
void | MD5Final (unsigned char digest[16], struct MD5Context *ctx) |
MD5 hash implementation and interface functions.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file md5-internal.c.
int md5_vector | ( | size_t | num_elem, | |
const u8 * | addr[], | |||
const size_t * | len, | |||
u8 * | mac | |||
) |
MD5 hash for data vector.
num_elem | Number of elements in the data vector | |
addr | Pointers to the data areas | |
len | Lengths of the data blocks | |
mac | Buffer for the hash |
Definition at line 39 of file md5-internal.c.