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