added support for AUTH_HMAC_SHA1_160
[strongswan.git] / src / libstrongswan / crypto / signers / signer.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
17 #include "signer.h"
18
19 ENUM_BEGIN(integrity_algorithm_names, AUTH_UNDEFINED, AUTH_HMAC_SHA1_128,
20 "UNDEFINED",
21 "AUTH_HMAC_SHA1_128");
22 ENUM_NEXT(integrity_algorithm_names, AUTH_HMAC_MD5_96, AUTH_HMAC_SHA1_160, AUTH_HMAC_SHA1_128,
23 "HMAC_MD5_96",
24 "HMAC_SHA1_96",
25 "DES_MAC",
26 "KPDK_MD5",
27 "AES_XCBC_96",
28 "HMAC_MD5_128",
29 "HMAC_SHA1_160");
30 ENUM_NEXT(integrity_algorithm_names, AUTH_HMAC_SHA2_256_128, AUTH_HMAC_SHA2_512_256, AUTH_HMAC_SHA1_160,
31 "AUTH_HMAC_SHA2_256_128",
32 "AUTH_HMAC_SHA2_384_192",
33 "AUTH_HMAC_SHA2_512_256");
34 ENUM_END(integrity_algorithm_names, AUTH_HMAC_SHA2_512_256);
35