view extensions/app_sip/md5.h @ 1533:f8561a0f7ac1

Rename IPv6 AVPs per 3GPP TS 29.061 The following AVPs were renamed in 3GPP TS 29.061 V12.6.0 (2014-06) (where "IPv6" was globally changed to "Ipv6" in the standard): - 3GPP-CG-IPv6-Address (14) renamed to 3GPP-CG-Ipv6-Address (14). - 3GPP-SGSN-IPv6-Address (15) renamed to 3GPP-SGSN-Ipv6-Address (15). - 3GPP-GGSN-IPv6-Address (16) renamed to 3GPP-GGSN-Ipv6-Address (16). - 3GPP-IPv6-DNS-Servers (17) renamed to 3GPP-Ipv6-DNS-Servers (17). - MBMS-GGSN-IPv6-Address (917) renamed to MBMS-GGSN-Ipv6-Address (917). - MBMS-BMSC-SSM-IPv6-Address (919) renamed to MBMS-BMSC-SSM-Ipv6-Address (919).
author Luke Mewburn <luke@mewburn.net>
date Mon, 20 Apr 2020 11:44:56 +1000
parents ce3cacbbccc9
children
line wrap: on
line source

/*********************************************************************************/
/* freeDiameter author note:
 *  The content from this file comes directly from the hostap project.
 * It is redistributed under the terms of the BSD license, as allowed
 * by the original copyright reproduced below.
 *  The file has not been modified, except for this notice.
 */
/*********************************************************************************/

/*
 * MD5 hash implementation and interface functions
 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
 *
 * 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.
 */

#ifndef MD5_H
#define MD5_H

#define MD5_MAC_LEN 16

typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
typedef int64_t s64;
typedef int32_t s32;
typedef int16_t s16;
typedef int8_t s8;

#define HASHLEN 16
typedef char HASH[HASHLEN];
#define HASHHEXLEN 32
typedef char HASHHEX[HASHHEXLEN+1];
#define IN
#define OUT

struct MD5Context {
	u32 buf[4];
	u32 bits[2];
	u8 in[64];
};
typedef struct MD5Context MD5_CTX;
#define os_memcpy(d, s, n) memcpy((d), (s), (n))
#define os_memset(s, c, n) memset(s, c, n)


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);

#endif /* MD5_H */
"Welcome to our mercurial repository"