| /netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/ |
| H A D | rpc.c | 38 initData(struct tcsd_comm_data *comm, int parm_count) in initData() argument 41 __tspi_memset(&comm->hdr, 0, sizeof(struct tcsd_packet_hdr)); in initData() 42 comm->hdr.packet_size = sizeof(struct tcsd_packet_hdr); in initData() 43 comm->hdr.type_offset = sizeof(struct tcsd_packet_hdr); in initData() 44 comm->hdr.parm_offset = comm->hdr.type_offset + (sizeof(TCSD_PACKET_TYPE) * parm_count); in initData() 45 comm->hdr.packet_size = comm->hdr.parm_offset; in initData() 47 __tspi_memset(comm->buf, 0, comm->buf_size); in initData() 114 struct tcsd_comm_data *comm) in setData() argument 124 if ((comm->hdr.packet_size + offset) > TSS_TPM_TXBLOB_SIZE) { in setData() 128 if ((comm->hdr.packet_size + offset) > comm->buf_size) { in setData() [all …]
|
| H A D | rpc_cmk.c | 33 initData(&hte->comm, 3); in RPC_CMK_SetRestrictions_TP() 34 hte->comm.hdr.u.ordinal = TCSD_ORD_CMK_SETRESTRICTIONS; in RPC_CMK_SetRestrictions_TP() 37 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_CMK_SetRestrictions_TP() 39 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &restriction, 0, &hte->comm)) in RPC_CMK_SetRestrictions_TP() 41 if (setData(TCSD_PACKET_TYPE_AUTH, 2, ownerAuth, 0, &hte->comm)) in RPC_CMK_SetRestrictions_TP() 47 result = hte->comm.hdr.u.result; in RPC_CMK_SetRestrictions_TP() 50 if (getData(TCSD_PACKET_TYPE_AUTH, 0, ownerAuth, 0, &hte->comm)) in RPC_CMK_SetRestrictions_TP() 65 initData(&hte->comm, 3); in RPC_CMK_ApproveMA_TP() 66 hte->comm.hdr.u.ordinal = TCSD_ORD_CMK_APPROVEMA; in RPC_CMK_ApproveMA_TP() 69 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_CMK_ApproveMA_TP() [all …]
|
| H A D | rpc_delegate.c | 39 initData(&hte->comm, 6); in RPC_Delegate_Manage_TP() 40 hte->comm.hdr.u.ordinal = TCSD_ORD_DELEGATE_MANAGE; in RPC_Delegate_Manage_TP() 43 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_Delegate_Manage_TP() 45 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &familyID, 0, &hte->comm)) in RPC_Delegate_Manage_TP() 47 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &opFlag, 0, &hte->comm)) in RPC_Delegate_Manage_TP() 49 if (setData(TCSD_PACKET_TYPE_UINT32, 3, &opDataSize, 0, &hte->comm)) in RPC_Delegate_Manage_TP() 51 if (setData(TCSD_PACKET_TYPE_PBYTE, 4, opData, opDataSize, &hte->comm)) in RPC_Delegate_Manage_TP() 54 if (setData(TCSD_PACKET_TYPE_AUTH, 5, ownerAuth, 0, &hte->comm)) in RPC_Delegate_Manage_TP() 60 if (setData(TCSD_PACKET_TYPE_AUTH, 5, &nullAuth, 0, &hte->comm)) in RPC_Delegate_Manage_TP() 67 result = hte->comm.hdr.u.result; in RPC_Delegate_Manage_TP() [all …]
|
| H A D | rpc_admin.c | 34 initData(&hte->comm, 2); in RPC_SetOwnerInstall_TP() 35 hte->comm.hdr.u.ordinal = TCSD_ORD_SETOWNERINSTALL; in RPC_SetOwnerInstall_TP() 38 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_SetOwnerInstall_TP() 40 if (setData(TCSD_PACKET_TYPE_BOOL, 1, &state, 0, &hte->comm)) in RPC_SetOwnerInstall_TP() 46 result = hte->comm.hdr.u.result; in RPC_SetOwnerInstall_TP() 57 initData(&hte->comm, 2); in RPC_DisableOwnerClear_TP() 58 hte->comm.hdr.u.ordinal = TCSD_ORD_DISABLEOWNERCLEAR; in RPC_DisableOwnerClear_TP() 61 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_DisableOwnerClear_TP() 64 if (setData(TCSD_PACKET_TYPE_AUTH, 1, ownerAuth, 0, &hte->comm)) in RPC_DisableOwnerClear_TP() 70 result = hte->comm.hdr.u.result; in RPC_DisableOwnerClear_TP() [all …]
|
| H A D | rpc_key.c | 40 initData(&hte->comm, 5); in RPC_LoadKeyByBlob_TP() 41 hte->comm.hdr.u.ordinal = TCSD_ORD_LOADKEYBYBLOB; in RPC_LoadKeyByBlob_TP() 44 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_LoadKeyByBlob_TP() 46 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &hUnwrappingKey, 0, &hte->comm)) in RPC_LoadKeyByBlob_TP() 48 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &cWrappedKeyBlobSize, 0, &hte->comm)) in RPC_LoadKeyByBlob_TP() 50 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, rgbWrappedKeyBlob, cWrappedKeyBlobSize, &hte->comm)) in RPC_LoadKeyByBlob_TP() 54 if (setData(TCSD_PACKET_TYPE_AUTH, 4, pAuth, 0, &hte->comm)) in RPC_LoadKeyByBlob_TP() 61 result = hte->comm.hdr.u.result; in RPC_LoadKeyByBlob_TP() 66 if (getData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &hte->comm)) in RPC_LoadKeyByBlob_TP() 69 if (getData(TCSD_PACKET_TYPE_UINT32, i++, phKeyTCSI, 0, &hte->comm)) in RPC_LoadKeyByBlob_TP() [all …]
|
| H A D | rpc_transport.c | 46 initData(&hte->comm, 8); in RPC_EstablishTransport_TP() 47 hte->comm.hdr.u.ordinal = TCSD_ORD_ESTABLISHTRANSPORT; in RPC_EstablishTransport_TP() 50 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_EstablishTransport_TP() 52 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &ulTransControlFlags, 0, &hte->comm)) in RPC_EstablishTransport_TP() 54 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &hEncKey, 0, &hte->comm)) in RPC_EstablishTransport_TP() 56 if (setData(TCSD_PACKET_TYPE_UINT32, 3, &ulTransSessionInfoSize, 0, &hte->comm)) in RPC_EstablishTransport_TP() 59 &hte->comm)) in RPC_EstablishTransport_TP() 61 if (setData(TCSD_PACKET_TYPE_UINT32, 5, &ulSecretSize, 0, &hte->comm)) in RPC_EstablishTransport_TP() 63 if (setData(TCSD_PACKET_TYPE_PBYTE, 6, rgbSecret, ulSecretSize, &hte->comm)) in RPC_EstablishTransport_TP() 66 if (setData(TCSD_PACKET_TYPE_AUTH, 7, pEncKeyAuth, 0, &hte->comm)) in RPC_EstablishTransport_TP() [all …]
|
| H A D | rpc_nv.c | 37 initData(&hte->comm, 5); in RPC_NV_DefineOrReleaseSpace_TP() 38 hte->comm.hdr.u.ordinal = TCSD_ORD_NVDEFINEORRELEASESPACE; in RPC_NV_DefineOrReleaseSpace_TP() 40 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_NV_DefineOrReleaseSpace_TP() 42 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &cPubInfoSize, 0, &hte->comm)) in RPC_NV_DefineOrReleaseSpace_TP() 44 if (setData(TCSD_PACKET_TYPE_PBYTE, 2, pPubInfo, cPubInfoSize, &hte->comm)) in RPC_NV_DefineOrReleaseSpace_TP() 46 if (setData(TCSD_PACKET_TYPE_ENCAUTH, 3, &encAuth, 0, &hte->comm)) in RPC_NV_DefineOrReleaseSpace_TP() 49 if (setData(TCSD_PACKET_TYPE_AUTH, 4, pAuth, 0, &hte->comm)) in RPC_NV_DefineOrReleaseSpace_TP() 55 result = hte->comm.hdr.u.result; in RPC_NV_DefineOrReleaseSpace_TP() 61 if (getData(TCSD_PACKET_TYPE_AUTH, 0, pAuth, 0, &hte->comm)) { in RPC_NV_DefineOrReleaseSpace_TP() 83 initData(&hte->comm, 6); in RPC_NV_WriteValue_TP() [all …]
|
| H A D | rpc_ek.c | 40 initData(&hte->comm, 4); in RPC_CreateEndorsementKeyPair_TP() 41 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATEENDORSEMENTKEYPAIR; in RPC_CreateEndorsementKeyPair_TP() 44 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_CreateEndorsementKeyPair_TP() 46 if (setData(TCSD_PACKET_TYPE_NONCE, 1, &antiReplay, 0, &hte->comm)) in RPC_CreateEndorsementKeyPair_TP() 48 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &endorsementKeyInfoSize, 0, &hte->comm)) in RPC_CreateEndorsementKeyPair_TP() 50 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, endorsementKeyInfo, endorsementKeyInfoSize, &hte->comm)) in RPC_CreateEndorsementKeyPair_TP() 56 result = hte->comm.hdr.u.result; in RPC_CreateEndorsementKeyPair_TP() 59 if (getData(TCSD_PACKET_TYPE_UINT32, 0, endorsementKeySize, 0, &hte->comm)) { in RPC_CreateEndorsementKeyPair_TP() 70 if (getData(TCSD_PACKET_TYPE_PBYTE, 1, *endorsementKey, *endorsementKeySize, &hte->comm)) { in RPC_CreateEndorsementKeyPair_TP() 75 if (getData(TCSD_PACKET_TYPE_DIGEST, 2, &(checksum->digest), 0, &hte->comm)) { in RPC_CreateEndorsementKeyPair_TP() [all …]
|
| H A D | rpc_counter.c | 35 initData(&hte->comm, 2); in RPC_ReadCounter_TP() 36 hte->comm.hdr.u.ordinal = TCSD_ORD_READCOUNTER; in RPC_ReadCounter_TP() 39 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_ReadCounter_TP() 41 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &idCounter, 0, &hte->comm)) in RPC_ReadCounter_TP() 47 result = hte->comm.hdr.u.result; in RPC_ReadCounter_TP() 50 if (getData(TCSD_PACKET_TYPE_COUNTER_VALUE, 0, counterValue, 0, &hte->comm)) in RPC_ReadCounter_TP() 68 initData(&hte->comm, 5); in RPC_CreateCounter_TP() 69 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATECOUNTER; in RPC_CreateCounter_TP() 72 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_CreateCounter_TP() 74 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &LabelSize, 0, &hte->comm)) in RPC_CreateCounter_TP() [all …]
|
| H A D | rpc_maint.c | 39 initData(&hte->comm, 3); in RPC_CreateMaintenanceArchive_TP() 40 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATEMAINTENANCEARCHIVE; in RPC_CreateMaintenanceArchive_TP() 43 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_CreateMaintenanceArchive_TP() 45 if (setData(TCSD_PACKET_TYPE_BOOL, 1, &generateRandom, 0, &hte->comm)) in RPC_CreateMaintenanceArchive_TP() 47 if (setData(TCSD_PACKET_TYPE_AUTH, 2, ownerAuth, 0, &hte->comm)) in RPC_CreateMaintenanceArchive_TP() 53 result = hte->comm.hdr.u.result; in RPC_CreateMaintenanceArchive_TP() 56 if (getData(TCSD_PACKET_TYPE_AUTH, 0, ownerAuth, 0, &hte->comm)) in RPC_CreateMaintenanceArchive_TP() 58 if (getData(TCSD_PACKET_TYPE_UINT32, 1, randomSize, 0, &hte->comm)) in RPC_CreateMaintenanceArchive_TP() 69 if (getData(TCSD_PACKET_TYPE_PBYTE, 2, *random, *randomSize, &hte->comm)) { in RPC_CreateMaintenanceArchive_TP() 79 if (getData(TCSD_PACKET_TYPE_UINT32, 3, archiveSize, 0, &hte->comm)) in RPC_CreateMaintenanceArchive_TP() [all …]
|
| H A D | rpc_migration.c | 47 initData(&hte->comm, 9); in RPC_CreateMigrationBlob_TP() 50 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATEMIGRATIONBLOB; in RPC_CreateMigrationBlob_TP() 54 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &hte->tcsContext, 0, &hte->comm)) in RPC_CreateMigrationBlob_TP() 56 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &parentHandle, 0, &hte->comm)) in RPC_CreateMigrationBlob_TP() 58 if (setData(TCSD_PACKET_TYPE_UINT16, i++, &migrationType, 0, &hte->comm)) in RPC_CreateMigrationBlob_TP() 60 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &MigrationKeyAuthSize, 0, &hte->comm)) in RPC_CreateMigrationBlob_TP() 62 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, MigrationKeyAuth, MigrationKeyAuthSize, &hte->comm)) in RPC_CreateMigrationBlob_TP() 64 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &encDataSize, 0, &hte->comm)) in RPC_CreateMigrationBlob_TP() 66 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, encData, encDataSize, &hte->comm)) in RPC_CreateMigrationBlob_TP() 70 if (setData(TCSD_PACKET_TYPE_AUTH, i++, parentAuth, 0, &hte->comm)) in RPC_CreateMigrationBlob_TP() [all …]
|
| H A D | rpc_ps.c | 38 initData(&hte->comm, 4); in RPC_GetRegisteredKeyByPublicInfo_TP() 39 hte->comm.hdr.u.ordinal = TCSD_ORD_GETREGISTEREDKEYBYPUBLICINFO; in RPC_GetRegisteredKeyByPublicInfo_TP() 42 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm)) in RPC_GetRegisteredKeyByPublicInfo_TP() 44 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &algID, 0, &hte->comm)) in RPC_GetRegisteredKeyByPublicInfo_TP() 46 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &ulPublicInfoLength, 0, &hte->comm)) in RPC_GetRegisteredKeyByPublicInfo_TP() 48 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, rgbPublicInfo, ulPublicInfoLength, &hte->comm)) in RPC_GetRegisteredKeyByPublicInfo_TP() 54 result = hte->comm.hdr.u.result; in RPC_GetRegisteredKeyByPublicInfo_TP() 57 if (getData(TCSD_PACKET_TYPE_UINT32, 0, keySize, 0, &hte->comm)) { in RPC_GetRegisteredKeyByPublicInfo_TP() 67 if (getData(TCSD_PACKET_TYPE_PBYTE, 1, *keyBlob, *keySize, &hte->comm)) { in RPC_GetRegisteredKeyByPublicInfo_TP() 89 initData(&hte->comm, 7); in RPC_RegisterKey_TP() [all …]
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/ |
| H A D | rpc.c | 98 initData(struct tcsd_comm_data *comm, int parm_count) in initData() argument 101 memset(&comm->hdr, 0, sizeof(struct tcsd_packet_hdr)); in initData() 102 comm->hdr.packet_size = sizeof(struct tcsd_packet_hdr); in initData() 104 comm->hdr.type_offset = sizeof(struct tcsd_packet_hdr); in initData() 105 comm->hdr.parm_offset = comm->hdr.type_offset + in initData() 107 comm->hdr.packet_size = comm->hdr.parm_offset; in initData() 110 memset(comm->buf, 0, comm->buf_size); in initData() 188 struct tcsd_comm_data *comm) in setData() argument 199 if ((comm->hdr.packet_size + offset) > comm->buf_size) { in setData() 202 int buffer_size = comm->hdr.packet_size + offset; in setData() [all …]
|
| H A D | rpc_admin.c | 37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_PhysicalSetDeactivated() 45 if (getData(TCSD_PACKET_TYPE_BOOL, 1, &state, 0, &data->comm)) in tcs_wrap_PhysicalSetDeactivated() 54 initData(&data->comm, 0); in tcs_wrap_PhysicalSetDeactivated() 55 data->comm.hdr.u.result = result; in tcs_wrap_PhysicalSetDeactivated() 67 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_DisableOwnerClear() 75 if (getData(TCSD_PACKET_TYPE_AUTH, 1, &auth, 0, &data->comm)) in tcs_wrap_DisableOwnerClear() 85 initData(&data->comm, 1); in tcs_wrap_DisableOwnerClear() 86 if (setData(TCSD_PACKET_TYPE_AUTH, 0, &auth, 0, &data->comm)) { in tcs_wrap_DisableOwnerClear() 90 done: initData(&data->comm, 0); in tcs_wrap_DisableOwnerClear() 92 data->comm.hdr.u.result = result; in tcs_wrap_DisableOwnerClear() [all …]
|
| H A D | rpc_key.c | 37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_EvictKey() 45 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_EvictKey() 54 initData(&data->comm, 0); in tcs_wrap_EvictKey() 55 data->comm.hdr.u.result = result; in tcs_wrap_EvictKey() 72 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_GetPubkey() 80 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_GetPubkey() 83 result = getData(TCSD_PACKET_TYPE_AUTH, 2, &auth, 0, &data->comm); in tcs_wrap_GetPubkey() 99 initData(&data->comm, 3); in tcs_wrap_GetPubkey() 101 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) { in tcs_wrap_GetPubkey() 105 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &pubKeySize, 0, &data->comm)) { in tcs_wrap_GetPubkey() [all …]
|
| H A D | rpc_nv.c | 40 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_NV_DefineOrReleaseSpace() 46 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &cPubInfoSize, 0, &data->comm)) in tcs_wrap_NV_DefineOrReleaseSpace() 55 if (getData(TCSD_PACKET_TYPE_PBYTE, 2, pubInfo, cPubInfoSize, &data->comm)) { in tcs_wrap_NV_DefineOrReleaseSpace() 60 if (getData(TCSD_PACKET_TYPE_ENCAUTH, 3, &encAuth, 0, &data->comm)) { in tcs_wrap_NV_DefineOrReleaseSpace() 65 if (getData(TCSD_PACKET_TYPE_AUTH, 4, &Auth, 0, &data->comm)) in tcs_wrap_NV_DefineOrReleaseSpace() 80 initData(&data->comm, 1); in tcs_wrap_NV_DefineOrReleaseSpace() 82 if (setData(TCSD_PACKET_TYPE_AUTH, 0, pAuth, 0, &data->comm)) { in tcs_wrap_NV_DefineOrReleaseSpace() 87 done: initData(&data->comm, 0); in tcs_wrap_NV_DefineOrReleaseSpace() 89 data->comm.hdr.u.result = result; in tcs_wrap_NV_DefineOrReleaseSpace() 103 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_NV_WriteValue() [all …]
|
| H A D | rpc_cmk.c | 38 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_CMK_SetRestrictions() 46 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &restriction, 0, &data->comm)) in tcs_wrap_CMK_SetRestrictions() 49 if (getData(TCSD_PACKET_TYPE_AUTH, 2, &ownerAuth, 0, &data->comm)) in tcs_wrap_CMK_SetRestrictions() 59 initData(&data->comm, 1); in tcs_wrap_CMK_SetRestrictions() 60 if (setData(TCSD_PACKET_TYPE_AUTH, 0, &ownerAuth, 0, &data->comm)) in tcs_wrap_CMK_SetRestrictions() 63 done: initData(&data->comm, 0); in tcs_wrap_CMK_SetRestrictions() 65 data->comm.hdr.u.result = result; in tcs_wrap_CMK_SetRestrictions() 79 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_CMK_ApproveMA() 87 if (getData(TCSD_PACKET_TYPE_DIGEST, 1, &migAuthorityDigest, 0, &data->comm)) in tcs_wrap_CMK_ApproveMA() 90 if (getData(TCSD_PACKET_TYPE_AUTH, 2, &ownerAuth, 0, &data->comm)) in tcs_wrap_CMK_ApproveMA() [all …]
|
| H A D | rpc_delegate.c | 47 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_Delegate_Manage() 55 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &familyId, 0, &data->comm)) in tcs_wrap_Delegate_Manage() 58 if (getData(TCSD_PACKET_TYPE_UINT32, 2, &opFlag, 0, &data->comm)) in tcs_wrap_Delegate_Manage() 61 if (getData(TCSD_PACKET_TYPE_UINT32, 3, &opDataSize, 0, &data->comm)) in tcs_wrap_Delegate_Manage() 69 if (getData(TCSD_PACKET_TYPE_PBYTE, 4, opData, opDataSize, &data->comm)) { in tcs_wrap_Delegate_Manage() 74 if (getData(TCSD_PACKET_TYPE_AUTH, 5, &ownerAuth, 0, &data->comm)) { in tcs_wrap_Delegate_Manage() 94 initData(&data->comm, 3); in tcs_wrap_Delegate_Manage() 96 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) { in tcs_wrap_Delegate_Manage() 102 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &retDataSize, 0, &data->comm)) { in tcs_wrap_Delegate_Manage() 106 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, retData, retDataSize, &data->comm)) { in tcs_wrap_Delegate_Manage() [all …]
|
| H A D | rpc_ek.c | 42 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_CreateEndorsementKeyPair() 50 if (getData(TCSD_PACKET_TYPE_NONCE, 1, &antiReplay, 0, &data->comm)) in tcs_wrap_CreateEndorsementKeyPair() 53 if (getData(TCSD_PACKET_TYPE_UINT32, 2, &eKPtrSize, 0, &data->comm)) in tcs_wrap_CreateEndorsementKeyPair() 61 if (getData(TCSD_PACKET_TYPE_PBYTE, 3, eKPtr, eKPtrSize, &data->comm)) { in tcs_wrap_CreateEndorsementKeyPair() 76 initData(&data->comm, 3); in tcs_wrap_CreateEndorsementKeyPair() 77 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &eKSize, 0, &data->comm)) { in tcs_wrap_CreateEndorsementKeyPair() 81 if (setData(TCSD_PACKET_TYPE_PBYTE, 1, eK, eKSize, &data->comm)) { in tcs_wrap_CreateEndorsementKeyPair() 86 if (setData(TCSD_PACKET_TYPE_DIGEST, 2, &checksum, 0, &data->comm)) { in tcs_wrap_CreateEndorsementKeyPair() 90 done: initData(&data->comm, 0); in tcs_wrap_CreateEndorsementKeyPair() 92 data->comm.hdr.u.result = result; in tcs_wrap_CreateEndorsementKeyPair() [all …]
|
| H A D | rpc_transport.c | 42 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_EstablishTransport() 50 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &ulTransControlFlags, 0, &data->comm)) in tcs_wrap_EstablishTransport() 52 if (getData(TCSD_PACKET_TYPE_UINT32, 2, &hEncKey, 0, &data->comm)) in tcs_wrap_EstablishTransport() 54 if (getData(TCSD_PACKET_TYPE_UINT32, 3, &ulTransSessionInfoSize, 0, &data->comm)) in tcs_wrap_EstablishTransport() 63 &data->comm)) { in tcs_wrap_EstablishTransport() 68 if (getData(TCSD_PACKET_TYPE_UINT32, 5, &ulSecretSize, 0, &data->comm)) { in tcs_wrap_EstablishTransport() 79 if (getData(TCSD_PACKET_TYPE_PBYTE, 6, rgbSecret, ulSecretSize, &data->comm)) { in tcs_wrap_EstablishTransport() 84 if (getData(TCSD_PACKET_TYPE_AUTH, 7, &pEncKeyAuth, 0, &data->comm)) in tcs_wrap_EstablishTransport() 104 initData(&data->comm, 6); in tcs_wrap_EstablishTransport() 106 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) { in tcs_wrap_EstablishTransport() [all …]
|
| H A D | rpc_counter.c | 38 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_ReadCounter() 46 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &idCounter, 0, &data->comm)) in tcs_wrap_ReadCounter() 56 initData(&data->comm, 1); in tcs_wrap_ReadCounter() 57 if (setData(TCSD_PACKET_TYPE_COUNTER_VALUE, 0, &counterValue, 0, &data->comm)) in tcs_wrap_ReadCounter() 60 done: initData(&data->comm, 0); in tcs_wrap_ReadCounter() 62 data->comm.hdr.u.result = result; in tcs_wrap_ReadCounter() 78 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_CreateCounter() 86 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &LabelSize, 0, &data->comm)) in tcs_wrap_CreateCounter() 94 if (getData(TCSD_PACKET_TYPE_PBYTE, 2, &pLabel, LabelSize, &data->comm)) { in tcs_wrap_CreateCounter() 98 if (getData(TCSD_PACKET_TYPE_ENCAUTH, 3, &encauth, 0, &data->comm)) { in tcs_wrap_CreateCounter() [all …]
|
| H A D | rpc_maint.c | 37 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_KillMaintenanceFeature() 45 if (getData(TCSD_PACKET_TYPE_AUTH, 1, &ownerAuth, 0, &data->comm)) in tcs_wrap_KillMaintenanceFeature() 55 initData(&data->comm, 1); in tcs_wrap_KillMaintenanceFeature() 56 if (setData(TCSD_PACKET_TYPE_AUTH, 0, &ownerAuth, 0, &data->comm)) { in tcs_wrap_KillMaintenanceFeature() 60 done: initData(&data->comm, 0); in tcs_wrap_KillMaintenanceFeature() 62 data->comm.hdr.u.result = result; in tcs_wrap_KillMaintenanceFeature() 77 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_CreateMaintenanceArchive() 85 if (getData(TCSD_PACKET_TYPE_BOOL, 1, &generateRandom, 0, &data->comm)) in tcs_wrap_CreateMaintenanceArchive() 88 if (getData(TCSD_PACKET_TYPE_AUTH, 2, &ownerAuth, 0, &data->comm)) in tcs_wrap_CreateMaintenanceArchive() 100 initData(&data->comm, 5); in tcs_wrap_CreateMaintenanceArchive() [all …]
|
| H A D | rpc_aik.c | 56 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_MakeIdentity() 64 if (getData(TCSD_PACKET_TYPE_ENCAUTH, 1, &identityAuth, 0, &data->comm)) in tcs_wrap_MakeIdentity() 66 if (getData(TCSD_PACKET_TYPE_DIGEST, 2, &privCAHash, 0, &data->comm)) in tcs_wrap_MakeIdentity() 69 if (getData(TCSD_PACKET_TYPE_UINT32, 3, &idKeyInfoSize, 0, &data->comm)) in tcs_wrap_MakeIdentity() 76 if (getData(TCSD_PACKET_TYPE_PBYTE, 4, idKeyInfo, idKeyInfoSize, &data->comm)) { in tcs_wrap_MakeIdentity() 80 if (getData(TCSD_PACKET_TYPE_AUTH, 5, &auth1, 0, &data->comm)) { in tcs_wrap_MakeIdentity() 85 result = getData(TCSD_PACKET_TYPE_AUTH, 6, &auth2, 0, &data->comm); in tcs_wrap_MakeIdentity() 111 initData(&data->comm, 12); in tcs_wrap_MakeIdentity() 113 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pSRKAuth, 0, &data->comm)) in tcs_wrap_MakeIdentity() 116 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pOwnerAuth, 0, &data->comm)) in tcs_wrap_MakeIdentity() [all …]
|
| H A D | rpc_migration.c | 42 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &hContext, 0, &data->comm)) in tcs_wrap_CreateMigrationBlob() 50 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &parentHandle, 0, &data->comm)) in tcs_wrap_CreateMigrationBlob() 52 if (getData(TCSD_PACKET_TYPE_UINT16, 2, &migrationType, 0, &data->comm)) in tcs_wrap_CreateMigrationBlob() 55 if (getData(TCSD_PACKET_TYPE_UINT32, 3, &MigrationKeyAuthSize, 0, &data->comm)) in tcs_wrap_CreateMigrationBlob() 63 if (getData(TCSD_PACKET_TYPE_PBYTE, 4, MigrationKeyAuth, MigrationKeyAuthSize, &data->comm)) { in tcs_wrap_CreateMigrationBlob() 68 if (getData(TCSD_PACKET_TYPE_UINT32, 5, &encDataSize, 0, &data->comm)) { in tcs_wrap_CreateMigrationBlob() 79 if (getData(TCSD_PACKET_TYPE_PBYTE, 6, encData, encDataSize, &data->comm)) { in tcs_wrap_CreateMigrationBlob() 85 if (getData(TCSD_PACKET_TYPE_AUTH, 7, &auth1, 0, &data->comm)) { in tcs_wrap_CreateMigrationBlob() 91 if (getData(TCSD_PACKET_TYPE_AUTH, 8, &auth2, 0, &data->comm)) { in tcs_wrap_CreateMigrationBlob() 114 initData(&data->comm, 6); in tcs_wrap_CreateMigrationBlob() [all …]
|
| /netbsd-src/tests/bin/ps/ |
| H A D | t_ps.sh | 237 check_heading_keywords '-o comm' \ 240 check_heading_keywords '-o comm,pid' \ 255 check_heading_regexp '-o pid=PPP -o comm' \ 257 check_heading_regexp '-o pid=PPP -o comm=CCC' \ 259 check_heading_regexp '-o pid,comm=CCC' \ 261 check_heading_regexp '-o pid -o comm=CCC' \ 264 check_heading_regexp '-o comm=CCC' \ 267 check_heading_regexp '-o comm=CCC -o pid=PPP' \ 269 check_heading_regexp '-o comm,pid=PPP' \ 284 check_heading_regexp '-o comm,pid==' \ [all …]
|