MD5 hash implementation and interface functions.
More...
#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
Go to the source code of this file.
|
int | edge_hmac_md5 (const uint8_t *key, size_t key_len, const uint8_t *data, size_t data_len, uint8_t *mac) |
|
MD5 hash implementation and interface functions.
- Author
- Jouni Malinen
◆ hmac_md5
#define hmac_md5 |
( |
|
key, |
|
|
|
key_len, |
|
|
|
data, |
|
|
|
data_len, |
|
|
|
mac |
|
) |
| edge_hmac_md5((key), (key_len), (data), (data_len), (mac)) |
◆ MD5_MAC_LEN
◆ 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 |
|
) |
| |
HMAC-MD5 over data buffer (RFC 2104)
- Parameters
-
| key | Key for HMAC operations |
| key_len | Length of the key in bytes |
| data | Pointers to the data area |
| data_len | Length of the data area |
[out] | mac | Buffer for the hash (16 bytes) |
- Return values
-
- Author
- Jouni Malinen j@w1..nosp@m.fi
- Date
- 2003-2009
- Copyright
- SPDX-License-Identifier: BSD-3-Clause