- removed key from constructor
[strongswan.git] / Source / charon / transforms / prfs / prf_hmac_sha1.h
1 /**
2 * @file prf_hmac_sha1.h
3 *
4 * @brief Implementation of prf_t interface using the
5 * HMAC SHA1 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 PRF_HMAC_SHA1_H_
25 #define PRF_HMAC_SHA1_H_
26
27 #include "prf.h"
28
29 #include "../../types.h"
30
31 /**
32 * Object representing a diffie hellman exchange
33 *
34 */
35 typedef struct prf_hmac_sha1_s prf_hmac_sha1_t;
36
37 struct prf_hmac_sha1_s {
38
39 /**
40 * generic prf_t interface for this prf
41 */
42 prf_t prf_interface;
43 };
44
45 /**
46 * Creates a new prf_hmac_sha1_t object
47 *
48 * @return
49 * - prf_hmac_sha1_t if successfully
50 * - NULL if out of ressources
51 */
52 prf_hmac_sha1_t *prf_hmac_sha1_create();
53
54 #endif /*PRF_HMAC_SHA1_H_*/