The introduced SHA1_NOFINAL hasher was not sufficient for EAP-AKA,
[strongswan.git] / src / libstrongswan / crypto / prfs / prf.c
1 /*
2 * Copyright (C) 2005-2006 Martin Willi
3 * Copyright (C) 2005 Jan Hutter
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 *
16 * $Id$
17 */
18
19 #include "prf.h"
20
21 ENUM_BEGIN(pseudo_random_function_names, PRF_UNDEFINED, PRF_KEYED_SHA1,
22 "PRF_UNDEFINED",
23 "PRF_FIPS_SHA1_160",
24 "PRF_FIPS_DES",
25 "PRF_KEYED_SHA1");
26 ENUM_NEXT(pseudo_random_function_names, PRF_HMAC_MD5, PRF_HMAC_SHA2_512, PRF_KEYED_SHA1,
27 "PRF_HMAC_MD5",
28 "PRF_HMAC_SHA1",
29 "PRF_HMAC_TIGER",
30 "PRF_AES128_CBC",
31 "PRF_HMAC_SHA2_256",
32 "PRF_HMAC_SHA2_384",
33 "PRF_HMAC_SHA2_512");
34 ENUM_END(pseudo_random_function_names, PRF_HMAC_SHA2_512);
35