455e2e34221dcd90ab1c2bd6842de5241c4a0700
[strongswan.git] / src / pluto / alg / ike_alg_sha2.c
1 /* IKE SHA-2 hash algorithm description
2 * Copyright (C) JuanJo Ciarlante <jjo-ipsec@mendoza.gov.ar>
3 * Copyright (C) 2009 Andreas Steffen
4 *
5 * Hochschule fuer Technik Rapperswil
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
16 */
17
18 #include <crypto/hashers/hasher.h>
19
20 #include "ike_alg.h"
21
22 struct hash_desc hash_desc_sha2_256 = {
23 algo_type: IKE_ALG_HASH,
24 algo_id: OAKLEY_SHA2_256,
25 algo_next: NULL,
26 hash_digest_size: HASH_SIZE_SHA256,
27 };
28
29 struct hash_desc hash_desc_sha2_384 = {
30 algo_type: IKE_ALG_HASH,
31 algo_id: OAKLEY_SHA2_384,
32 algo_next: NULL,
33 hash_digest_size: HASH_SIZE_SHA384,
34 };
35
36 struct hash_desc hash_desc_sha2_512 = {
37 algo_type: IKE_ALG_HASH,
38 algo_id: OAKLEY_SHA2_512,
39 algo_next: NULL,
40 hash_digest_size: HASH_SIZE_SHA512,
41 };
42