Home
last modified time | relevance | path

Searched refs:outDataSize (Results 1 – 25 of 34) sorted by relevance

12

/netbsd/crypto/external/cpl/trousers/dist/src/tspi/
H A Dtsp_migration.c37 UINT32 * outDataSize, /* out */ in Transport_CreateMigrationBlob() argument
101 Trspi_UnloadBlob_UINT32(&offset, outDataSize, dec); in Transport_CreateMigrationBlob()
103 if ((*outData = malloc(*outDataSize)) == NULL) { in Transport_CreateMigrationBlob()
108 LogError("malloc of %u bytes failed", *outDataSize); in Transport_CreateMigrationBlob()
109 *outDataSize = 0; in Transport_CreateMigrationBlob()
112 Trspi_UnloadBlob(&offset, *outDataSize, dec, *outData); in Transport_CreateMigrationBlob()
126 UINT32 * outDataSize, /* out */ in Transport_ConvertMigrationBlob() argument
176 Trspi_UnloadBlob_UINT32(&offset, outDataSize, dec); in Transport_ConvertMigrationBlob()
178 if ((*outData = malloc(*outDataSize)) == NULL) { in Transport_ConvertMigrationBlob()
180 LogError("malloc of %u bytes failed", *outDataSize); in Transport_ConvertMigrationBlob()
[all …]
H A Dtspi_certify.c38 UINT32 outDataSize; in Tspi_Key_CertifyKey() local
113 &outDataSize, &outData))) in Tspi_Key_CertifyKey()
122 result |= Trspi_Hash_UINT32(&hashCtx, outDataSize); in Tspi_Key_CertifyKey()
123 result |= Trspi_HashUpdate(&hashCtx, outDataSize, outData); in Tspi_Key_CertifyKey()
144 digest.digest, outDataSize, outData))){ in Tspi_Key_CertifyKey()
157 pValidationData->ulValidationDataLength = outDataSize; in Tspi_Key_CertifyKey()
158 pValidationData->rgbValidationData = calloc_tspi(tspContext, outDataSize); in Tspi_Key_CertifyKey()
160 LogError("malloc of %u bytes failed.", outDataSize); in Tspi_Key_CertifyKey()
164 memcpy(pValidationData->rgbValidationData, outData, outDataSize); in Tspi_Key_CertifyKey()
H A Dtsp_certify.c34 UINT32 * outDataSize, /* out */ in Transport_CertifyKey() argument
90 Trspi_UnloadBlob_UINT32(&offset, outDataSize, dec); in Transport_CertifyKey()
92 if ((*outData = malloc(*outDataSize)) == NULL) { in Transport_CertifyKey()
97 LogError("malloc of %u bytes failed", *outDataSize); in Transport_CertifyKey()
98 *outDataSize = 0; in Transport_CertifyKey()
101 Trspi_UnloadBlob(&offset, *outDataSize, dec, *outData); in Transport_CertifyKey()
H A Dtspi_selftest.c47 UINT32 outDataSize; in Tspi_TPM_CertifySelfTest() local
103 pKeyAuth, &outDataSize, &outData))) in Tspi_TPM_CertifySelfTest()
111 result |= Trspi_Hash_UINT32(&hashCtx, outDataSize); in Tspi_TPM_CertifySelfTest()
112 result |= Trspi_HashUpdate(&hashCtx, outDataSize, outData); in Tspi_TPM_CertifySelfTest()
141 outData, outDataSize))) { in Tspi_TPM_CertifySelfTest()
162 pValidationData->ulValidationDataLength = outDataSize; in Tspi_TPM_CertifySelfTest()
163 pValidationData->rgbValidationData = calloc_tspi(tspContext, outDataSize); in Tspi_TPM_CertifySelfTest()
173 memcpy(pValidationData->rgbValidationData, outData, outDataSize); in Tspi_TPM_CertifySelfTest()
H A Dtsp_selftest.c98 UINT32 * outDataSize, /* out */ in Transport_GetTestResult() argument
118 Trspi_UnloadBlob_UINT32(&offset, outDataSize, dec); in Transport_GetTestResult()
120 if ((*outData = malloc(*outDataSize)) == NULL) { in Transport_GetTestResult()
122 LogError("malloc of %u bytes failed", *outDataSize); in Transport_GetTestResult()
123 *outDataSize = 0; in Transport_GetTestResult()
126 Trspi_UnloadBlob(&offset, *outDataSize, dec, *outData); in Transport_GetTestResult()
H A Dtsp_bind.c31 UINT32 * outDataSize, /* out */ in Transport_UnBind() argument
78 Trspi_UnloadBlob_UINT32(&offset, outDataSize, dec); in Transport_UnBind()
80 if ((*outData = malloc(*outDataSize)) == NULL) { in Transport_UnBind()
82 LogError("malloc of %u bytes failed", *outDataSize); in Transport_UnBind()
85 Trspi_UnloadBlob(&offset, *outDataSize, dec, *outData); in Transport_UnBind()
H A Dtspi_cmk.c218 UINT32 randomDataSize, outDataSize, newBlobSize; in Tspi_Key_CMKCreateBlob() local
311 &outDataSize, &outData))) in Tspi_Key_CMKCreateBlob()
320 result |= Trspi_Hash_UINT32(&hashCtx, outDataSize); in Tspi_Key_CMKCreateBlob()
321 result |= Trspi_HashUpdate(&hashCtx, outDataSize, outData); in Tspi_Key_CMKCreateBlob()
331 tssKey.encSize = outDataSize; in Tspi_Key_CMKCreateBlob()
391 UINT32 outDataSize; in Tspi_Key_CMKConvertMigration() local
445 pAuth, &outDataSize, &outData))) in Tspi_Key_CMKConvertMigration()
452 result |= Trspi_Hash_UINT32(&hashCtx, outDataSize); in Tspi_Key_CMKConvertMigration()
453 result |= Trspi_HashUpdate(&hashCtx, outDataSize, outData); in Tspi_Key_CMKConvertMigration()
464 if ((result = obj_rsakey_set_privkey(hKeyToMigrate, TRUE, outDataSize, outData))) in Tspi_Key_CMKConvertMigration()
H A Dtspi_migration.c315 UINT32 outDataSize; in Tspi_Key_ConvertMigrationBlob() local
371 &outDataSize, &outData))) in Tspi_Key_ConvertMigrationBlob()
378 result |= Trspi_Hash_UINT32(&hashCtx, outDataSize); in Tspi_Key_ConvertMigrationBlob()
379 result |= Trspi_HashUpdate(&hashCtx, outDataSize, outData); in Tspi_Key_ConvertMigrationBlob()
391 if ((result = obj_rsakey_set_privkey(hKeyToMigrate, TRUE, outDataSize, outData))) in Tspi_Key_ConvertMigrationBlob()
H A Dobj_delfamily.c142 UINT32 outDataSize; in obj_delfamily_set_locked() local
160 opDataSize, opData, &outDataSize, &outData))) in obj_delfamily_set_locked()
203 UINT32 outDataSize; in obj_delfamily_set_enabled() local
221 opDataSize, opData, &outDataSize, &outData))) in obj_delfamily_set_enabled()
/netbsd/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/
H A Drpc_migration.c40 UINT32 * outDataSize, /* out */ in RPC_CreateMigrationBlob_TP() argument
114 if (getData(TCSD_PACKET_TYPE_UINT32, i++, outDataSize, 0, &hte->comm)) { in RPC_CreateMigrationBlob_TP()
121 *outData = (BYTE *)malloc(*outDataSize); in RPC_CreateMigrationBlob_TP()
125 LogError("malloc of %u bytes failed.", *outDataSize); in RPC_CreateMigrationBlob_TP()
129 if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *outData, *outDataSize, &hte->comm)) { in RPC_CreateMigrationBlob_TP()
150 UINT32 * outDataSize, /* out */ in RPC_ConvertMigrationBlob_TP() argument
192 if (getData(TCSD_PACKET_TYPE_UINT32, i++, outDataSize, 0, &hte->comm)) { in RPC_ConvertMigrationBlob_TP()
197 *outData = (BYTE *)malloc(*outDataSize); in RPC_ConvertMigrationBlob_TP()
199 LogError("malloc of %u bytes failed.", *outDataSize); in RPC_ConvertMigrationBlob_TP()
203 if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *outData, *outDataSize, &hte->comm)) { in RPC_ConvertMigrationBlob_TP()
H A Drpc_bind.c34 UINT32 * outDataSize, /* out */ in RPC_UnBind_TP() argument
71 if (getData(TCSD_PACKET_TYPE_UINT32, i++, outDataSize, 0, &hte->comm)) { in RPC_UnBind_TP()
76 *outData = (BYTE *) malloc(*outDataSize); in RPC_UnBind_TP()
78 LogError("malloc of %u bytes failed.", *outDataSize); in RPC_UnBind_TP()
82 if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *outData, *outDataSize, &hte->comm)) { in RPC_UnBind_TP()
H A Drpc_certify.c37 UINT32 * outDataSize, /* out */ in RPC_CertifyKey_TP() argument
108 if (getData(TCSD_PACKET_TYPE_UINT32, i++, outDataSize, 0, &hte->comm)) { in RPC_CertifyKey_TP()
114 *outData = (BYTE *) malloc(*outDataSize); in RPC_CertifyKey_TP()
116 LogError("malloc of %u bytes failed.", *outDataSize); in RPC_CertifyKey_TP()
121 if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *outData, *outDataSize, &hte->comm)) { in RPC_CertifyKey_TP()
H A Drpc_selftest.c113 UINT32 * outDataSize, /* out */ in RPC_GetTestResult_TP() argument
133 if (getData(TCSD_PACKET_TYPE_UINT32, 0, outDataSize, 0, &hte->comm)) { in RPC_GetTestResult_TP()
138 *outData = malloc(*outDataSize); in RPC_GetTestResult_TP()
140 LogError("malloc of %u bytes failed.", *outDataSize); in RPC_GetTestResult_TP()
145 if (getData(TCSD_PACKET_TYPE_PBYTE, 1, *outData, *outDataSize, &hte->comm)) { in RPC_GetTestResult_TP()
H A Drpc_cmk.c226 UINT32 *outDataSize, /* out */ in RPC_CMK_CreateBlob_TP() argument
297 if (getData(TCSD_PACKET_TYPE_UINT32, i++, outDataSize, 0, &hte->comm)) in RPC_CMK_CreateBlob_TP()
299 *outData = (BYTE *)malloc(*outDataSize); in RPC_CMK_CreateBlob_TP()
301 LogError("malloc of %u bytes failed.", *outDataSize); in RPC_CMK_CreateBlob_TP()
305 if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *outData, *outDataSize, &hte->comm)) { in RPC_CMK_CreateBlob_TP()
327 UINT32 *outDataSize, /* out */ in RPC_CMK_ConvertMigration_TP() argument
379 if (getData(TCSD_PACKET_TYPE_UINT32, i++, outDataSize, 0, &hte->comm)) in RPC_CMK_ConvertMigration_TP()
381 *outData = (BYTE *)malloc(*outDataSize); in RPC_CMK_ConvertMigration_TP()
383 LogError("malloc of %u bytes failed.", *outDataSize); in RPC_CMK_ConvertMigration_TP()
386 if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *outData, *outDataSize, &hte->comm)) { in RPC_CMK_ConvertMigration_TP()
H A Drpc_changeauth.c38 UINT32 * outDataSize, /* out */ in RPC_ChangeAuth_TP() argument
80 if (getData(TCSD_PACKET_TYPE_UINT32, 2, outDataSize, 0, &hte->comm)) { in RPC_ChangeAuth_TP()
85 *outData = (BYTE *) malloc(*outDataSize); in RPC_ChangeAuth_TP()
87 LogError("malloc of %u bytes failed.", *outDataSize); in RPC_ChangeAuth_TP()
91 if (getData(TCSD_PACKET_TYPE_PBYTE, 3, *outData, *outDataSize, &hte->comm)) { in RPC_ChangeAuth_TP()
/netbsd/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/
H A Drpc_seal.c41 UINT32 outDataSize; in tcs_common_Seal() local
110 PCRInfo, inDataSize, inData, pAuth, &outDataSize, &outData); in tcs_common_Seal()
125 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &outDataSize, 0, &data->comm)) { in tcs_common_Seal()
129 if (setData(TCSD_PACKET_TYPE_PBYTE, 2, outData, outDataSize, &data->comm)) { in tcs_common_Seal()
167 UINT32 outDataSize; in tcs_wrap_UnSeal() local
219 pDataAuth, &outDataSize, &outData); in tcs_wrap_UnSeal()
242 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &outDataSize, 0, &data->comm)) { in tcs_wrap_UnSeal()
246 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, outData, outDataSize, &data->comm)) { in tcs_wrap_UnSeal()
H A Drpc_migration.c37 UINT32 MigrationKeyAuthSize, encDataSize, randomSize, outDataSize; in tcs_wrap_CreateMigrationBlob() local
106 &randomSize, &random, &outDataSize, &outData); in tcs_wrap_CreateMigrationBlob()
142 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &outDataSize, 0, &data->comm)) { in tcs_wrap_CreateMigrationBlob()
147 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, outData, outDataSize, &data->comm)) { in tcs_wrap_CreateMigrationBlob()
169 UINT32 outDataSize, randomSize, inDataSize; in tcs_wrap_ConvertMigrationBlob() local
224 randomSize, random, pParentAuth, &outDataSize, in tcs_wrap_ConvertMigrationBlob()
241 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &outDataSize, 0, &data->comm)) { in tcs_wrap_ConvertMigrationBlob()
245 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, outData, outDataSize, &data->comm)) { in tcs_wrap_ConvertMigrationBlob()
H A Drpc_bind.c41 UINT32 outDataSize; in tcs_wrap_UnBind() local
82 pPrivAuth, &outDataSize, &outData); in tcs_wrap_UnBind()
95 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &outDataSize, 0, &data->comm)) { in tcs_wrap_UnBind()
98 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, outData, outDataSize, &data->comm)) { in tcs_wrap_UnBind()
H A Drpc_certify.c36 UINT32 CertifyInfoSize, outDataSize; in tcs_wrap_CertifyKey() local
75 pKeyAuth, &CertifyInfoSize, &CertifyInfo, &outDataSize, in tcs_wrap_CertifyKey()
108 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &outDataSize, 0, &data->comm)) { in tcs_wrap_CertifyKey()
112 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, outData, outDataSize, &data->comm)) { in tcs_wrap_CertifyKey()
H A Drpc_changeauth.c44 UINT32 outDataSize; in tcs_wrap_ChangeAuth() local
88 &outDataSize, &outData); in tcs_wrap_ChangeAuth()
102 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &outDataSize, 0, &data->comm)) { in tcs_wrap_ChangeAuth()
106 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, outData, outDataSize, &data->comm)) { in tcs_wrap_ChangeAuth()
H A Drpc_cmk.c304 UINT32 randomSize, outDataSize; in tcs_wrap_CMK_CreateBlob() local
449 &randomSize, &random, &outDataSize, &outData); in tcs_wrap_CMK_CreateBlob()
482 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &outDataSize, 0, &data->comm)) { in tcs_wrap_CMK_CreateBlob()
487 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, outData, outDataSize, &data->comm)) { in tcs_wrap_CMK_CreateBlob()
510 UINT32 outDataSize; in tcs_wrap_CMK_ConvertMigration() local
601 pAuth, &outDataSize, &outData); in tcs_wrap_CMK_ConvertMigration()
618 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &outDataSize, 0, &data->comm)) { in tcs_wrap_CMK_ConvertMigration()
623 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, outData, outDataSize, &data->comm)) { in tcs_wrap_CMK_ConvertMigration()
/netbsd/crypto/external/cpl/trousers/dist/src/tcs/
H A Dtcsi_migration.c41 UINT32 * outDataSize, /* out */ in TCSP_CreateMigrationBlob_Internal() argument
92 random, outDataSize, outData, parentAuth, entityAuth); in TCSP_CreateMigrationBlob_Internal()
109 UINT32 * outDataSize, /* out */ in TCSP_ConvertMigrationBlob_Internal() argument
143 result = tpm_rsp_parse(TPM_ORD_ConvertMigrationBlob, txBlob, paramSize, outDataSize, in TCSP_ConvertMigrationBlob_Internal()
H A Dtcsi_bind.c36 UINT32 * outDataSize, /* out */ in TCSP_UnBind_Internal() argument
70 result = tpm_rsp_parse(TPM_ORD_UnBind, txBlob, paramSize, outDataSize, outData, in TCSP_UnBind_Internal()
H A Dtcsi_cmk.c224 UINT32* outDataSize, /* out */ in TCSP_CMK_CreateBlob_Internal() argument
259 randomSize, random, outDataSize, outData, parentAuth, NULL); in TCSP_CMK_CreateBlob_Internal()
282 UINT32* outDataSize, /* out */ in TCSP_CMK_ConvertMigration_Internal() argument
316 outDataSize, outData, parentAuth, NULL); in TCSP_CMK_ConvertMigration_Internal()
/netbsd/crypto/external/cpl/trousers/dist/src/include/tss/
H A Dtcs.h246 UINT32* outDataSize, // out
438 UINT32* outDataSize, // out
476 UINT32* outDataSize, // out
488 UINT32* outDataSize, // out
511 UINT32* outDataSize, // out
525 UINT32* outDataSize, // out
632 UINT32* outDataSize, // out
991 UINT32* outDataSize, // out
1048 UINT32* outDataSize, // out
1064 UINT32* outDataSize, // out

12