build checksums for charon plugins
[strongswan.git] / src / libstrongswan / fips / fips.h
1 /*
2 * Copyright (C) 2007 Bruno Krieg, Daniel Wydler
3 * Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup fips1 fips
18 * @{ @ingroup fips
19 */
20
21 #ifndef FIPS_H_
22 #define FIPS_H_
23
24 #include <library.h>
25
26 /**
27 * compute HMAC signature over RODATA and TEXT sections of libstrongswan
28 *
29 * @param key key used for HMAC signature in ASCII string format
30 * @param signature HMAC signature in HEX string format
31 * @return TRUE if HMAC signature computation was successful
32 */
33 bool fips_compute_hmac_signature(const char *key, char *signature);
34
35 /**
36 * verify HMAC signature over RODATA and TEXT sections of libstrongswan
37 *
38 * @param key key used for HMAC signature in ASCII string format
39 * @param signature signature value from fips_signature.h in HEX string format
40 * @return TRUE if signatures agree
41 */
42 bool fips_verify_hmac_signature(const char *key, const char *signature);
43
44 #endif /** FIPS_H_ @}*/