d7e9124eeeff00eb20e3221d4596e0c5413a5fa0
[strongswan.git] / Source / charon / transforms / hashers / hasher_md5.h
1 /**
2 * @file hasher_md5.h
3 *
4 * @brief Implementation of hasher_t interface using the
5 * md5 algorithm.
6 *
7 */
8
9 /*
10 * Copyright (C) 2005 Jan Hutter, Martin Willi
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 HASHER_MD5_H_
25 #define HASHER_MD5_H_
26
27 #include <transforms/hashers/hasher.h>
28
29
30 typedef struct hasher_md5_t hasher_md5_t;
31
32 /**
33 * Object representing the md5 hasher
34 *
35 */
36 struct hasher_md5_t {
37
38 /**
39 * generic hasher_t interface for this hasher
40 */
41 hasher_t hasher_interface;
42 };
43
44 /**
45 * Creates a new hasher_md5_t object
46 *
47 * @return
48 * - hasher_md5_t if successfully
49 * - NULL if out of ressources
50 */
51 hasher_md5_t *hasher_md5_create();
52
53 #endif /*HASHER_md5_H_*/