summaryrefslogtreecommitdiff
path: root/pppd/plugins/radius/md5.c
blob: 8acfb38c49a3a9e791f87ceccb9eedcabd067cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * $Id: md5.c,v 1.1 2004/11/14 07:26:26 paulus Exp $
 */
#include <pppd/md5.h>

void rc_md5_calc (unsigned char *output, unsigned char *input, unsigned int inlen)
{
	MD5_CTX         context;

	MD5_Init (&context);
	MD5_Update (&context, input, inlen);
	MD5_Final (output, &context);
}