EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
src
radius
md5.h
Go to the documentation of this file.
1
/*
2
* MD5 hash implementation and interface functions
3
* Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
4
*
5
* This software may be distributed under the terms of the BSD license.
6
* See README for more details.
7
*/
8
15
#ifndef MD5_H
16
#define MD5_H
17
18
#include <stdint.h>
19
#include <sys/types.h>
20
#include <unistd.h>
21
22
#define MD5_MAC_LEN 16
23
24
#define hmac_md5(key, key_len, data, data_len, mac) \
25
edge_hmac_md5((key), (key_len), (data), (data_len), (mac))
26
47
int
edge_hmac_md5
(
const
uint8_t *key,
size_t
key_len,
const
uint8_t *data,
48
size_t
data_len, uint8_t *mac);
49
50
#endif
/* MD5_H */
edge_hmac_md5
int edge_hmac_md5(const uint8_t *key, size_t key_len, const uint8_t *data, size_t data_len, uint8_t *mac)
Definition:
md5.c:102
Generated by
1.9.1