Asterisk - The Open Source Telephony Project  21.4.1
Macros | Functions
utils/md5.c File Reference

MD5 checksum routines used for authentication. Not covered by GPL, but in the public domain as per the copyright below. More...

#include "asterisk.h"
#include "asterisk/endian.h"
#include "asterisk/md5.h"

Go to the source code of this file.

Macros

#define byteReverse(buf, len)   /* Nothing */
 
#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 )
 

Functions

void MD5Final (unsigned char digest[16], struct MD5Context *ctx)
 
void MD5Init (struct MD5Context *ctx)
 
void MD5Transform (uint32_t buf[4], uint32_t const in[16])
 
void MD5Update (struct MD5Context *ctx, unsigned char const *buf, unsigned len)
 

Detailed Description

MD5 checksum routines used for authentication. Not covered by GPL, but in the public domain as per the copyright below.

Definition in file utils/md5.c.