Testing of FAPI functionality. The tested FAPI functions are listed in each of the testcase functions' descriptions.
◆ test_fapi_data_crypt()
Test the FAPI functions for encryption and decryption.
Tested FAPI commands:
Tested Policies:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_duplicate()
Test the FAPI functions for key duplication.
Tested FAPI commands:
Tested Policies:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_ext_public_key()
Test the FAPI functions use an external public key for signature and quote verify without TPM.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_get_random()
Test the FAPI function FAPI_GetRandom and async invocations.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_info()
Test the FAPI functions for GetInfo.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_change_auth()
Test the FAPI function for changing key authorizations.
The setting of the authorization callback and usage of the key with Fapi_Sign afterwards is also tested.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_ckda_sign()
Test the FAPI functions for key creation and usage with noda and da flag.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_policies_sign()
test_fapi_key_create_policies_sign |
( |
FAPI_CONTEXT * |
context | ) |
|
Test several FAPI policies by usage of signing key.
Which test case will be executed is determined by the compiler switches: TEST_POLICY_PASSWORD, TEST_POLICY_AUTH_VALUE, TEST_POLICY_LOCALITY TEST_POLICY_PHYSICAL_PRESENCE, TEST_POLICY_COMMAND_CODE, TEST_POLICY_COUNTERTIMER.
Tested FAPI commands:
Tested Policies:
- PolicyPassword
- PolicyAuthValue
- PolicyLocality
- PolicyPhysicalPresence
- PolicyCommandCode
- PolicyCounterTimer
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_policy_authorize_nv()
test_fapi_key_create_policy_authorize_nv |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI key signing with PolicyAuthorizeNV.
Tested FAPI commands:
Tested Policies:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_policy_authorize_sign()
test_fapi_key_create_policy_authorize_sign |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI functions for PolicyAuthoirze with signing.
Tested FAPI commands:
Tested Policies:
- PolicyNameHash
- PolicyAuthorize
- PolicyCpHash (Not entered, only as alternative branch)
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_policy_nv_sign()
test_fapi_key_create_policy_nv_sign |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI functions for NV writing and key usage.
Tested FAPI commands:
Tested Policies:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_policy_or_sign()
test_fapi_key_create_policy_or_sign |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI for PolicyOr using signing.
Tested FAPI commands:
Tested Policies:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_policy_pcr_sign()
test_fapi_key_create_policy_pcr_sign |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI functions for PolicyPCR with key creation and usage.
Tested FAPI commands:
Tested Policies:
- PolicyPcr (with currentPCRs set)
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_policy_secret_nv_sign()
test_fapi_key_create_policy_secret_nv_sign |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI PolicySecret and PolicyAuthValue handling.
Tested FAPI commands:
Tested Policies:
- PolicySecret
- PolicyAuthValue
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_policy_signed()
test_fapi_key_create_policy_signed |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI functions for key creation and usage with a PolicySigned.
Tested FAPI commands:
Tested Policies:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_sign()
Test the FAPI functions for TpmBlobs and certificates.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_sign_password_provision()
test_fapi_key_create_sign_password_provision |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI functions for key creation and usage with an SH password.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_key_create_sign_policy_provision()
test_fapi_key_create_sign_policy_provision |
( |
FAPI_CONTEXT * |
context | ) |
|
Test the FAPI functions for key creation and usage.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_nv_extend()
Test the FAPI function FAPI_NvExtend.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_nv_increment()
Test the FAPI function FAPI_NvIncrement.
Tested FAPI commands:
Tested Policies:
- PolicyAuthValue
- PolicyCommandCode
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_nv_ordinary()
Test the FAPI NV functions.
Tested FAPI commands:
Tested Policies:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_nv_set_bits()
Test the FAPI function Fapi_NvSetBits.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_nv_written_policy()
Test the FAPI policy PolicyNvWritten.
Tested FAPI commands:
Tested Policies:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_pcr_test()
Test the FAPI function FAPI_PcrExtend and Read.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_platform_certificates()
Test the FAPI functions for platform certificates.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_quote()
Test the FAPI functions for quote commands.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |
◆ test_fapi_unseal()
Test the FAPI functions for sealing.
Tested FAPI commands:
- Parameters
-
- Return values
-
EXIT_FAILURE | |
EXIT_SUCCESS | |