2 * Copyright (C) 2008 Thomas Kallenberg
3 * Copyright (C) 2008 Martin Willi
5 * Copyright (C) secunet Security Networks AG
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 * @defgroup padlock_sha1_hasher padlock_sha1_hasher
20 * @{ @ingroup padlock_p
23 #ifndef PADLOCK_SHA1_HASHER_H_
24 #define PADLOCK_SHA1_HASHER_H_
26 typedef struct padlock_sha1_hasher_t padlock_sha1_hasher_t
;
28 #include <crypto/hashers/hasher.h>
31 * Implementation of hasher_t interface using the SHA1 algorithm.
33 struct padlock_sha1_hasher_t
{
36 * Implements hasher_t interface.
42 * Creates a new sha1_hasher_t.
44 * @param algo algorithm, must be HASH_SHA1
45 * @return sha1_hasher_t object
47 padlock_sha1_hasher_t
*padlock_sha1_hasher_create(hash_algorithm_t algo
);
49 #endif /** SHA1_HASHER_H_ @}*/