sha1-tprf.c File Reference

SHA1 T-PRF for EAP-FAST. More...

#include "includes.h"
#include "common.h"
#include "sha1.h"
#include "crypto.h"
Include dependency graph for sha1-tprf.c:

Go to the source code of this file.

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).

Detailed Description

SHA1 T-PRF for EAP-FAST.

Copyright
Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file sha1-tprf.c.


Function Documentation

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).

Parameters:
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
Returns:
0 on success, -1 of failure

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.

Definition at line 37 of file sha1-tprf.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:19:45 2009 for hostapd by  doxygen 1.6.1