1 /* IKE SHA-2 hash algorithm description
2 * Copyright (C) JuanJo Ciarlante <jjo-ipsec@mendoza.gov.ar>
3 * Copyright (C) 2009 Andreas Steffen
5 * Hochschule fuer Technik Rapperswil
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>.
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
18 #include <crypto/hashers/hasher.h>
22 struct hash_desc hash_desc_sha2_256
= {
23 algo_type
: IKE_ALG_HASH
,
24 algo_id
: OAKLEY_SHA2_256
,
26 hash_digest_size
: HASH_SIZE_SHA256
,
29 struct hash_desc hash_desc_sha2_384
= {
30 algo_type
: IKE_ALG_HASH
,
31 algo_id
: OAKLEY_SHA2_384
,
33 hash_digest_size
: HASH_SIZE_SHA384
,
36 struct hash_desc hash_desc_sha2_512
= {
37 algo_type
: IKE_ALG_HASH
,
38 algo_id
: OAKLEY_SHA2_512
,
40 hash_digest_size
: HASH_SIZE_SHA512
,