Home
last modified time | relevance | path

Searched refs:blobSize (Results 1 – 20 of 20) sorted by relevance

/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/
H A Dobj_migdata.c93 obj_migdata_set_migrationblob(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 blobSize, BYTE *blob) in obj_migdata_set_migrationblob() argument
99 result = obj_migdata_set_msa_pubkey(hMigData, blobSize, blob); in obj_migdata_set_migrationblob()
102 result = obj_migdata_set_ma_pubkey(hMigData, blobSize, blob); in obj_migdata_set_migrationblob()
105 result = obj_migdata_set_dest_pubkey(hMigData, blobSize, blob); in obj_migdata_set_migrationblob()
108 result = obj_migdata_set_src_pubkey(hMigData, blobSize, blob); in obj_migdata_set_migrationblob()
118 obj_migdata_get_migrationblob(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 *blobSize, BYTE **blob) in obj_migdata_get_migrationblob() argument
124 result = obj_migdata_get_blob(hMigData, blobSize, blob); in obj_migdata_get_migrationblob()
134 obj_migdata_set_authoritydata(TSS_HMIGDATA hMigData, UINT32 whichOne, UINT32 blobSize, BYTE *blob) in obj_migdata_set_authoritydata() argument
140 result = obj_migdata_set_msa_digest(hMigData, blobSize, blob); in obj_migdata_set_authoritydata()
143 result = obj_migdata_set_msa_hmac(hMigData, blobSize, blob); in obj_migdata_set_authoritydata()
[all …]
H A Dtsp_delegate.c112 UINT32 blobSize; in create_owner_delegation() local
158 xsap->pAuth, &blobSize, in create_owner_delegation()
165 result |= Trspi_Hash_UINT32(&hashCtx, blobSize); in create_owner_delegation()
166 result |= Trspi_HashUpdate(&hashCtx, blobSize, blob); in create_owner_delegation()
176 blobSize, blob); in create_owner_delegation()
201 UINT32 blobSize; in create_key_delegation() local
246 xsap->pAuth, &blobSize, in create_key_delegation()
253 result |= Trspi_Hash_UINT32(&hashCtx, blobSize); in create_key_delegation()
254 result |= Trspi_HashUpdate(&hashCtx, blobSize, blob); in create_key_delegation()
263 result = obj_policy_set_delegation_blob(hDelegation, TSS_DELEGATIONTYPE_KEY, blobSize, in create_key_delegation()
[all …]
H A Dtspi_cmk.c73 UINT32 blobSize; in Tspi_TPM_CMKApproveMA() local
88 if ((result = obj_migdata_get_msa_digest(hMaAuthData, &blobSize, &blob))) in Tspi_TPM_CMKApproveMA()
131 UINT32 blobSize; in Tspi_TPM_CMKCreateTicket() local
151 if ((result = obj_migdata_get_sig_data(hSigData, &blobSize, &blob))) in Tspi_TPM_CMKCreateTicket()
211 UINT32 msaListSize, restrictTicketSize, sigTicketSize, blobSize; in Tspi_Key_CMKCreateBlob() local
275 if ((result = obj_rsakey_get_blob(hKeyToMigrate, &blobSize, &blob))) in Tspi_Key_CMKCreateBlob()
386 UINT32 blobSize; in Tspi_Key_CMKConvertMigration() local
410 if ((result = obj_migdata_get_sig_ticket(hMigrationData, &blobSize, &blob))) in Tspi_Key_CMKConvertMigration()
H A Dtspi_migration.c170 UINT32 blobSize; in Tspi_Key_CreateMigrationBlob() local
248 &blobSize, &blob))) in Tspi_Key_CreateMigrationBlob()
256 result |= Trspi_Hash_UINT32(&hashCtx, blobSize); in Tspi_Key_CreateMigrationBlob()
257 result |= Trspi_HashUpdate(&hashCtx, blobSize, blob); in Tspi_Key_CreateMigrationBlob()
270 tssKey.encSize = blobSize; in Tspi_Key_CreateMigrationBlob()
H A Dtspi_delegate.c140 UINT32 blobSize; in Tspi_TPM_Delegate_CacheOwnerDelegation() local
155 &blobSize, &blob))) in Tspi_TPM_Delegate_CacheOwnerDelegation()
184 result |= Trspi_Hash_UINT32(&hashCtx, blobSize); in Tspi_TPM_Delegate_CacheOwnerDelegation()
185 result |= Trspi_HashUpdate(&hashCtx, blobSize, blob); in Tspi_TPM_Delegate_CacheOwnerDelegation()
196 if ((result = TCS_API(hContext)->Delegate_LoadOwnerDelegation(hContext, ulIndex, blobSize, in Tspi_TPM_Delegate_CacheOwnerDelegation()
H A Dtsp_aik.c29 UINT32 blobSize, /* in */ in Transport_ActivateTPMIdentity() argument
60 if ((result = obj_context_transport_execute(tspContext, TPM_ORD_ActivateIdentity, blobSize, in Transport_ActivateTPMIdentity()
H A Dobj_rsakey.c2000 obj_rsakey_set_msa_approval(TSS_HKEY hKey, UINT32 blobSize, BYTE *blob) in obj_rsakey_set_msa_approval() argument
2011 if (blobSize != sizeof(rsakey->msaApproval.digest)) { in obj_rsakey_set_msa_approval()
2024 obj_rsakey_get_msa_approval(TSS_HKEY hKey, UINT32 *blobSize, BYTE **blob) in obj_rsakey_get_msa_approval() argument
2041 *blobSize = sizeof(rsakey->msaApproval.digest); in obj_rsakey_get_msa_approval()
2050 obj_rsakey_set_msa_digest(TSS_HKEY hKey, UINT32 blobSize, BYTE *blob) in obj_rsakey_set_msa_digest() argument
2061 if (blobSize != sizeof(rsakey->msaDigest.digest)) { in obj_rsakey_set_msa_digest()
2074 obj_rsakey_get_msa_digest(TSS_HKEY hKey, UINT32 *blobSize, BYTE **blob) in obj_rsakey_get_msa_digest() argument
2091 *blobSize = sizeof(rsakey->msaDigest.digest); in obj_rsakey_get_msa_digest()
H A Dtspi_key.c209 UINT32 blobSize; in Tspi_Key_CreateKey() local
248 if ((result = obj_rsakey_get_msa_approval(hKey, &blobSize, &blob))) in Tspi_Key_CreateKey()
253 if ((result = obj_rsakey_get_msa_digest(hKey, &blobSize, &blob))) in Tspi_Key_CreateKey()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/
H A Drpc_delegate.c98 UINT32 *blobSize, /* out */ in RPC_Delegate_CreateKeyDelegation_TP() argument
140 if (getData(TCSD_PACKET_TYPE_UINT32, i++, blobSize, 0, &hte->comm)) in RPC_Delegate_CreateKeyDelegation_TP()
142 *blob = (BYTE *)malloc(*blobSize); in RPC_Delegate_CreateKeyDelegation_TP()
144 LogError("malloc of %u bytes failed.", *blobSize); in RPC_Delegate_CreateKeyDelegation_TP()
147 if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *blob, *blobSize, &hte->comm)) { in RPC_Delegate_CreateKeyDelegation_TP()
163 UINT32 *blobSize, /* out */ in RPC_Delegate_CreateOwnerDelegation_TP() argument
205 if (getData(TCSD_PACKET_TYPE_UINT32, i++, blobSize, 0, &hte->comm)) in RPC_Delegate_CreateOwnerDelegation_TP()
207 *blob = (BYTE *)malloc(*blobSize); in RPC_Delegate_CreateOwnerDelegation_TP()
209 LogError("malloc of %u bytes failed.", *blobSize); in RPC_Delegate_CreateOwnerDelegation_TP()
212 if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *blob, *blobSize, &hte->comm)) { in RPC_Delegate_CreateOwnerDelegation_TP()
[all …]
H A Drpc_aik.c273 UINT32 blobSize, /* in */ in RPC_ActivateTPMIdentity_TP() argument
291 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &blobSize, 0, &hte->comm)) in RPC_ActivateTPMIdentity_TP()
293 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, blob, blobSize, &hte->comm)) in RPC_ActivateTPMIdentity_TP()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/
H A Drpc_delegate.c128 UINT32 blobSize; in tcs_wrap_Delegate_CreateKeyDelegation() local
178 publicInfoSize, publicInfo, &encDelAuth, pAuth, &blobSize, &blob); in tcs_wrap_Delegate_CreateKeyDelegation()
193 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &blobSize, 0, &data->comm)) { in tcs_wrap_Delegate_CreateKeyDelegation()
197 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, blob, blobSize, &data->comm)) { in tcs_wrap_Delegate_CreateKeyDelegation()
219 UINT32 blobSize; in tcs_wrap_Delegate_CreateOwnerDelegation() local
269 publicInfoSize, publicInfo, &encDelAuth, pAuth, &blobSize, &blob); in tcs_wrap_Delegate_CreateOwnerDelegation()
284 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &blobSize, 0, &data->comm)) { in tcs_wrap_Delegate_CreateOwnerDelegation()
288 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, blob, blobSize, &data->comm)) { in tcs_wrap_Delegate_CreateOwnerDelegation()
306 UINT32 blobSize; in tcs_wrap_Delegate_LoadOwnerDelegation() local
325 if (getData(TCSD_PACKET_TYPE_UINT32, 2, &blobSize, 0, &data->comm)) in tcs_wrap_Delegate_LoadOwnerDelegation()
[all …]
H A Drpc_aik.c166 UINT32 SymmetricKeySize, blobSize; in tcs_wrap_ActivateIdentity() local
181 if (getData(TCSD_PACKET_TYPE_UINT32, 2, &blobSize, 0, &data->comm)) in tcs_wrap_ActivateIdentity()
184 if ((blob = malloc(blobSize)) == NULL) in tcs_wrap_ActivateIdentity()
187 if (getData(TCSD_PACKET_TYPE_PBYTE, 3, blob, blobSize, &data->comm)) { in tcs_wrap_ActivateIdentity()
210 result = TCSP_ActivateTPMIdentity_Internal(hContext, idKeyHandle, blobSize, in tcs_wrap_ActivateIdentity()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/
H A Dtcsi_delegate.c75 UINT32 *blobSize, /* out */ in TCSP_Delegate_CreateKeyDelegation_Internal() argument
107 blobSize, blob, keyAuth, NULL); in TCSP_Delegate_CreateKeyDelegation_Internal()
125 UINT32 *blobSize, /* out */ in TCSP_Delegate_CreateOwnerDelegation_Internal() argument
153 blobSize, blob, ownerAuth, NULL); in TCSP_Delegate_CreateOwnerDelegation_Internal()
167 UINT32 blobSize, /* in */ in TCSP_Delegate_LoadOwnerDelegation_Internal() argument
187 blobSize, blob, ownerAuth))) in TCSP_Delegate_LoadOwnerDelegation_Internal()
H A Dtcsi_ps.c508 UINT16 blobSize = sizeof(keyBlob); in TCSP_LoadKeyByUUID_Internal() local
527 if (ps_get_key_by_uuid(&pLoadKeyInfo->keyUUID, keyBlob, &blobSize)) in TCSP_LoadKeyByUUID_Internal()
535 blobSize, keyBlob, in TCSP_LoadKeyByUUID_Internal()
556 if (ps_get_key_by_uuid(KeyUUID, keyBlob, &blobSize)) in TCSP_LoadKeyByUUID_Internal()
559 keySize = blobSize; in TCSP_LoadKeyByUUID_Internal()
H A Dtcsi_aik.c100 UINT32 blobSize, /* in */ in TCSP_ActivateTPMIdentity_Internal() argument
129 if ((result = tpm_rqu_build(TPM_ORD_ActivateIdentity, &offset, txBlob, keySlot, blobSize, in TCSP_ActivateTPMIdentity_Internal()
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/tss/
H A Dtcs.h299 UINT32 blobSize, // in
753 UINT32* blobSize, // out
764 UINT32* blobSize, // out
771 UINT32 blobSize, // in
H A Dtpm.h977 UINT32 blobSize; member
978 SIZEIS(blobSize)
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/
H A Dobj_migdata.h59 UINT32 blobSize; member
H A Dtcs_utils.h524 UINT32 blobSize, /* in */
1070 UINT32* blobSize, /* out */
1080 UINT32* blobSize, /* out */
1086 UINT32 blobSize, /* in */
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/
H A Dtcs_api.c856 UINT32 blobSize, /* in */ in RPC_ActivateTPMIdentity() argument
871 result = RPC_ActivateTPMIdentity_TP(entry, idKey, blobSize, blob, idKeyAuth, in RPC_ActivateTPMIdentity()
2925 UINT32 *blobSize, /* out */ in RPC_Delegate_CreateKeyDelegation() argument
2938 keyAuth, blobSize, blob); in RPC_Delegate_CreateKeyDelegation()
2956 UINT32 *blobSize, /* out */ in RPC_Delegate_CreateOwnerDelegation() argument
2970 blobSize, blob); in RPC_Delegate_CreateOwnerDelegation()
2984 UINT32 blobSize, /* in */ in RPC_Delegate_LoadOwnerDelegation() argument
2996 result = RPC_Delegate_LoadOwnerDelegation_TP(entry, index, blobSize, blob, in RPC_Delegate_LoadOwnerDelegation()