Home
last modified time | relevance | path

Searched refs:pAuth (Results 1 – 25 of 40) sorted by relevance

12

/netbsd/src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/
Drpc_nv.c38 TPM_AUTH Auth, *pAuth; in tcs_wrap_NV_DefineOrReleaseSpace() local
66 pAuth = NULL; in tcs_wrap_NV_DefineOrReleaseSpace()
68 pAuth = &Auth; in tcs_wrap_NV_DefineOrReleaseSpace()
73 … cPubInfoSize, pubInfo, encAuth, pAuth); in tcs_wrap_NV_DefineOrReleaseSpace()
81 if ( pAuth) { in tcs_wrap_NV_DefineOrReleaseSpace()
82 if (setData(TCSD_PACKET_TYPE_AUTH, 0, pAuth, 0, &data->comm)) { in tcs_wrap_NV_DefineOrReleaseSpace()
101 TPM_AUTH Auth, *pAuth; in tcs_wrap_NV_WriteValue() local
130 pAuth = NULL; in tcs_wrap_NV_WriteValue()
132 pAuth = &Auth; in tcs_wrap_NV_WriteValue()
137 offset, ulDataLength, rgbDataToWrite, pAuth); in tcs_wrap_NV_WriteValue()
[all …]
Drpc_delegate.c38 TPM_AUTH ownerAuth, nullAuth, *pAuth; in tcs_wrap_Delegate_Manage() local
80 pAuth = &ownerAuth; in tcs_wrap_Delegate_Manage()
82 pAuth = NULL; in tcs_wrap_Delegate_Manage()
87 opDataSize, opData, pAuth, &retDataSize, &retData); in tcs_wrap_Delegate_Manage()
95 if (pAuth) { in tcs_wrap_Delegate_Manage()
96 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) { in tcs_wrap_Delegate_Manage()
127 TPM_AUTH keyAuth, nullAuth, *pAuth; in tcs_wrap_Delegate_CreateKeyDelegation() local
171 pAuth = &keyAuth; in tcs_wrap_Delegate_CreateKeyDelegation()
173 pAuth = NULL; in tcs_wrap_Delegate_CreateKeyDelegation()
178 publicInfoSize, publicInfo, &encDelAuth, pAuth, &blobSize, &blob); in tcs_wrap_Delegate_CreateKeyDelegation()
[all …]
Drpc_key.c66 TPM_AUTH *pAuth; in tcs_wrap_GetPubkey() local
85 pAuth = NULL; in tcs_wrap_GetPubkey()
89 pAuth = &auth; in tcs_wrap_GetPubkey()
93 result = TCSP_GetPubKey_Internal(hContext, hKey, pAuth, &pubKeySize, &pubKey); in tcs_wrap_GetPubkey()
100 if (pAuth != NULL) in tcs_wrap_GetPubkey()
101 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) { in tcs_wrap_GetPubkey()
161 TPM_AUTH *pAuth; in tcs_wrap_LoadKeyByBlob() local
189 pAuth = NULL; in tcs_wrap_LoadKeyByBlob()
194 pAuth = &auth; in tcs_wrap_LoadKeyByBlob()
199 pAuth, &phKeyTCSI, &phKeyHMAC); in tcs_wrap_LoadKeyByBlob()
[all …]
Drpc_cmk.c125 TPM_AUTH parentAuth, nullAuth, *pAuth; in tcs_wrap_CMK_CreateKey() local
170 pAuth = &parentAuth; in tcs_wrap_CMK_CreateKey()
172 pAuth = NULL; in tcs_wrap_CMK_CreateKey()
177 migAuthorityDigest, &keyDataSize, &keyData, pAuth); in tcs_wrap_CMK_CreateKey()
194 if (pAuth) { in tcs_wrap_CMK_CreateKey()
195 if (setData(TCSD_PACKET_TYPE_AUTH, 2, pAuth, 0, &data->comm)) in tcs_wrap_CMK_CreateKey()
303 TPM_AUTH parentAuth, nullAuth, *pAuth; in tcs_wrap_CMK_CreateBlob() local
440 pAuth = &parentAuth; in tcs_wrap_CMK_CreateBlob()
442 pAuth = NULL; in tcs_wrap_CMK_CreateBlob()
448 restrictTicket, sigTicketSize, sigTicket, encDataSize, encData, pAuth, in tcs_wrap_CMK_CreateBlob()
[all …]
Drpc_transport.c38 TPM_AUTH pEncKeyAuth, *pAuth; in tcs_wrap_EstablishTransport() local
85 pAuth = NULL; in tcs_wrap_EstablishTransport()
87 pAuth = &pEncKeyAuth; in tcs_wrap_EstablishTransport()
93 … ulSecretSize, rgbSecret, pAuth, &pbLocality, in tcs_wrap_EstablishTransport()
105 if (pAuth) { in tcs_wrap_EstablishTransport()
106 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) { in tcs_wrap_EstablishTransport()
315 TPM_AUTH pKeyAuth, pTransAuth, *pAuth, null_auth; in tcs_wrap_ReleaseTransportSigned() local
337 pAuth = NULL; in tcs_wrap_ReleaseTransportSigned()
339 pAuth = &pKeyAuth; in tcs_wrap_ReleaseTransportSigned()
348 pAuth, &pTransAuth, &pbLocality, in tcs_wrap_ReleaseTransportSigned()
[all …]
Drpc_tick.c73 TPM_AUTH auth, *pAuth; in tcs_wrap_TickStampBlob() local
95 pAuth = NULL; in tcs_wrap_TickStampBlob()
97 pAuth = &auth; in tcs_wrap_TickStampBlob()
101 … result = TCSP_TickStampBlob_Internal(hContext, hKey, &nonce, &digest, pAuth, &sigSize, &sig, in tcs_wrap_TickStampBlob()
109 if (pAuth) { in tcs_wrap_TickStampBlob()
110 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) { in tcs_wrap_TickStampBlob()
Drpc_sign.c39 TPM_AUTH *pAuth; in tcs_wrap_Sign() local
71 pAuth = NULL; in tcs_wrap_Sign()
76 pAuth = &auth; in tcs_wrap_Sign()
80 result = TCSP_Sign_Internal(hContext, hKey, areaToSignSize, areaToSign, pAuth, &sigSize, in tcs_wrap_Sign()
89 if (pAuth != NULL) { in tcs_wrap_Sign()
Drpc_audit.c151 TPM_AUTH privAuth, nullAuth, *pAuth; in tcs_wrap_GetAuditDigestSigned() local
182 pAuth = &privAuth; in tcs_wrap_GetAuditDigestSigned()
184 pAuth = NULL; in tcs_wrap_GetAuditDigestSigned()
189pAuth, &counterValueSize, &counterValue, in tcs_wrap_GetAuditDigestSigned()
198 if (pAuth) { in tcs_wrap_GetAuditDigestSigned()
199 if (setData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &data->comm)) { in tcs_wrap_GetAuditDigestSigned()
Drpc_seal.c40 TPM_AUTH emptyAuth, pubAuth, *pAuth; in tcs_common_Seal() local
99 pAuth = NULL; in tcs_common_Seal()
105 pAuth = &pubAuth; in tcs_common_Seal()
110 … PCRInfo, inDataSize, inData, pAuth, &outDataSize, &outData); in tcs_common_Seal()
118 if (pAuth != NULL) { in tcs_common_Seal()
119 if (setData(TCSD_PACKET_TYPE_AUTH, 0, pAuth, 0, &data->comm)) { in tcs_common_Seal()
Drpc_admin.c316 TPM_AUTH operatorAuth, nullAuth, *pAuth; in tcs_wrap_SetTempDeactivated2() local
334 pAuth = &operatorAuth; in tcs_wrap_SetTempDeactivated2()
336 pAuth = NULL; in tcs_wrap_SetTempDeactivated2()
340 result = TCSP_SetTempDeactivated2_Internal(hContext, pAuth); in tcs_wrap_SetTempDeactivated2()
346 if (pAuth) { in tcs_wrap_SetTempDeactivated2()
347 if (setData(TCSD_PACKET_TYPE_AUTH, 0, pAuth, 0, &data->comm)) { in tcs_wrap_SetTempDeactivated2()
/netbsd/src/crypto/external/cpl/trousers/dist/src/tcs/
Dtcsi_key.c32 TPM_AUTH * pAuth, /* in, out */ in TCSP_LoadKeyByBlob_Internal() argument
37 … cWrappedKeyBlobSize, rgbWrappedKeyBlob, pAuth, phKeyTCSI, in TCSP_LoadKeyByBlob_Internal()
46 TPM_AUTH * pAuth, /* in, out */ in TCSP_LoadKey2ByBlob_Internal() argument
50 … cWrappedKeyBlobSize, rgbWrappedKeyBlob, pAuth, phKeyTCSI, in TCSP_LoadKey2ByBlob_Internal()
60 TPM_AUTH * pAuth, /* in, out */ in LoadKeyByBlob_Internal() argument
87 if (!pAuth) { in LoadKeyByBlob_Internal()
117 rgbWrappedKeyBlob, pAuth, NULL))) in LoadKeyByBlob_Internal()
129 if ((result = tpm_rsp_parse(ord, txBlob, paramSize, &newSlot, pAuth))) in LoadKeyByBlob_Internal()
143 auth_mgr_release_auth(pAuth, NULL, hContext); in LoadKeyByBlob_Internal()
178 TPM_AUTH * pAuth) /* in, out */ in TCSP_CreateWrapKey_Internal() argument
[all …]
Dtcsi_changeauth.c148 TPM_AUTH * pAuth, /* in, out */ in TCSP_ChangeAuthAsymStart_Internal() argument
175 if (pAuth != NULL) { in TCSP_ChangeAuthAsymStart_Internal()
177 if ((result = auth_mgr_check(hContext, pAuth->AuthHandle))) in TCSP_ChangeAuthAsymStart_Internal()
211 if (pAuth != NULL) { in TCSP_ChangeAuthAsymStart_Internal()
212 LoadBlob_Auth(&offset, txBlob, pAuth); in TCSP_ChangeAuthAsymStart_Internal()
255 if (pAuth != NULL) in TCSP_ChangeAuthAsymStart_Internal()
256 UnloadBlob_Auth(&offset, txBlob, pAuth); in TCSP_ChangeAuthAsymStart_Internal()
261 auth_mgr_release_auth(pAuth, NULL, hContext); in TCSP_ChangeAuthAsymStart_Internal()
Dtcsi_nv.c34 TPM_AUTH* pAuth) /* in, out */ in TCSP_NV_DefineOrReleaseSpace_Internal() argument
45 if (pAuth) { in TCSP_NV_DefineOrReleaseSpace_Internal()
46 if ((result = auth_mgr_check(hContext, &pAuth->AuthHandle))) in TCSP_NV_DefineOrReleaseSpace_Internal()
51 TPM_ENCAUTH_SIZE, encAuth.authdata, pAuth))) in TCSP_NV_DefineOrReleaseSpace_Internal()
61 result = tpm_rsp_parse(TPM_ORD_NV_DefineSpace, txBlob, paramSize, pAuth); in TCSP_NV_DefineOrReleaseSpace_Internal()
65 auth_mgr_release_auth(pAuth, NULL, hContext); in TCSP_NV_DefineOrReleaseSpace_Internal()
Dtcsi_cmk.c109 … TPM_AUTH* pAuth) /* in, out */ in TCSP_CMK_CreateKey_Internal() argument
129 if (pAuth) { in TCSP_CMK_CreateKey_Internal()
130 if ((result = auth_mgr_check(hContext, &pAuth->AuthHandle))) { in TCSP_CMK_CreateKey_Internal()
138 &MigAuthApproval, &MigAuthorityDigest, pAuth))) { in TCSP_CMK_CreateKey_Internal()
150 keyDataSize, prgbKeyData, pAuth); in TCSP_CMK_CreateKey_Internal()
156 auth_mgr_release_auth(pAuth, NULL, hContext); in TCSP_CMK_CreateKey_Internal()
/netbsd/src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/
Drpc_key.c33 TPM_AUTH * pAuth, /* in, out */ in RPC_LoadKeyByBlob_TP() argument
53 if (pAuth != NULL) { in RPC_LoadKeyByBlob_TP()
54 if (setData(TCSD_PACKET_TYPE_AUTH, 4, pAuth, 0, &hte->comm)) in RPC_LoadKeyByBlob_TP()
65 if (pAuth != NULL) { in RPC_LoadKeyByBlob_TP()
66 if (getData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &hte->comm)) in RPC_LoadKeyByBlob_TP()
113 TPM_AUTH * pAuth) /* in, out */ in RPC_CreateWrapKey_TP() argument
133 if (pAuth) { in RPC_CreateWrapKey_TP()
134 if (setData(TCSD_PACKET_TYPE_AUTH, 6, pAuth, 0, &hte->comm)) in RPC_CreateWrapKey_TP()
159 if (pAuth) { in RPC_CreateWrapKey_TP()
160 if (getData(TCSD_PACKET_TYPE_AUTH, 2, pAuth, 0, &hte->comm)) { in RPC_CreateWrapKey_TP()
[all …]
Drpc_cmk.c99 TPM_AUTH *pAuth) /* in, out */ in RPC_CMK_CreateKey_TP() argument
121 if (pAuth) { in RPC_CMK_CreateKey_TP()
122 if (setData(TCSD_PACKET_TYPE_AUTH, 7, pAuth, 0, &hte->comm)) in RPC_CMK_CreateKey_TP()
151 if (pAuth) { in RPC_CMK_CreateKey_TP()
152 if (getData(TCSD_PACKET_TYPE_AUTH, 2, pAuth, 0, &hte->comm)) { in RPC_CMK_CreateKey_TP()
223 TPM_AUTH *pAuth, /* in, out */ in RPC_CMK_CreateBlob_TP() argument
264 if (pAuth) { in RPC_CMK_CreateBlob_TP()
265 if (setData(TCSD_PACKET_TYPE_AUTH, 14, pAuth, 0, &hte->comm)) in RPC_CMK_CreateBlob_TP()
282 if (pAuth) { in RPC_CMK_CreateBlob_TP()
283 if (getData(TCSD_PACKET_TYPE_AUTH, i++, pAuth, 0, &hte->comm)) in RPC_CMK_CreateBlob_TP()
[all …]
/netbsd/src/crypto/external/cpl/trousers/dist/src/tspi/
Dtspi_delegate.c145 TPM_AUTH ownerAuth, *pAuth; in Tspi_TPM_Delegate_CacheOwnerDelegation() local
189 pAuth = &ownerAuth; in Tspi_TPM_Delegate_CacheOwnerDelegation()
191 hPolicy, FALSE, &digest, pAuth))) in Tspi_TPM_Delegate_CacheOwnerDelegation()
194 pAuth = NULL; in Tspi_TPM_Delegate_CacheOwnerDelegation()
197 blob, pAuth))) in Tspi_TPM_Delegate_CacheOwnerDelegation()
200 if (pAuth) { in Tspi_TPM_Delegate_CacheOwnerDelegation()
207 if ((result = obj_policy_validate_auth_oiap(hPolicy, &digest, pAuth))) in Tspi_TPM_Delegate_CacheOwnerDelegation()
228 TPM_AUTH ownerAuth, *pAuth; in Tspi_TPM_Delegate_UpdateVerificationCount() local
277 pAuth = &ownerAuth; in Tspi_TPM_Delegate_UpdateVerificationCount()
279 hPolicy, FALSE, &digest, pAuth))) in Tspi_TPM_Delegate_UpdateVerificationCount()
[all …]
Dtspi_cmk.c222 TPM_AUTH parentAuth, *pAuth; in Tspi_Key_CMKCreateBlob() local
283 pAuth = &parentAuth; in Tspi_Key_CMKCreateBlob()
302 hPolicy, FALSE, &digest, pAuth))) in Tspi_Key_CMKCreateBlob()
305 pAuth = NULL; in Tspi_Key_CMKCreateBlob()
310 tssKey.encSize, tssKey.encData, pAuth, &randomDataSize, &randomData, in Tspi_Key_CMKCreateBlob()
314 if (pAuth) { in Tspi_Key_CMKCreateBlob()
326 if ((result = obj_policy_validate_auth_oiap(hPolicy, &digest, pAuth))) in Tspi_Key_CMKCreateBlob()
395 TPM_AUTH parentAuth, *pAuth; in Tspi_Key_CMKConvertMigration() local
422 pAuth = &parentAuth; in Tspi_Key_CMKConvertMigration()
438 hPolicy, FALSE, &digest, pAuth))) in Tspi_Key_CMKConvertMigration()
[all …]
Dtspi_key.c62 TPM_AUTH *pAuth; in Tspi_Key_LoadKey() local
101 pAuth = &auth; in Tspi_Key_LoadKey()
103 pAuth = NULL; in Tspi_Key_LoadKey()
107 … keyBlob, pAuth, &tcsKey, &keyslot))) { in Tspi_Key_LoadKey()
136 TPM_AUTH *pAuth; in Tspi_Key_GetPubKey() local
167 pAuth = &auth; in Tspi_Key_GetPubKey()
169 pAuth = NULL; in Tspi_Key_GetPubKey()
172 if ((result = TCS_API(tspContext)->GetPubKey(tspContext, tcsKeyHandle, pAuth, in Tspi_Key_GetPubKey()
303 xsap->pAuth))) in Tspi_Key_CreateKey()
311 … &newKey, xsap->pAuth))) in Tspi_Key_CreateKey()
[all …]
Dtspi_tick.c36 TPM_AUTH auth, *pAuth; in Tspi_Hash_TickStampBlob() local
81 pAuth = &auth; in Tspi_Hash_TickStampBlob()
83 pAuth = NULL; in Tspi_Hash_TickStampBlob()
87 … (TPM_DIGEST *)hash, pAuth, &sigLen, &sig, &tcLen, in Tspi_Hash_TickStampBlob()
107 if ((result = obj_policy_validate_auth_oiap(hPolicy, &digest, pAuth))) { in Tspi_Hash_TickStampBlob()
Dtspi_admin.c30 TPM_AUTH auth, *pAuth; in Tspi_TPM_SetStatus() local
125 pAuth = &auth; in Tspi_TPM_SetStatus()
129 … &hashDigest, pAuth))) in Tspi_TPM_SetStatus()
133 pAuth = NULL; in Tspi_TPM_SetStatus()
135 … if ((result = TCS_API(tspContext)->SetTempDeactivated2(tspContext, pAuth))) in Tspi_TPM_SetStatus()
138 if (pAuth) { in Tspi_TPM_SetStatus()
147pAuth))) in Tspi_TPM_SetStatus()
Dtspi_audit.c137 TPM_AUTH keyAuth, *pAuth; in Tspi_TPM_GetAuditDigest() local
185 pAuth = &keyAuth; in Tspi_TPM_GetAuditDigest()
187 … hPolicy, FALSE, &digest, pAuth))) in Tspi_TPM_GetAuditDigest()
191 pAuth = NULL; in Tspi_TPM_GetAuditDigest()
195pAuth, &counterValueSize, in Tspi_TPM_GetAuditDigest()
229 if ((result = obj_policy_validate_auth_oiap(hPolicy, &digest, pAuth))) in Tspi_TPM_GetAuditDigest()
Dtsp_key.c142 TPM_AUTH *pAuth, in Transport_GetPubKey() argument
172 … &pubKeyHash, &handlesLen, &handles, pAuth, NULL, in Transport_GetPubKey()
191 TPM_AUTH * pAuth) /* in, out */ in Transport_CreateWrapKey() argument
232 … &pubKeyHash, &handlesLen, &handles, pAuth, NULL, in Transport_CreateWrapKey()
249 TPM_AUTH* pAuth, in Transport_LoadKeyByBlob() argument
280 … &handles, pAuth, NULL, &decLen, &dec))) in Transport_LoadKeyByBlob()
Dtsp_transport.c31 TPM_AUTH* pAuth, in Transport_LoadKeyByBlob() argument
48 … return TCSP_LoadKeyByBlob(hContext, hTCSParentKey, ulBlobLength, rgbBlobData, pAuth, in Transport_LoadKeyByBlob()
74 … &handleList, pAuth, NULL, &decLen, &dec))) { in Transport_LoadKeyByBlob()
Dtspi_changeauth.c138 TPM_AUTH *pAuth; in Tspi_ChangeAuthAsym()
211 pAuth = &auth; in Tspi_ChangeAuthAsym()
213 pAuth = NULL; in Tspi_ChangeAuthAsym()
217 … tempSize, tempKey, pAuth, in Tspi_ChangeAuthAsym()
357 pAuth = &auth; in Tspi_ChangeAuthAsym()
359 pAuth = NULL; in Tspi_ChangeAuthAsym()
364 … encObjectSize, encObject, pAuth, in Tspi_ChangeAuthAsym()

12