Go to the source code of this file.
Implements the standard MD5 routines.
Definition in file ocs_md5.c.
Macros | |
| #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, in, s) (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x) |
Functions | |
| static void | ocs_md5transform (uint32_t buf[4], uint32_t const in[16]) |
| void | ocs_md5_init (ocs_md5_ctx_t *ctx) |
| void | ocs_md5_update (ocs_md5_ctx_t *ctx, md5byte const *buf, unsigned len) |
| void | ocs_md5_final (md5byte digest[16], ocs_md5_ctx_t *ctx) |
| #define MD5STEP | ( | f, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| in, | |||
| s | |||
| ) | (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x) |
| void ocs_md5_final | ( | md5byte | digest[16], |
| ocs_md5_ctx_t * | ctx | ||
| ) |
| void ocs_md5_init | ( | ocs_md5_ctx_t * | ctx | ) |
| void ocs_md5_update | ( | ocs_md5_ctx_t * | ctx, |
| md5byte const * | buf, | ||
| unsigned | len | ||
| ) |