/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/ |
H A D | rpc_nv.c | 39 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_NV_DefineOrReleaseSpace_TP() 58 LogDebugFn("getData outputSize"); in RPC_NV_DefineOrReleaseSpace_TP() 69 LogDebugFn("result=%u", result); in RPC_NV_DefineOrReleaseSpace_TP() 85 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_NV_WriteValue_TP() 106 LogDebugFn("getData outputSize"); in RPC_NV_WriteValue_TP() 117 LogDebugFn("result=%u", result); in RPC_NV_WriteValue_TP() 133 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_NV_WriteValueAuth_TP() 154 LogDebugFn("getData outputSize"); in RPC_NV_WriteValueAuth_TP() 165 LogDebugFn("result=%u", result); in RPC_NV_WriteValueAuth_TP() 182 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_NV_ReadValue_TP() [all …]
|
H A D | rpc_daa.c | 43 LogDebugFn("stage=%d", stage); in RPC_DaaJoin_TP() 46 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_DaaJoin_TP() 55 LogDebugFn("inputSize0=<network>=%d <host>=%d", inputSize0, inputSize0); in RPC_DaaJoin_TP() 60 LogDebugFn("inputSize1=<network>=%d <host>=%d", inputSize1, inputSize1); in RPC_DaaJoin_TP() 74 LogDebugFn("getData outputSize"); in RPC_DaaJoin_TP() 92 LogDebugFn("getData outputData (outputSize=%u)", *outputSize); in RPC_DaaJoin_TP() 102 LogDebugFn("result=%u", result); in RPC_DaaJoin_TP() 121 LogDebugFn("stage=%d", stage); in RPC_DaaSign_TP() 124 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_DaaSign_TP() 133 LogDebugFn("inputSize0=<network>=%d <host>=%d", inputSize0, inputSize0); in RPC_DaaSign_TP() [all …]
|
H A D | rpc_admin.c | 36 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_SetOwnerInstall_TP() 59 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_DisableOwnerClear_TP() 87 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_ForceClear_TP() 107 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_DisableForceClear_TP() 127 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_PhysicalDisable_TP() 147 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_PhysicalEnable_TP() 169 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_OwnerSetDisable_TP() 199 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_PhysicalSetDeactivated_TP() 222 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_PhysicalPresence_TP() 244 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_SetTempDeactivated_TP() [all …]
|
H A D | rpc_key.c | 42 LogDebugFn("IN: TCS Context: 0x%x", hte->tcsContext); in RPC_LoadKeyByBlob_TP() 74 LogDebugFn("OUT: TCS key handle: 0x%x, TPM key slot: 0x%x", *phKeyTCSI, in RPC_LoadKeyByBlob_TP() 89 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_EvictKey_TP() 119 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_CreateWrapKey_TP() 184 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_GetPubKey_TP() 237 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_TerminateHandle_TP() 263 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_OwnerReadInternalPub_TP() 317 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_KeyControlOwner_TP()
|
H A D | rpc_ps.c | 40 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_GetRegisteredKeyByPublicInfo_TP() 91 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_RegisterKey_TP() 124 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_UnregisterKey_TP() 150 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_EnumRegisteredKeys_TP() 209 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_EnumRegisteredKeys2_TP() 274 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_GetRegisteredKeyBlob_TP() 318 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_LoadKeyByUUID_TP() 339 LogDebugFn("TCS key handle: 0x%x", *phKeyTCSI); in RPC_LoadKeyByUUID_TP()
|
H A D | rpc_counter.c | 37 LogDebugFn("IN: TCS Context: 0x%x", hte->tcsContext); in RPC_ReadCounter_TP() 70 LogDebugFn("IN: TCS Context: 0x%x", hte->tcsContext); in RPC_CreateCounter_TP() 116 LogDebugFn("IN: TCS Context: 0x%x", hte->tcsContext); in RPC_IncrementCounter_TP() 153 LogDebugFn("IN: TCS Context: 0x%x", hte->tcsContext); in RPC_ReleaseCounter_TP() 184 LogDebugFn("IN: TCS Context: 0x%x", hte->tcsContext); in RPC_ReleaseCounterOwner_TP()
|
H A D | rpc_ek.c | 42 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_CreateEndorsementKeyPair_TP() 96 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_ReadPubek_TP() 143 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_DisablePubekRead_TP() 175 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_OwnerReadPubek_TP() 232 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_CreateRevocableEndorsementKeyPair_TP() 290 LogDebugFn("TCS Context: 0x%x", hte->tcsContext); in RPC_RevokeEndorsementKeyPair_TP()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ |
H A D | tcs_key_mem_cache.c | 90 LogDebugFn("TCSD mem_cached handle: 0x%x", in mc_get_pub_by_slot() 97 LogDebugFn("returning NULL TCPA_STORE_PUBKEY"); in mc_get_pub_by_slot() 108 LogDebugFn("looking for 0x%x", tcs_handle); in mc_get_pub_by_handle() 111 LogDebugFn("TCSD mem_cached handle: 0x%x", in mc_get_pub_by_handle() 119 LogDebugFn("returning NULL TCPA_STORE_PUBKEY"); in mc_get_pub_by_handle() 159 LogDebugFn("0x%x", keyHandle); in ensureKeyIsLoaded() 176 LogDebugFn("calling LoadKeyShim"); in ensureKeyIsLoaded() 192 LogDebugFn("Exit"); in ensureKeyIsLoaded() 205 LogDebugFn("TCSD mem_cached handle: 0x%x", tmp->tcs_handle); in mc_get_uuid_by_pub() 242 LogDebugFn("TCSD mem_cached handle: 0x%x", tmp->tcs_handle); in mc_get_handle_by_encdata() [all …]
|
H A D | tcsi_key.c | 76 LogDebugFn("Enter"); in LoadKeyByBlob_Internal() 88 LogDebugFn("Checking if LoadKeyByBlob can be avoided by using existing key"); in LoadKeyByBlob_Internal() 91 LogDebugFn("tcs key handle exists"); in LoadKeyByBlob_Internal() 95 LogDebugFn("Don't need to reload this key."); in LoadKeyByBlob_Internal() 104 LogDebugFn("calling canILoadThisKey"); in LoadKeyByBlob_Internal() 109 LogDebugFn("calling evictFirstKey"); in LoadKeyByBlob_Internal() 120 LogDebugFn("Submitting request to the TPM"); in LoadKeyByBlob_Internal() 125 LogDebugFn("UnloadBlob_Header failed: rc=0x%x", result); in LoadKeyByBlob_Internal() 141 LogDebugFn("Key handles for loadKeyByBlob slot:%.8X tcshandle:%.8X", newSlot, newHandle); in LoadKeyByBlob_Internal() 334 LogDebugFn("Enter"); in TCSP_KeyControlOwner_Internal() [all …]
|
H A D | tcsi_caps.c | 83 LogDebugFn("Bad subcap"); in internal_TCSGetCap() 126 LogDebugFn("Bad subcap"); in internal_TCSGetCap() 156 LogDebugFn("Bad subcap"); in internal_TCSGetCap() 175 LogDebugFn("Bad subcap"); in internal_TCSGetCap() 185 LogDebugFn("TSS_TCSCAP_PROP_HOST_PLATFORM"); in internal_TCSGetCap() 203 LogDebugFn("TSS_TCSCAP_PROP_ALL_PLATFORMS"); in internal_TCSGetCap() 233 LogDebugFn("Bad subcap"); in internal_TCSGetCap() 238 LogDebugFn("Bad cap area"); in internal_TCSGetCap()
|
H A D | tcs_key.c | 55 LogDebugFn("No existing key handle for this key, creating new one..."); in add_cache_entry() 58 LogDebugFn("calling mc_add_entry, TCS handle: 0x%x, TPM handle 0x%x", tcsHandle, hSlot); in add_cache_entry() 63 LogDebugFn("ctx_mark_key_loaded"); in add_cache_entry() 109 LogDebugFn("calling mc_get_slot_by_handle"); in get_slot() 111 LogDebugFn("calling mc_get_pub_by_slot"); in get_slot() 115 LogDebugFn("calling LoadKeyShim"); in get_slot() 168 LogDebugFn("Checking if LoadKeyByBlob can be avoided by using existing key"); in load_key_init() 171 LogDebugFn("tcs key handle exists"); in load_key_init() 175 LogDebugFn("Don't need to reload this key."); in load_key_init() 185 LogDebugFn("calling canILoadThisKey"); in load_key_init() [all …]
|
H A D | tcsi_counter.c | 47 LogDebugFn("TPM_ReadCounter failed: rc=0x%x", result); in TCSP_ReadCounter_Internal() 75 LogDebugFn("BAD_PARAMETER: LabelSize != 4"); in TCSP_CreateCounter_Internal() 93 LogDebugFn("TPM_CreateCounter failed: rc=0x%x", result); in TCSP_CreateCounter_Internal() 131 LogDebugFn("UnloadBlob_Header failed: rc=0x%x", result); in TCSP_IncrementCounter_Internal() 167 LogDebugFn("UnloadBlob_Header failed: rc=0x%x", result); in TCSP_ReleaseCounter_Internal() 202 LogDebugFn("UnloadBlob_Header failed: rc=0x%x", result); in TCSP_ReleaseCounterOwner_Internal()
|
H A D | tcsi_delegate.c | 37 LogDebugFn("Enter"); in TCSP_Delegate_Manage_Internal() 84 LogDebugFn("Enter"); in TCSP_Delegate_CreateKeyDelegation_Internal() 133 LogDebugFn("Enter"); in TCSP_Delegate_CreateOwnerDelegation_Internal() 176 LogDebugFn("Enter"); in TCSP_Delegate_LoadOwnerDelegation_Internal() 219 LogDebugFn("Enter"); in TCSP_Delegate_ReadTable_Internal() 255 LogDebugFn("Enter"); in TCSP_Delegate_UpdateVerificationCount_Internal() 296 LogDebugFn("Enter"); in TCSP_Delegate_VerifyDelegation_Internal() 332 LogDebugFn("Enter"); in TCSP_DSAP_Internal()
|
H A D | tcs_auth_mgr.c | 159 LogDebugFn("Table of sleeping threads is full (%hu), growing to %hu entries", in auth_mgr_swap_out() 166 LogDebugFn("malloc of %zd bytes failed", in auth_mgr_swap_out() 174 LogDebugFn("Success."); in auth_mgr_swap_out() 325 LogDebugFn("TPM_LoadAuthContext for TCS %x TPM %x", tcsContext, in auth_mgr_check() 336 LogDebugFn("TPM_LoadAuthContext succeeded. Old TPM: %x, New" in auth_mgr_check() 343 LogDebugFn("TPM_LoadAuthContext failed with TPM_E_R" in auth_mgr_check() 349 LogDebugFn("Retrying TPM_LoadAuthContext after swap" in auth_mgr_check() 367 LogDebugFn("Can't find auth for TCS handle %x, should be %x", tcsContext, *tpm_auth_handle); in auth_mgr_check() 390 LogDebugFn("Thread %ld growing the auth table to %u entries", THREAD_ID, in auth_mgr_add() 402 LogDebugFn("Success."); in auth_mgr_add() [all …]
|
H A D | tcsi_random.c | 48 LogDebugFn("%u bytes", *bytesRequested); in TCSP_GetRandom_Internal() 68 LogDebugFn("received %u bytes from the TPM", bytesReturned); in TCSP_GetRandom_Internal() 103 LogDebugFn("Only %u random bytes recieved from TPM.", totalReturned); in TCSP_GetRandom_Internal() 129 LogDebugFn("inData is too large! (%u bytes)", inDataSize); in TCSP_StirRandom_Internal()
|
H A D | tcsi_cmk.c | 32 LogDebugFn("Enter"); in TCSP_CMK_SetRestrictions_Internal() 72 LogDebugFn("Enter"); in TCSP_CMK_ApproveMA_Internal() 117 LogDebugFn("Enter"); in TCSP_CMK_CreateKey_Internal() 176 LogDebugFn("Enter"); in TCSP_CMK_CreateTicket_Internal() 233 LogDebugFn("Enter"); in TCSP_CMK_CreateBlob_Internal() 291 LogDebugFn("Enter"); in TCSP_CMK_ConvertMigration_Internal()
|
H A D | tcsi_nv.c | 41 LogDebugFn("Enter"); in TCSP_NV_DefineOrReleaseSpace_Internal() 82 LogDebugFn("Enter"); in TCSP_NV_WriteValue_Internal() 122 LogDebugFn("Enter"); in TCSP_NV_WriteValueAuth_Internal() 160 LogDebugFn("Enter"); in TCSP_NV_ReadValue_Internal() 202 LogDebugFn("Enter"); in TCSP_NV_ReadValueAuth_Internal()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/ |
H A D | tcslog.h | 38 #define LogDebugFn(fmt, ...) LogMessage(stdout, LOG_DEBUG, APPID, "%s:%d %s: " fmt, __FILE__, __LIN… macro 43 LogDebugFn("Tag: %hu", k.hdr.key12.tag); \ 45 LogDebugFn("Version: %hhu.%hhu.%hhu.%hhu", \ 48 LogDebugFn("keyUsage: 0x%hx", k.keyUsage); \ 49 LogDebugFn("keyFlags: 0x%x", k.keyFlags); \ 50 LogDebugFn("authDatausage: %hhu", k.authDataUsage); \ 51 LogDebugFn("pcrInfosize: %u", k.PCRInfoSize); \ 52 LogDebugFn("encDataSize: %u", k.encSize); \ 62 LogDebugFn("*** ERROR UNLOADING DEBUGGING KEY BLOB ***"); \ 83 #define LogDebugFn(fmt, ...) macro
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/ |
H A D | tsp_admin.c | 40 LogDebugFn("Executing in a transport session"); in Transport_GetCapabilityOwner() 67 LogDebugFn("Executing in a transport session"); in Transport_SetOwnerInstall() 86 LogDebugFn("Executing in a transport session"); in Transport_DisableOwnerClear() 103 LogDebugFn("Executing in a transport session"); in Transport_DisableForceClear() 122 LogDebugFn("Executing in a transport session"); in Transport_OwnerSetDisable() 140 LogDebugFn("Executing in a transport session"); in Transport_PhysicalDisable() 157 LogDebugFn("Executing in a transport session"); in Transport_PhysicalEnable() 175 LogDebugFn("Executing in a transport session"); in Transport_PhysicalSetDeactivated() 193 LogDebugFn("Executing in a transport session"); in Transport_SetTempDeactivated() 211 LogDebugFn("Executing in a transport session"); in Transport_SetTempDeactivated2() [all …]
|
H A D | tsp_maint.c | 42 LogDebugFn("Executing in a transport session"); in Transport_CreateMaintenanceArchive() 95 LogDebugFn("Executing in a transport session"); in Transport_LoadMaintenanceArchive() 121 LogDebugFn("Executing in a transport session"); in Transport_KillMaintenanceFeature() 142 LogDebugFn("Executing in a transport session"); in Transport_LoadManuMaintPub() 182 LogDebugFn("Executing in a transport session"); in Transport_ReadManuMaintPub()
|
H A D | tsp_nv.c | 42 LogDebugFn("Executing in a transport session"); in Transport_NV_DefineOrReleaseSpace() 78 LogDebugFn("Executing in a transport session"); in Transport_NV_WriteValue() 116 LogDebugFn("Executing in a transport session"); in Transport_NV_WriteValueAuth() 155 LogDebugFn("Executing in a transport session"); in Transport_NV_ReadValue() 209 LogDebugFn("Executing in a transport session"); in Transport_NV_ReadValueAuth()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/ |
H A D | rpc_admin.c | 43 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_PhysicalSetDeactivated() 73 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_DisableOwnerClear() 105 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_ForceClear() 128 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_DisableForceClear() 151 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_PhysicalEnable() 178 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_SetOwnerInstall() 209 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_OwnerSetDisable() 244 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_PhysicalDisable() 271 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_PhysicalPresence() 297 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_SetTempDeactivated() [all …]
|
H A D | rpc_ek.c | 48 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_CreateEndorsementKeyPair() 112 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_ReadPubek() 159 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_OwnerReadPubek() 202 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_DisablePubekRead() 246 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_CreateRevocableEndorsementKeyPair() 322 LogDebugFn("thread %ld context %x", THREAD_ID, hContext); in tcs_wrap_RevokeEndorsementKeyPair()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/gtk/ |
H A D | callbacks.c | 50 LogDebugFn(); in on_cancelbutton1_clicked() 62 LogDebugFn(); in on_okbutton1_clicked() 76 LogDebugFn(); in enter_event() 101 LogDebugFn("string len ptr: %p, value = %u", &user_data->string_len, in on_entryPassword_activate() 124 LogDebugFn("string len ptr: %p, value = %u", &user_data->string_len, in on_entryConfirm_activate() 136 LogDebugFn(); in on_cancelbutton2_clicked() 156 LogDebugFn("string len ptr: %p, value = %u", &user_data->string_len, in on_okbutton2_clicked()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_issuer/ |
H A D | prime_gen.c | 226 LogDebugFn("Enter"); in compute_trivial_safe_prime() 285 LogDebugFn("1"); in compute_safe_prime() 290 LogDebugFn("2"); in compute_safe_prime() 306 LogDebugFn("3"); in compute_safe_prime() 312 LogDebugFn("4"); in compute_safe_prime()
|