fips_prf_gnutls.c File Reference

FIPS 186-2 PRF for libgcrypt. More...

#include "includes.h"
#include <gcrypt.h>
#include "common.h"
#include "crypto.h"
Include dependency graph for fips_prf_gnutls.c:

Go to the source code of this file.

Functions

int fips186_2_prf (const u8 *seed, size_t seed_len, u8 *x, size_t xlen)
 NIST FIPS Publication 186-2 change notice 1 PRF.

Detailed Description

FIPS 186-2 PRF for libgcrypt.

Copyright
Copyright (c) 2004-2009, 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 fips_prf_gnutls.c.


Function Documentation

int fips186_2_prf ( const u8 *  seed,
size_t  seed_len,
u8 *  x,
size_t  xlen 
)

NIST FIPS Publication 186-2 change notice 1 PRF.

Parameters:
seed Seed/key for the PRF
seed_len Seed length in bytes
x Buffer for PRF output
xlen Output length in bytes
Returns:
0 on success, -1 on failure

This function implements random number generation specified in NIST FIPS Publication 186-2 for EAP-SIM. This PRF uses a function that is similar to SHA-1, but has different message padding.

Definition at line 23 of file fips_prf_gnutls.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

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