FIPS 186-2 PRF for libgcrypt. More...
#include "includes.h"
#include <gcrypt.h>
#include "common.h"
#include "crypto.h"
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. |
FIPS 186-2 PRF for libgcrypt.
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.
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.
seed | Seed/key for the PRF | |
seed_len | Seed length in bytes | |
x | Buffer for PRF output | |
xlen | Output length in bytes |
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.