4 * @brief Interface of sha1_hasher_t
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
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>.
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
23 #ifndef SHA1_HASHER_H_
24 #define SHA1_HASHER_H_
26 #include <crypto/hashers/hasher.h>
29 typedef struct sha1_hasher_t sha1_hasher_t
;
32 * @brief Implementation of hasher_t interface using the
36 * - hasher_create() using HASH_SHA1 as algorithm
37 * - sha1_hasher_create()
43 struct sha1_hasher_t
{
46 * Generic hasher_t interface for this hasher.
48 hasher_t hasher_interface
;
52 * @brief Creates a new sha1_hasher_t.
54 * @return sha1_hasher_t object
58 sha1_hasher_t
*sha1_hasher_create();
60 #endif /*SHA1_HASHER_H_*/