2 * Copyright (C) 2005-2008 Martin Willi
3 * Copyright (C) 2005 Jan Hutter
4 * Hochschule fuer Technik Rapperswil
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * @defgroup sha1_hasher sha1_hasher
22 #ifndef SHA1_HASHER_H_
23 #define SHA1_HASHER_H_
25 typedef struct sha1_hasher_t sha1_hasher_t
;
27 #include <crypto/hashers/hasher.h>
30 * Implementation of hasher_t interface using the SHA1 algorithm.
32 struct sha1_hasher_t
{
35 * Implements hasher_t interface.
37 hasher_t hasher_interface
;
41 * Creates a new sha1_hasher_t.
43 * @param algo algorithm, must be HASH_SHA1
44 * @return sha1_hasher_t object
46 sha1_hasher_t
*sha1_hasher_create(hash_algorithm_t algo
);
48 #endif /*SHA1_HASHER_H_ @}*/