wpa_supplicant / hostapd
2.5
|
SHA1 hash implementation and interface functions. More...
Functions | |
int | hmac_sha1_vector (const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) |
HMAC-SHA1 over data vector (RFC 2104) More... | |
int | hmac_sha1 (const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) |
HMAC-SHA1 over data buffer (RFC 2104) More... | |
SHA1 hash implementation and interface functions.
int hmac_sha1 | ( | const u8 * | key, |
size_t | key_len, | ||
const u8 * | data, | ||
size_t | data_len, | ||
u8 * | mac | ||
) |
HMAC-SHA1 over data buffer (RFC 2104)
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 |
mac | Buffer for the hash (20 bytes) |
int hmac_sha1_vector | ( | const u8 * | key, |
size_t | key_len, | ||
size_t | num_elem, | ||
const u8 * | addr[], | ||
const size_t * | len, | ||
u8 * | mac | ||
) |
HMAC-SHA1 over data vector (RFC 2104)
key | Key for HMAC operations |
key_len | Length of the key in bytes |
num_elem | Number of elements in the data vector |
addr | Pointers to the data areas |
len | Lengths of the data blocks |
mac | Buffer for the hash (20 bytes) |