merged the modularization branch (credentials) back to trunk
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
/**
|
||||
* @file fips.c
|
||||
*
|
||||
* @brief Implementation of the libstrongswan integrity test.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2007 Bruno Krieg, Daniel Wydler
|
||||
* Hochschule fuer Technik Rapperswil
|
||||
@@ -18,6 +11,8 @@
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
/**
|
||||
* @file fips.h
|
||||
*
|
||||
* @brief Interface of the libstrongswan integrity test
|
||||
*
|
||||
* @ingroup fips
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2007 Bruno Krieg, Daniel Wydler
|
||||
* Hochschule fuer Technik Rapperswil
|
||||
@@ -19,6 +11,13 @@
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup fips fips
|
||||
* @{ @ingroup fips
|
||||
*/
|
||||
|
||||
#ifndef FIPS_H_
|
||||
@@ -27,21 +26,21 @@
|
||||
#include <library.h>
|
||||
|
||||
/**
|
||||
* @brief compute HMAC signature over RODATA and TEXT sections of libstrongswan
|
||||
* compute HMAC signature over RODATA and TEXT sections of libstrongswan
|
||||
*
|
||||
* @param key key used for HMAC signature in ASCII string format
|
||||
* @param signature HMAC signature in HEX string format
|
||||
* @return TRUE if HMAC signature computation was successful
|
||||
* @param key key used for HMAC signature in ASCII string format
|
||||
* @param signature HMAC signature in HEX string format
|
||||
* @return TRUE if HMAC signature computation was successful
|
||||
*/
|
||||
bool fips_compute_hmac_signature(const char *key, char *signature);
|
||||
|
||||
/**
|
||||
* @brief verify HMAC signature over RODATA and TEXT sections of libstrongswan
|
||||
* 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 TRUE if signatures agree
|
||||
* @param key key used for HMAC signature in ASCII string format
|
||||
* @param signature signature value from fips_signature.h in HEX string format
|
||||
* @return TRUE if signatures agree
|
||||
*/
|
||||
bool fips_verify_hmac_signature(const char *key, const char *signature);
|
||||
|
||||
#endif /*FIPS_H_*/
|
||||
#endif /*FIPS_H_ @} */
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
/**
|
||||
* @file fips_canister_end.c
|
||||
*
|
||||
* @brief Marks the end of TEXT and RODATA.
|
||||
*
|
||||
*/
|
||||
|
||||
/* ====================================================================
|
||||
* Copyright (c) 2005 The OpenSSL Project. Rights for redistribution
|
||||
* and usage in source and binary forms are granted according to the
|
||||
* OpenSSL license.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
/**
|
||||
* @file fips_canister_start.c
|
||||
*
|
||||
* @brief Marks the start of TEXT and RODATA.
|
||||
*
|
||||
*/
|
||||
|
||||
/* ====================================================================
|
||||
* Copyright (c) 2005 The OpenSSL Project. Rights for redistribution
|
||||
* and usage in source and binary forms are granted according to the
|
||||
* OpenSSL license.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
/**
|
||||
* @file fips_signer.c
|
||||
*
|
||||
* @brief Computes a HMAC signature and stores it in fips_signature.h.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2007 Bruno Krieg, Daniel Wydler
|
||||
* Hochschule fuer Technik Rapperswil, Switzerland
|
||||
@@ -18,6 +11,8 @@
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -57,7 +52,7 @@ int main(int argc, char* argv[])
|
||||
fprintf(f, "const char *hmac_key = \"%s\";\n", hmac_key);
|
||||
fprintf(f, "const char *hmac_signature = \"%s\";\n", hmac_signature);
|
||||
fprintf(f, "\n");
|
||||
fprintf(f, "#endif /* FIPS_SIGNATURE_H_ */\n");
|
||||
fprintf(f, "#endif /* FIPS_SIGNATURE_H_ @} */\n");
|
||||
fclose(f);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user