/netbsd/crypto/external/cpl/trousers/dist/src/include/tss/ |
H A D | tspi.h | 277 TSS_HTPM hTPM, // in 286 TSS_HTPM hTPM, // in 293 TSS_HTPM hTPM, // in 302 TSS_HTPM hTPM, // in 309 TSS_HTPM hTPM, // in 317 TSS_HTPM hTPM, // in 324 TSS_HTPM hTPM, // in 331 TSS_HTPM hTPM, // in 337 TSS_HTPM hTPM, // in 350 TSS_HTPM hTPM, // in [all …]
|
/netbsd/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_platform/ |
H A D | test.c | 15 TSS_RESULT Tspi_DAA_Join(TSS_HTPM hTPM, int stage, UINT32 inputSize0, BYTE *inputData0, UINT32 inpu… in Tspi_DAA_Join() argument 26 if( (result = obj_tpm_is_connected( hTPM, &tcsContext)) != TSS_SUCCESS) return result; in Tspi_DAA_Join() 28 if( (result = obj_tpm_get_tsp_context( hTPM, &tspContext)) != TSS_SUCCESS) return result; in Tspi_DAA_Join() 30 if( (result = obj_tpm_get_policy( hTPM, &hPolicy)) != TSS_SUCCESS) return result; in Tspi_DAA_Join() 47 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_DAA_Join, in Tspi_DAA_Join() 59 (int)hTPM, 0, inputSize0,(int)inputData0,inputSize1,(int)inputData1,(int)&ownerAuth); in Tspi_DAA_Join() 60 …if ( (result = TCSP_DaaJoin( tcsContext, hTPM, 0, inputSize0, inputData0, inputSize1, inputData1,… in Tspi_DAA_Join() 81 TSS_HTPM hTPM; in main() local 98 if( (result = Tspi_Context_GetTpmObject( hContext, &hTPM)) != TSS_SUCCESS) in main() 103 if( (result = Tspi_GetPolicyObject( hTPM, TSS_POLICY_USAGE, &hPolicy)) != TSS_SUCCESS) in main() [all …]
|
H A D | platform.c | 58 TPM_HANDLE hTPM; in Tcsip_TPM_DAA_Join() local 70 hTPM, in Tcsip_TPM_DAA_Join() 101 hTPM, in Tcsip_TPM_DAA_Join() 151 TPM_HANDLE hTPM; in Tcsip_TPM_DAA_Sign() local 164 hTPM, in Tcsip_TPM_DAA_Sign() 195 hTPM, in Tcsip_TPM_DAA_Sign() 273 TSS_HTPM hTPM, 437 hTPM, // in 691 hTPM, // in in Tspi_TPM_DAA_JoinInit_internal() 894 TSS_HTPM hTPM, // in in Tspi_TPM_DAA_JoinCreateDaaPubKey_internal() argument [all …]
|
H A D | test_join.c | 297 TSS_HTPM hTPM; in main() local 368 if( (result = Tspi_Context_GetTpmObject( hContext, &hTPM)) != TSS_SUCCESS) in main() 371 if( (result = Tspi_GetPolicyObject( hTPM, in main() 424 hTPM, // in in main() 456 hTPM, // in in main() 479 hTPM, // in in main()
|
/netbsd/crypto/external/cpl/trousers/dist/src/tspi/ |
H A D | tspi_own.c | 26 Tspi_TPM_TakeOwnership(TSS_HTPM hTPM, /* in */ in Tspi_TPM_TakeOwnership() argument 48 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_TakeOwnership() 52 if ((result = Tspi_TPM_GetPubEndorsementKey(hTPM, FALSE, NULL, &hPubEK))) { in Tspi_TPM_TakeOwnership() 71 if ((result = secret_TakeOwnership(hPubEK, hTPM, hKeySRK, &privAuth, &encOwnerAuthLength, in Tspi_TPM_TakeOwnership() 90 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hOwnerPolicy))) { in Tspi_TPM_TakeOwnership() 117 Tspi_TPM_ClearOwner(TSS_HTPM hTPM, /* in */ in Tspi_TPM_ClearOwner() argument 127 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_ClearOwner() 131 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hPolicy))) in Tspi_TPM_ClearOwner() 141 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_OwnerClear, hPolicy, FALSE, in Tspi_TPM_ClearOwner()
|
H A D | tspi_admin.c | 26 Tspi_TPM_SetStatus(TSS_HTPM hTPM, /* in */ in Tspi_TPM_SetStatus() argument 39 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_SetStatus() 42 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hPolicy))) in Tspi_TPM_SetStatus() 52 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_DisableOwnerClear, hPolicy, in Tspi_TPM_SetStatus() 79 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_OwnerSetDisable, hPolicy, in Tspi_TPM_SetStatus() 126 if ((result = secret_PerformAuth_OIAP(hTPM, in Tspi_TPM_SetStatus() 187 return Tspi_TPM_KillMaintenanceFeature(hTPM); in Tspi_TPM_SetStatus() 196 result = TSP_SetCapability(tspContext, hTPM, hPolicy, TPM_SET_PERM_FLAGS, in Tspi_TPM_SetStatus() 270 Tspi_TPM_GetStatus(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetStatus() argument 282 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_GetStatus() [all …]
|
H A D | tspi_maint.c | 26 Tspi_TPM_CreateMaintenanceArchive(TSS_HTPM hTPM, /* in */ in Tspi_TPM_CreateMaintenanceArchive() argument 47 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_CreateMaintenanceArchive() 50 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hOwnerPolicy))) in Tspi_TPM_CreateMaintenanceArchive() 59 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_CreateMaintenanceArchive, hOwnerPolicy, in Tspi_TPM_CreateMaintenanceArchive() 100 Tspi_TPM_KillMaintenanceFeature(TSS_HTPM hTPM) /* in */ in Tspi_TPM_KillMaintenanceFeature() argument 109 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_KillMaintenanceFeature() 112 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hOwnerPolicy))) in Tspi_TPM_KillMaintenanceFeature() 140 Tspi_TPM_LoadMaintenancePubKey(TSS_HTPM hTPM, /* in */ in Tspi_TPM_LoadMaintenancePubKey() argument 152 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_LoadMaintenancePubKey() 207 Tspi_TPM_CheckMaintenancePubKey(TSS_HTPM hTPM, /* in */ in Tspi_TPM_CheckMaintenancePubKey() argument [all …]
|
H A D | tspi_pcr_events.c | 26 Tspi_TPM_GetEvent(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetEvent() argument 38 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_GetEvent() 51 Tspi_TPM_GetEvents(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetEvents() argument 64 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_GetEvents() 84 Tspi_TPM_GetEventLog(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetEventLog() argument 94 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_GetEventLog()
|
H A D | tspi_dir.c | 26 Tspi_TPM_DirWrite(TSS_HTPM hTPM, /* in */ in Tspi_TPM_DirWrite() argument 45 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_DirWrite() 48 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hPolicy))) in Tspi_TPM_DirWrite() 62 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_DirWriteAuth, hPolicy, FALSE, in Tspi_TPM_DirWrite() 79 Tspi_TPM_DirRead(TSS_HTPM hTPM, /* in */ in Tspi_TPM_DirRead() argument 91 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_DirRead()
|
H A D | tspi_daa.c | 83 TSS_HTPM hTPM, // in 101 (int)hDAA, (int)hTPM, daaCounter, (int)issuerPk); 104 hTPM, 123 Tspi_TPM_DAA_JoinInit(TSS_HTPM hTPM, /* in */ in Tspi_TPM_DAA_JoinInit() argument 584 TSS_HTPM hTPM, // in in Tspi_TPM_DAA_JoinCreateDaaPubKey() argument 603 hTPM, // in in Tspi_TPM_DAA_JoinCreateDaaPubKey() 627 TSS_HTPM hTPM, // in in Tspi_TPM_DAA_JoinStoreCredential() argument 640 hTPM, in Tspi_TPM_DAA_JoinStoreCredential() 665 TSS_HTPM hTPM, // in in Tspi_TPM_DAA_Sign() argument 680 LogDebug("-> TSPI_TPM_DAA_Sign hDAA=%ld hTPM=%ld ", (long)hDAA, (long)hTPM); in Tspi_TPM_DAA_Sign() [all …]
|
H A D | tspi_pcr_extend.c | 27 Tspi_TPM_PcrExtend(TSS_HTPM hTPM, /* in */ in Tspi_TPM_PcrExtend() argument 49 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_PcrExtend() 109 Tspi_TPM_PcrRead(TSS_HTPM hTPM, /* in */ in Tspi_TPM_PcrRead() argument 121 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_PcrRead() 139 Tspi_TPM_PcrReset(TSS_HTPM hTPM, /* in */ in Tspi_TPM_PcrReset() argument 150 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_PcrReset()
|
H A D | tspi_random.c | 26 Tspi_TPM_GetRandom(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetRandom() argument 36 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_GetRandom() 56 Tspi_TPM_StirRandom(TSS_HTPM hTPM, /* in */ in Tspi_TPM_StirRandom() argument 66 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_StirRandom()
|
H A D | tspi_selftest.c | 26 Tspi_TPM_SelfTestFull(TSS_HTPM hTPM) /* in */ in Tspi_TPM_SelfTestFull() argument 31 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_SelfTestFull() 38 Tspi_TPM_CertifySelfTest(TSS_HTPM hTPM, /* in */ in Tspi_TPM_CertifySelfTest() argument 60 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_CertifySelfTest() 181 Tspi_TPM_GetTestResult(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetTestResult() argument 191 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_GetTestResult()
|
H A D | tspi_aik.c | 29 Tspi_TPM_CollateIdentityRequest(TSS_HTPM hTPM, /* in */ in Tspi_TPM_CollateIdentityRequest() argument 80 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_CollateIdentityRequest() 83 if ((result = obj_tpm_get_cb12(hTPM, TSS_TSPATTRIB_TPM_CALLBACK_COLLATEIDENTITY, &tmp, in Tspi_TPM_CollateIdentityRequest() 184 if ((result = authsess_xsap_init(tspContext, hTPM, hIdentityKey, TSS_AUTH_POLICY_REQUIRED, in Tspi_TPM_CollateIdentityRequest() 272 if ((result = obj_tpm_get_cred(hTPM, TSS_TPMATTRIB_EKCERT, &tempCredSize, &tempCred))) in Tspi_TPM_CollateIdentityRequest() 281 if ((result = obj_tpm_get_cred(hTPM, TSS_TPMATTRIB_TPM_CC, &tempCredSize, &tempCred))) in Tspi_TPM_CollateIdentityRequest() 407 Tspi_TPM_ActivateIdentity(TSS_HTPM hTPM, /* in */ in Tspi_TPM_ActivateIdentity() argument 437 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_ActivateIdentity() 440 if ((result = obj_tpm_get_cb12(hTPM, TSS_TSPATTRIB_TPM_CALLBACK_ACTIVATEIDENTITY, &tmp, in Tspi_TPM_ActivateIdentity() 457 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hTPMPolicy))) in Tspi_TPM_ActivateIdentity() [all …]
|
H A D | tspi_counter.c | 25 Tspi_TPM_ReadCounter(TSS_HTPM hTPM, /* in */ in Tspi_TPM_ReadCounter() argument 36 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_ReadCounter() 39 if ((result = obj_tpm_get_current_counter(hTPM, &counterID))) in Tspi_TPM_ReadCounter()
|
H A D | tsp_own.c | 29 TSS_HTPM hTPM, in secret_TakeOwnership() argument 52 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in secret_TakeOwnership() 62 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hOwnerPolicy))) in secret_TakeOwnership() 132 if ((result = obj_policy_do_takeowner(hOwnerPolicy, hTPM, hEndorsementPubKey, in secret_TakeOwnership() 154 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_TakeOwnership, hOwnerPolicy, FALSE, in secret_TakeOwnership()
|
H A D | tspi_ek.c | 26 Tspi_TPM_CreateEndorsementKey(TSS_HTPM hTPM, /* in */ in Tspi_TPM_CreateEndorsementKey() argument 47 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_CreateEndorsementKey() 135 Tspi_TPM_GetPubEndorsementKey(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetPubEndorsementKey() argument 157 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_GetPubEndorsementKey() 161 return owner_get_pubek(tspContext, hTPM, phEndorsementPubKey); in Tspi_TPM_GetPubEndorsementKey() 262 Tspi_TPM_CreateRevocableEndorsementKey(TSS_HTPM hTPM, /* in */ in Tspi_TPM_CreateRevocableEndorsementKey() argument 307 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_CreateRevocableEndorsementKey() 416 Tspi_TPM_RevokeEndorsementKey(TSS_HTPM hTPM, /* in */ in Tspi_TPM_RevokeEndorsementKey() argument 424 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_RevokeEndorsementKey()
|
H A D | tsp_ek.c | 26 owner_get_pubek(TSS_HCONTEXT tspContext, TSS_HTPM hTPM, TSS_HKEY *hPubEk) in owner_get_pubek() argument 41 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hPolicy))) in owner_get_pubek() 52 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_OwnerReadInternalPub, in owner_get_pubek() 77 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_OwnerReadPubek, hPolicy, FALSE, in owner_get_pubek()
|
H A D | obj_daa.c | 110 obj_daa_get_handle_tpm(TSS_HDAA hDAA, TPM_HANDLE *hTPM) { in obj_daa_get_handle_tpm() argument 115 *hTPM = daa_struct->tpm_handle; in obj_daa_get_handle_tpm() 121 obj_daa_set_handle_tpm(TSS_HDAA hDAA, TPM_HANDLE hTPM) { in obj_daa_set_handle_tpm() argument 126 daa_struct->tpm_handle = hTPM; in obj_daa_set_handle_tpm()
|
H A D | tsp_get_flags.c | 31 get_tpm_flags(TSS_HCONTEXT tspContext, TSS_HTPM hTPM, UINT32 *volFlags, UINT32 *nonVolFlags) in get_tpm_flags() argument 40 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hPolicy))) in get_tpm_flags() 49 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_GetCapabilityOwner, hPolicy, FALSE, in get_tpm_flags()
|
H A D | tspi_caps_tpm.c | 26 Tspi_TPM_GetCapability(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetCapability() argument 46 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_GetCapability() 296 if ((result = get_tpm_flags(tspContext, hTPM, &volFlags, &nonVolFlags))) in Tspi_TPM_GetCapability() 341 Tspi_TPM_GetCapabilitySigned(TSS_HTPM hTPM, /* in */ in Tspi_TPM_GetCapabilitySigned() argument
|
H A D | tspi_key.c | 564 Tspi_TPM_OwnerGetSRKPubKey(TSS_HTPM hTPM, /* in */ in Tspi_TPM_OwnerGetSRKPubKey() argument 579 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_OwnerGetSRKPubKey() 584 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hPolicy))) in Tspi_TPM_OwnerGetSRKPubKey() 593 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_OwnerReadInternalPub, in Tspi_TPM_OwnerGetSRKPubKey() 631 Tspi_TPM_KeyControlOwner(TSS_HTPM hTPM, /* in */ in Tspi_TPM_KeyControlOwner() argument 651 if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext))) in Tspi_TPM_KeyControlOwner() 668 if ((result = obj_tpm_get_policy(hTPM, TSS_POLICY_USAGE, &hPolicy))) in Tspi_TPM_KeyControlOwner() 687 if ((result = secret_PerformAuth_OIAP(hTPM, TPM_ORD_KeyControlOwner, hPolicy, FALSE, in Tspi_TPM_KeyControlOwner()
|
/netbsd/crypto/external/cpl/trousers/dist/src/include/daa/ |
H A D | platform.h | 23 TSS_HTPM hTPM, // in 36 TSS_HTPM hTPM, 52 TSS_HTPM hTPM, // in 94 TSS_HTPM hTPM, // in 102 TSS_HTPM hTPM, // in
|
/netbsd/crypto/external/cpl/trousers/dist/src/tspi/daa/ |
H A D | test_sign.c | 49 TSS_HTPM hTPM; in main() local 120 if( (result = Tspi_Context_GetTpmObject( hContext, &hTPM)) != TSS_SUCCESS) in main() 123 if( (result = Tspi_GetPolicyObject( hTPM, TSS_POLICY_USAGE, &hPolicy)) != TSS_SUCCESS) in main() 183 hTPM, // in in main()
|
/netbsd/crypto/external/cpl/trousers/dist/doc/ |
H A D | TSS_programming_SNAFUs.txt | 7 Tspi_TPM_GetEvents(hTPM, ulPcrIndex, 1, &five, &prgbPcrEvents); 14 Tspi_TPM_GetEvents(hTPM, ulPcrIndex, 0, &five, &prgbPcrEvents);
|