Asterisk.org: Developer Documentation (28 Oct 2009)

Wed Oct 28 15:47:54 2009

## Asterisk developer's documentation

# md5.h

Go to the documentation of this file.

    00001 /*
    00002  * Asterisk -- An open source telephony toolkit.
    00003  *
    00004  * Copyright (C) 1999 - 2005, Digium, Inc.
    00005  *
    00006  * Mark Spencer <markster@digium.com>
    00007  *
    00008  * See http://www.asterisk.org for more information about
    00009  * the Asterisk project. Please do not directly contact
    00010  * any of the maintainers of this project for assistance;
    00011  * the project provides a web site, mailing lists and IRC
    00012  * channels for your use.
    00013  *
    00014  * This program is free software, distributed under the terms of
    00015  * the GNU General Public License Version 2. See the LICENSE file
    00016  * at the top of the source tree.
    00017  */
    00018
    00019 /*!\file
    00020  * \brief MD5 digest functions
    00021  */
    00022
    00023 #ifndef _ASTERISK_MD5_H
    00024 #define _ASTERISK_MD5_H
    00025
    00026 #include <inttypes.h>
    00027
    00028 struct MD5Context {
    00029    uint32_t buf[4];
    00030    uint32_t bits[2];
    00031    unsigned char in[64];
    00032 };
    00033
    00034 void MD5Init(struct MD5Context *context);
    00035 void MD5Update(struct MD5Context *context, unsigned char const *buf,
    00036           unsigned len);
    00037 void MD5Final(unsigned char digest[16], struct MD5Context *context);
    00038 void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
    00039
    00040 #endif /* _ASTERISK_MD5_H */