4 * @brief Interface of hmac_signer_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 HMAC_SIGNER_H_
24 #define HMAC_SIGNER_H_
26 #include <crypto/signers/signer.h>
27 #include <crypto/hashers/hasher.h>
29 typedef struct hmac_signer_t hmac_signer_t
;
32 * @brief Implementation of signer_t interface using the
33 * HMAC algorithm in combination with either MD5 or SHA1.
37 struct hmac_signer_t
{
40 * generic signer_t interface for this signer
42 signer_t signer_interface
;
46 * @brief Creates a new hmac_signer_t.
48 * @param hash_algoritm Hash algorithm to use with signer
51 * - NULL if hash algorithm not supported
55 hmac_signer_t
*hmac_signer_create(hash_algorithm_t hash_algoritm
);
58 #endif /*HMAC_SIGNER_H_*/