mirror of https://github.com/wolfSSL/wolfTPM.git
Merge pull request #199 from dgarske/spell
commit
4523d9bce1
|
@ -47,7 +47,7 @@ static void usage(void)
|
|||
{
|
||||
printf("Expected usage:\n");
|
||||
printf("./examples/keygen/keygen [keyblob.bin] [-ecc/-rsa/-sym] [-t] [-aes/xor] [-eh] [-pem]\n");
|
||||
printf("* -pem: Store the primary and child public keys as PEM formated files\n");
|
||||
printf("* -pem: Store the primary and child public keys as PEM formatted files\n");
|
||||
printf("\t child public key filename: ak.pem or key.pem\n");
|
||||
printf("\t primary public key filename: ek.pem or srk.pem\n");
|
||||
printf("* -eh: Create keys under the Endorsement Hierarchy (EK)\n");
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# All paths should be given relative to the root
|
||||
|
||||
if BUILD_EXAMPLES
|
||||
noinst_HEADERS += examples/nvram/store.h
|
||||
noinst_HEADERS += examples/nvram/nvram.h
|
||||
|
||||
noinst_PROGRAMS += examples/nvram/store
|
||||
examples_nvram_store_SOURCES = examples/nvram/store.c \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* store.h
|
||||
/* nvram.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
|
@ -19,8 +19,8 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef _STORE_H_
|
||||
#define _STORE_H_
|
||||
#ifndef _NVRAM_EXAMPLE_H_
|
||||
#define _NVRAM_EXAMPLE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -33,4 +33,4 @@ int TPM2_NVRAM_Read_Example(void* userCtx, int argc, char *argv[]);
|
|||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* _Store_H_ */
|
||||
#endif /* _NVRAM_EXAMPLE_H_ */
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <wolftpm/tpm2_wrap.h>
|
||||
|
||||
#include <examples/nvram/store.h>
|
||||
#include <examples/nvram/nvram.h>
|
||||
#include <examples/tpm_io.h>
|
||||
#include <examples/tpm_test.h>
|
||||
#include <examples/tpm_test_keys.h>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <wolftpm/tpm2_wrap.h>
|
||||
|
||||
#include <examples/nvram/store.h>
|
||||
#include <examples/nvram/nvram.h>
|
||||
#include <examples/tpm_io.h>
|
||||
#include <examples/tpm_test.h>
|
||||
#include <examples/tpm_test_keys.h>
|
||||
|
|
|
@ -3209,7 +3209,7 @@ WOLFTPM_API int TPM2_GetHashDigestSize(TPMI_ALG_HASH hashAlg);
|
|||
|
||||
/*!
|
||||
\ingroup TPM2_Proprietary
|
||||
\brief Translate a TPM2 hash type to its coresponding wolfcrypt hash type
|
||||
\brief Translate a TPM2 hash type to its corresponding wolfcrypt hash type
|
||||
|
||||
\return a value specifying a hash type to use with wolfcrypt
|
||||
\return 0 if hash type is invalid
|
||||
|
@ -3341,7 +3341,7 @@ WOLFTPM_API int TPM2_GetCurveSize(TPM_ECC_CURVE curveID);
|
|||
|
||||
/*!
|
||||
\ingroup TPM2_Proprietary
|
||||
\brief Translate a wolfcrypt curve type to its coresponding TPM curve type
|
||||
\brief Translate a wolfcrypt curve type to its corresponding TPM curve type
|
||||
|
||||
\return integer value representing a wolfcrypt curve type
|
||||
\return ECC_CURVE_OID_E in case of invalid curve type
|
||||
|
@ -3366,7 +3366,7 @@ WOLFTPM_API int TPM2_GetTpmCurve(int curveID);
|
|||
|
||||
/*!
|
||||
\ingroup TPM2_Proprietary
|
||||
\brief Translate a TPM curve type to its coresponding wolfcrypt curve type
|
||||
\brief Translate a TPM curve type to its corresponding wolfcrypt curve type
|
||||
|
||||
\return integer value representing a TPM curve type
|
||||
\return -1 or ECC_CURVE_OID_E in case of invalid curve type
|
||||
|
@ -3570,7 +3570,7 @@ WOLFTPM_API UINT16 TPM2_GetVendorID(void);
|
|||
#ifdef DEBUG_WOLFTPM
|
||||
/*!
|
||||
\ingroup TPM2_Proprietary
|
||||
\brief Helper function to print a binary buffer in a formated way
|
||||
\brief Helper function to print a binary buffer in a formatted way
|
||||
\note Requires DEBUG_WOLFTPM to be defined
|
||||
|
||||
\param buffer pointer to a buffer of BYTE type
|
||||
|
|
|
@ -642,7 +642,7 @@ WOLFTPM_API int wolfTPM2_CreateLoadedKey(WOLFTPM2_DEV* dev, WOLFTPM2_KEYBLOB* ke
|
|||
/*!
|
||||
\ingroup wolfTPM2_Wrappers
|
||||
\brief Wrapper to load the public part of an external key
|
||||
\note The key must be formated to the format expected by the TPM, see the 'pub' argument and the alternative wrappers.
|
||||
\note The key must be formatted to the format expected by the TPM, see the 'pub' argument and the alternative wrappers.
|
||||
|
||||
\return TPM_RC_SUCCESS: successful
|
||||
\return TPM_RC_FAILURE: generic failure (check TPM IO and TPM return code)
|
||||
|
@ -1097,7 +1097,7 @@ WOLFTPM_API int wolfTPM2_RsaKey_WolfToTpm_ex(WOLFTPM2_DEV* dev,
|
|||
|
||||
\param dev pointer to a TPM2_DEV struct
|
||||
\param tpmKey pointer to an empty struct of WOLFTPM2_KEY type, to hold the imported TPM key
|
||||
\param pem pointer to an array of byte type, containing a PEM formated public key material
|
||||
\param pem pointer to an array of byte type, containing a PEM formatted public key material
|
||||
\param pemSz pointer to integer variable, specifying the size of PEM key data
|
||||
|
||||
\sa wolfTPM2_RsaKey_WolfToTpm
|
||||
|
|
Loading…
Reference in New Issue