/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ |
H A D | tcs_caps.c | 65 get_cap_uint32(TCPA_CAPABILITY_AREA capArea, BYTE *subCap, UINT32 subCapSize, UINT32 *v) in get_cap_uint32() argument 72 result = TCSP_GetCapability_Internal(InternalContext, capArea, subCapSize, subCap, in get_cap_uint32() 104 UINT32 subCap; in get_max_auths() local 109 UINT32ToArray(TPM_CAP_PROP_MAX_AUTHSESS, (BYTE *)(&subCap)); in get_max_auths() 110 result = get_cap_uint32(TPM_CAP_PROPERTY, (BYTE *)&subCap, sizeof(subCap), auths); in get_max_auths() 151 UINT32 subCap, rv = 0; in get_tpm_metrics() local 156 UINT32ToArray(TPM_ORD_SaveKeyContext, (BYTE *)&subCap); in get_tpm_metrics() 157 if ((result = get_cap_uint32(TCPA_CAP_ORD, (BYTE *)&subCap, sizeof(UINT32), &rv))) in get_tpm_metrics() 162 UINT32ToArray(TPM_ORD_SaveAuthContext, (BYTE *)&subCap); in get_tpm_metrics() 163 if ((result = get_cap_uint32(TCPA_CAP_ORD, (BYTE *)&subCap, sizeof(UINT32), &rv))) in get_tpm_metrics() [all …]
|
H A D | tcsi_caps.c | 33 UINT32 subCap, in internal_TCSGetCap() argument 48 switch (subCap) { in internal_TCSGetCap() 121 if (subCap == TSS_TCSCAP_PROP_KEYCACHE) in internal_TCSGetCap() 123 else if (subCap == TSS_TCSCAP_PROP_AUTHCACHE) in internal_TCSGetCap() 138 if (subCap == TSS_TCSCAP_PROP_MANUFACTURER_ID) { in internal_TCSGetCap() 145 } else if (subCap == TSS_TCSCAP_PROP_MANUFACTURER_STR) { in internal_TCSGetCap() 163 if (subCap == TSS_TCSCAP_TRANS_EXCLUSIVE || subCap == 0) { in internal_TCSGetCap() 170 if (subCap == TSS_TCSCAP_TRANS_EXCLUSIVE) in internal_TCSGetCap() 182 switch (subCap) { in internal_TCSGetCap() 249 BYTE * subCap, /* in */ in TCS_GetCapability_Internal() argument [all …]
|
H A D | tcsi_caps_tpm.c | 34 BYTE * subCap, /* in */ in TCSP_GetCapability_Internal() argument 46 subCap, NULL))) in TCSP_GetCapability_Internal() 103 BYTE * subCap, /* in */ in TCSP_SetCapability_Internal() argument 121 subCap, valueSize, value, pOwnerAuth))) in TCSP_SetCapability_Internal()
|
H A D | tcs_key.c | 223 BYTE subCap[100]; in canILoadThisKey() local 229 LoadBlob_KEY_PARMS(&offset, subCap, parms); in canILoadThisKey() 233 subCapLength, subCap, &respDataLength, in canILoadThisKey()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/ |
H A D | rpc_caps_tpm.c | 36 BYTE *subCap; in tcs_wrap_GetCapability() local 55 subCap = NULL; in tcs_wrap_GetCapability() 57 subCap = calloc(1, subCapSize); in tcs_wrap_GetCapability() 58 if (subCap == NULL) { in tcs_wrap_GetCapability() 62 if (getData(TCSD_PACKET_TYPE_PBYTE, 3, subCap, subCapSize, &data->comm)) { in tcs_wrap_GetCapability() 63 free(subCap); in tcs_wrap_GetCapability() 70 result = TCSP_GetCapability_Internal(hContext, capArea, subCapSize, subCap, &respSize, in tcs_wrap_GetCapability() 74 free(subCap); in tcs_wrap_GetCapability() 148 BYTE *subCap; in tcs_wrap_SetCapability() local 168 subCap = NULL; in tcs_wrap_SetCapability() [all …]
|
H A D | rpc_caps.c | 36 BYTE *subCap; in tcs_wrap_TCSGetCapability() local 54 subCap = calloc(1, subCapSize); in tcs_wrap_TCSGetCapability() 55 if (subCap == NULL) { in tcs_wrap_TCSGetCapability() 59 if (getData(TCSD_PACKET_TYPE_PBYTE, 3, subCap, subCapSize, &data->comm)) { in tcs_wrap_TCSGetCapability() 60 free(subCap); in tcs_wrap_TCSGetCapability() 64 result = TCS_GetCapability_Internal(hContext, capArea, subCapSize, subCap, in tcs_wrap_TCSGetCapability() 66 free(subCap); in tcs_wrap_TCSGetCapability()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/ |
H A D | tsp_caps_tpm.c | 34 UINT32 subCap, in TSP_SetCapability() argument 42 subCap = endian32(subCap); in TSP_SetCapability() 48 result |= Trspi_HashUpdate(&hashCtx, (UINT32)sizeof(UINT32), (BYTE *)&subCap); in TSP_SetCapability() 59 (BYTE *)&subCap, sizeof(TSS_BOOL), in TSP_SetCapability() 77 BYTE* subCap, /* in */ in Transport_GetTPMCapability() argument 102 Trspi_LoadBlob(&offset, subCapLen, data, subCap); in Transport_GetTPMCapability() 132 BYTE * subCap, /* in */ in Transport_SetCapability() argument 157 Trspi_LoadBlob(&offset, subCapSize, data, subCap); in Transport_SetCapability()
|
H A D | tsp_caps.c | 31 internal_GetCap(TSS_HCONTEXT tspContext, TSS_FLAG capArea, UINT32 subCap, in internal_GetCap() argument 50 switch (subCap) { in internal_GetCap() 84 LogError("Unknown TSP subCap: %u", subCap); in internal_GetCap() 108 if (subCap != TSS_TSPCAP_PROP_RETURNVALUE_INFO) in internal_GetCap() 120 switch (subCap) { in internal_GetCap() 144 switch (subCap) { in internal_GetCap()
|
H A D | tsp_pcr.c | 35 UINT32 subCap; in get_num_pcrs() local 42 subCap = endian32(TPM_CAP_PROP_PCR); in get_num_pcrs() 44 sizeof(UINT32), (BYTE *)&subCap, in get_num_pcrs()
|
H A D | obj_tpm.c | 491 UINT32 respLen, subCap = endian32(TPM_CAP_PROP_ACTIVE_COUNTER); in obj_tpm_get_current_counter() local 507 sizeof(UINT32), (BYTE *)&subCap, in obj_tpm_get_current_counter()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/ |
H A D | rpc_caps_tpm.c | 32 BYTE * subCap, /* in */ in RPC_GetTPMCapability_TP() argument 48 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, subCap, subCapSize, &hte->comm)) in RPC_GetTPMCapability_TP() 84 BYTE * subCap, /* in */ in RPC_GetCapabilitySigned_TP() argument 136 BYTE * subCap, /* in */ in RPC_SetCapability_TP() argument 153 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, subCap, subCapSize, &hte->comm)) in RPC_SetCapability_TP()
|
H A D | rpc_caps.c | 32 BYTE * subCap, /* in */ in RPC_GetCapability_TP() argument 48 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, subCap, subCapSize, &hte->comm)) in RPC_GetCapability_TP()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/tss/ |
H A D | tcs.h | 33 BYTE* subCap, // in 555 BYTE* subCap, // in 566 BYTE* subCap, // in 1072 BYTE* subCap, // in
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/ |
H A D | tcs_api.c | 1402 BYTE * subCap, /* in */ in RPC_GetTPMCapability() argument 1414 result = RPC_GetTPMCapability_TP(entry, capArea, subCapSize, subCap, in RPC_GetTPMCapability() 1429 BYTE * subCap, /* in */ in RPC_SetCapability() argument 1442 result = RPC_SetCapability_TP(entry, capArea, subCapSize, subCap, in RPC_SetCapability() 1457 BYTE * subCap, /* in */ in RPC_GetCapability() argument 1469 result = RPC_GetCapability_TP(entry, capArea, subCapSize, subCap, respSize, in RPC_GetCapability() 1486 BYTE * subCap, /* in */ in RPC_GetCapabilitySigned() argument 1503 subCapSize, subCap, privAuth, Version, in RPC_GetCapabilitySigned()
|
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/ |
H A D | tcs_utils.h | 688 BYTE * subCap, /* in */ 696 BYTE * subCap, /* in */ 703 BYTE * subCap, /* in */
|