wpa_supplicant / hostapd
2.5
|
SHA1 T-PRF for EAP-FAST. More...
Functions | |
int | sha1_t_prf (const u8 *key, size_t key_len, const char *label, const u8 *seed, size_t seed_len, u8 *buf, size_t buf_len) |
EAP-FAST Pseudo-Random Function (T-PRF) More... | |
SHA1 T-PRF for EAP-FAST.
int sha1_t_prf | ( | const u8 * | key, |
size_t | key_len, | ||
const char * | label, | ||
const u8 * | seed, | ||
size_t | seed_len, | ||
u8 * | buf, | ||
size_t | buf_len | ||
) |
EAP-FAST Pseudo-Random Function (T-PRF)
key | Key for PRF |
key_len | Length of the key in bytes |
label | A unique label for each purpose of the PRF |
seed | Seed value to bind into the key |
seed_len | Length of the seed |
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 for EAP-FAST. T-PRF is defined in RFC 4851, Section 5.5.