]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libstrongswan/plugins/padlock/padlock_sha1_hasher.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libstrongswan / plugins / padlock / padlock_sha1_hasher.h
1 /*
2 * Copyright (C) 2008 Thomas Kallenberg
3 * Copyright (C) 2008 Martin Willi
4 *
5 * Copyright (C) secunet Security Networks AG
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 /**
19 * @defgroup padlock_sha1_hasher padlock_sha1_hasher
20 * @{ @ingroup padlock_p
21 */
22
23 #ifndef PADLOCK_SHA1_HASHER_H_
24 #define PADLOCK_SHA1_HASHER_H_
25
26 typedef struct padlock_sha1_hasher_t padlock_sha1_hasher_t;
27
28 #include <crypto/hashers/hasher.h>
29
30 /**
31 * Implementation of hasher_t interface using the SHA1 algorithm.
32 */
33 struct padlock_sha1_hasher_t {
34
35 /**
36 * Implements hasher_t interface.
37 */
38 hasher_t hasher;
39 };
40
41 /**
42 * Creates a new sha1_hasher_t.
43 *
44 * @param algo algorithm, must be HASH_SHA1
45 * @return sha1_hasher_t object
46 */
47 padlock_sha1_hasher_t *padlock_sha1_hasher_create(hash_algorithm_t algo);
48
49 #endif /** SHA1_HASHER_H_ @}*/