updated copyright information
[strongswan.git] / src / libstrongswan / crypto / hashers / sha1_hasher.h
1 /**
2 * @file sha1_hasher.h
3 *
4 * @brief Interface of sha1_hasher_t
5 *
6 */
7
8 /*
9 * Copyright (C) 2005-2006 Martin Willi
10 * Copyright (C) 2005 Jan Hutter
11 * Hochschule fuer Technik Rapperswil
12 *
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
22 */
23
24 #ifndef SHA1_HASHER_H_
25 #define SHA1_HASHER_H_
26
27 #include <crypto/hashers/hasher.h>
28
29
30 typedef struct sha1_hasher_t sha1_hasher_t;
31
32 /**
33 * @brief Implementation of hasher_t interface using the
34 * SHA1 algorithm.
35 *
36 * @b Constructors:
37 * - hasher_create() using HASH_SHA1 as algorithm
38 * - sha1_hasher_create()
39 *
40 * @see hasher_t
41 *
42 * @ingroup hashers
43 */
44 struct sha1_hasher_t {
45
46 /**
47 * Generic hasher_t interface for this hasher.
48 */
49 hasher_t hasher_interface;
50 };
51
52 /**
53 * @brief Creates a new sha1_hasher_t.
54 *
55 * @return sha1_hasher_t object
56 *
57 * @ingroup hashers
58 */
59 sha1_hasher_t *sha1_hasher_create(void);
60
61 #endif /*SHA1_HASHER_H_*/