wpa_supplicant / hostapd
2.5
|
SHA1-based PRF. More...
Functions | |
int | sha1_prf (const u8 *key, size_t key_len, const char *label, const u8 *data, size_t data_len, u8 *buf, size_t buf_len) |
SHA1-based Pseudo-Random Function (PRF) (IEEE 802.11i, 8.5.1.1) More... | |
SHA1-based PRF.
int sha1_prf | ( | const u8 * | key, |
size_t | key_len, | ||
const char * | label, | ||
const u8 * | data, | ||
size_t | data_len, | ||
u8 * | buf, | ||
size_t | buf_len | ||
) |
SHA1-based Pseudo-Random Function (PRF) (IEEE 802.11i, 8.5.1.1)
key | Key for PRF |
key_len | Length of the key in bytes |
label | A unique label for each purpose of the PRF |
data | Extra data to bind into the key |
data_len | Length of the data |
buf | Buffer for the generated pseudo-random key |
buf_len | Number of bytes of key to generate |
This function is used to derive new, cryptographically separate keys from a given key (e.g., PMK in IEEE 802.11i).