aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/fips/fips.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-08-29 08:54:53 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-08-29 08:54:53 +0000
commitfa50e4df48722e7bbbe42ec1e29ad0d6193fc431 (patch)
tree4cc913476af4e1c59df8539a35dbc1ed488833b5 /src/libstrongswan/fips/fips.h
parentdc5a849bf0a333012c009f7e7d4c44c5d4988819 (diff)
downloadstrongswan-fa50e4df48722e7bbbe42ec1e29ad0d6193fc431.tar.bz2
strongswan-fa50e4df48722e7bbbe42ec1e29ad0d6193fc431.tar.xz
compute SHA-1 HMAC over libstrongswan TEXT segment for the time being
Diffstat (limited to 'src/libstrongswan/fips/fips.h')
-rw-r--r--src/libstrongswan/fips/fips.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libstrongswan/fips/fips.h b/src/libstrongswan/fips/fips.h
index e91d5e4bc..decf73bfd 100644
--- a/src/libstrongswan/fips/fips.h
+++ b/src/libstrongswan/fips/fips.h
@@ -30,17 +30,18 @@
* @brief compute HMAC signature over RODATA and TEXT sections of libstrongswan
*
* @param key key used for HMAC signature in ASCII string format
- * @return HMAC signature in HEX string format
+ * @param signature HMAC signature in HEX string format
+ * @return TRUE if HMAC signature computation was successful
*/
-char* fips_compute_hmac_signature(const char *key);
+bool fips_compute_hmac_signature(const char *key, char *signature);
/**
* @brief verify HMAC signature over RODATA and TEXT sections of libstrongswan
*
* @param key key used for HMAC signature in ASCII string format
* @param signature signature value from fips_signature.h in HEX string format
- * @return SUCCESS if signatures agree
+ * @return TRUE if signatures agree
*/
-status_t fips_verify_hmac_signature(const char *key, const char *signature);
+bool fips_verify_hmac_signature(const char *key, const char *signature);
#endif /*FIPS_H_*/