- moved hasher_*_t to *_hasher_t
[strongswan.git] / Source / charon / transforms / hashers / md5_hasher.h
1 /**
2 * @file md5_hasher.h
3 *
4 * @brief Interface for md5_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 MD5_HASHER_H_
24 #define MD5_HASHER_H_
25
26 #include <transforms/hashers/hasher.h>
27
28
29 typedef struct md5_hasher_t md5_hasher_t;
30
31 /**
32 * @brief Implementation of hasher_t interface using the
33 * MD5 algorithm.
34 *
35 * @ingroup hashers
36 */
37 struct md5_hasher_t {
38
39 /**
40 * generic hasher_t interface for this hasher
41 */
42 hasher_t hasher_interface;
43 };
44
45 /**
46 * @brief Creates a new md5_hasher_t.
47 *
48 * @return
49 * - md5_hasher_t if successfully
50 * - NULL if out of ressources
51 *
52 * @ingroup hashers
53 */
54 md5_hasher_t *md5_hasher_create();
55
56 #endif /*MD5_HASHER_H_*/