- implemented
[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. This simply wraps hmac-sha1
6 * in a prf.
7 *
8 */
9
10 /*
11 * Copyright (C) 2005 Jan Hutter, Martin Willi
12 * Hochschule fuer Technik Rapperswil
13 *
14 * This program is free software; you can redistribute it and/or modify it
15 * under the terms of the GNU General Public License as published by the
16 * Free Software Foundation; either version 2 of the License, or (at your
17 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
23 */
24
25 #ifndef PRF_HMAC_SHA1_H_
26 #define PRF_HMAC_SHA1_H_
27
28 #include "prf.h"
29
30 #include "../../types.h"
31
32 /**
33 * Object representing a prf using HMAC-SHA1
34 *
35 */
36 typedef struct prf_hmac_sha1_s prf_hmac_sha1_t;
37
38 struct prf_hmac_sha1_s {
39
40 /**
41 * generic prf_t interface for this prf
42 */
43 prf_t prf_interface;
44 };
45
46 /**
47 * Creates a new prf_hmac_sha1_t object
48 *
49 * @return
50 * - prf_hmac_sha1_t if successfully
51 * - NULL if out of ressources
52 */
53 prf_hmac_sha1_t *prf_hmac_sha1_create();
54
55 #endif /*PRF_HMAC_SHA1_H_*/