| /netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ |
| H A D | tcsi_nv.c | 75 TPM_AUTH * privAuth) /* in, out */ in TCSP_NV_WriteValue_Internal() argument 85 if (privAuth) { in TCSP_NV_WriteValue_Internal() 86 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_NV_WriteValue_Internal() 91 ulDataLength, rgbDataToWrite, privAuth))) in TCSP_NV_WriteValue_Internal() 101 result = tpm_rsp_parse(TPM_ORD_NV_WriteValue, txBlob, paramSize, privAuth); in TCSP_NV_WriteValue_Internal() 105 auth_mgr_release_auth(privAuth, NULL, hContext); in TCSP_NV_WriteValue_Internal() 152 TPM_AUTH * privAuth, /* in, out */ in TCSP_NV_ReadValue_Internal() argument 164 if (privAuth) { in TCSP_NV_ReadValue_Internal() 165 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_NV_ReadValue_Internal() 170 *pulDataLength, privAuth))) in TCSP_NV_ReadValue_Internal() [all …]
|
| H A D | tcsi_bind.c | 35 TPM_AUTH * privAuth, /* in, out */ in TCSP_UnBind_Internal() argument 49 if (privAuth != NULL) { in TCSP_UnBind_Internal() 51 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_UnBind_Internal() 62 privAuth, NULL))) in TCSP_UnBind_Internal() 71 privAuth, NULL); in TCSP_UnBind_Internal() 75 auth_mgr_release_auth(privAuth, NULL, hContext); in TCSP_UnBind_Internal()
|
| H A D | tcsi_sign.c | 35 TPM_AUTH * privAuth, /* in, out */ in TCSP_Sign_Internal() argument 50 if (privAuth != NULL) { in TCSP_Sign_Internal() 52 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_Sign_Internal() 62 areaToSign, privAuth))) in TCSP_Sign_Internal() 70 result = tpm_rsp_parse(TPM_ORD_Sign, txBlob, paramSize, sigSize, sig, privAuth, in TCSP_Sign_Internal() 75 auth_mgr_release_auth(privAuth, NULL, hContext); in TCSP_Sign_Internal()
|
| H A D | tcsi_quote.c | 36 TPM_AUTH * privAuth, /* in, out */ in TCSP_Quote_Internal() argument 54 if (privAuth != NULL) { in TCSP_Quote_Internal() 56 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_Quote_Internal() 65 pcrDataSizeIn, pcrDataIn, privAuth))) in TCSP_Quote_Internal() 74 sigSize, sig, privAuth); in TCSP_Quote_Internal() 78 auth_mgr_release_auth(privAuth, NULL, hContext); in TCSP_Quote_Internal()
|
| H A D | tcsi_quote2.c | 37 TPM_AUTH * privAuth, /* in, out */ in TCSP_Quote2_Internal() argument 58 if (privAuth != NULL) { in TCSP_Quote2_Internal() 60 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_Quote2_Internal() 69 pcrDataSizeIn, pcrDataIn, &addVersion, privAuth))) in TCSP_Quote2_Internal() 79 sigSize, sig, privAuth); in TCSP_Quote2_Internal() 83 auth_mgr_release_auth(privAuth, NULL, hContext); in TCSP_Quote2_Internal()
|
| H A D | tcsi_selftest.c | 57 TPM_AUTH * privAuth, /* in, out */ in TCSP_CertifySelfTest_Internal() argument 72 if (privAuth != NULL) { in TCSP_CertifySelfTest_Internal() 74 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_CertifySelfTest_Internal() 84 TPM_NONCE_SIZE, antiReplay.nonce, privAuth, NULL))) in TCSP_CertifySelfTest_Internal() 93 privAuth, NULL); in TCSP_CertifySelfTest_Internal() 97 auth_mgr_release_auth(privAuth, NULL, hContext); in TCSP_CertifySelfTest_Internal()
|
| H A D | tcsi_audit.c | 113 TPM_AUTH *privAuth, /* in/out */ in TCSP_GetAuditDigestSigned_Internal() argument 132 if (privAuth != NULL) in TCSP_GetAuditDigestSigned_Internal() 133 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_GetAuditDigestSigned_Internal() 140 closeAudit, antiReplay.nonce, privAuth))) in TCSP_GetAuditDigestSigned_Internal() 150 sigSize, sig, privAuth); in TCSP_GetAuditDigestSigned_Internal() 156 auth_mgr_release_auth(privAuth, NULL, hContext); in TCSP_GetAuditDigestSigned_Internal()
|
| H A D | tcsi_tick.c | 60 TPM_AUTH* privAuth, in TCSP_TickStampBlob_Internal() argument 75 if (privAuth) { in TCSP_TickStampBlob_Internal() 76 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_TickStampBlob_Internal() 84 digestToStamp, privAuth))) in TCSP_TickStampBlob_Internal() 97 prgbTickCount, pulSignatureLength, prgbSignature, privAuth); in TCSP_TickStampBlob_Internal()
|
| H A D | tcsi_admin.c | 376 TPM_AUTH * privAuth) /* in, out */ in TCSP_SetRedirection_Internal() argument 389 if (privAuth != NULL) { in TCSP_SetRedirection_Internal() 390 if ((result = auth_mgr_check(hContext, &privAuth->AuthHandle))) in TCSP_SetRedirection_Internal() 400 privAuth))) in TCSP_SetRedirection_Internal() 409 result = tpm_rsp_parse(TPM_ORD_SetRedirection, txBlob, paramSize, privAuth); in TCSP_SetRedirection_Internal() 413 auth_mgr_release_auth(privAuth, NULL, hContext); in TCSP_SetRedirection_Internal()
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/ |
| H A D | rpc_nv.c | 79 TPM_AUTH* privAuth) /* in,out */ in RPC_NV_WriteValue_TP() argument 96 if( privAuth) { in RPC_NV_WriteValue_TP() 97 if (setData(TCSD_PACKET_TYPE_AUTH, 5, privAuth, 0, &hte->comm)) in RPC_NV_WriteValue_TP() 108 if( privAuth) { in RPC_NV_WriteValue_TP() 109 if (getData(TCSD_PACKET_TYPE_AUTH, 0, privAuth, 0, &hte->comm)) { in RPC_NV_WriteValue_TP() 174 TPM_AUTH* privAuth, /* in,out */ in RPC_NV_ReadValue_TP() argument 192 if( privAuth) { in RPC_NV_ReadValue_TP() 193 if (setData(TCSD_PACKET_TYPE_AUTH, 4, privAuth, 0, &hte->comm)) in RPC_NV_ReadValue_TP() 207 if( privAuth) { in RPC_NV_ReadValue_TP() 208 if (getData(TCSD_PACKET_TYPE_AUTH, i++, privAuth, 0, &hte->comm)) { in RPC_NV_ReadValue_TP()
|
| H A D | rpc_bind.c | 33 TPM_AUTH * privAuth, /* in, out */ in RPC_UnBind_TP() argument 53 if (privAuth != NULL) { in RPC_UnBind_TP() 54 if (setData(TCSD_PACKET_TYPE_AUTH, 4, privAuth, 0, &hte->comm)) in RPC_UnBind_TP() 65 if (privAuth != NULL) { in RPC_UnBind_TP() 66 if (getData(TCSD_PACKET_TYPE_AUTH, i++, privAuth, 0, &hte->comm)) { in RPC_UnBind_TP()
|
| H A D | rpc_sign.c | 33 TPM_AUTH * privAuth, /* in, out */ in RPC_Sign_TP() argument 53 if (privAuth) { in RPC_Sign_TP() 54 if (setData(TCSD_PACKET_TYPE_AUTH, 4, privAuth, 0, &hte->comm)) in RPC_Sign_TP() 65 if (privAuth) { in RPC_Sign_TP() 66 if (getData(TCSD_PACKET_TYPE_AUTH, i++, privAuth, 0, &hte->comm)) { in RPC_Sign_TP()
|
| H A D | rpc_quote.c | 34 TPM_AUTH * privAuth, /* in, out */ in RPC_Quote_TP() argument 59 if (privAuth) { in RPC_Quote_TP() 60 if (setData(TCSD_PACKET_TYPE_AUTH, 5, privAuth, 0, &hte->comm)) in RPC_Quote_TP() 71 if (privAuth) { in RPC_Quote_TP() 72 if (getData(TCSD_PACKET_TYPE_AUTH, i++, privAuth, 0, &hte->comm)) { in RPC_Quote_TP()
|
| H A D | rpc_selftest.c | 52 TPM_AUTH * privAuth, /* in, out */ in RPC_CertifySelfTest_TP() argument 70 if (privAuth) { in RPC_CertifySelfTest_TP() 71 if (setData(TCSD_PACKET_TYPE_AUTH, 3, privAuth, 0, &hte->comm)) in RPC_CertifySelfTest_TP() 82 if (privAuth) { in RPC_CertifySelfTest_TP() 83 if (getData(TCSD_PACKET_TYPE_AUTH, i++, privAuth, 0, &hte->comm)) { in RPC_CertifySelfTest_TP()
|
| H A D | rpc_quote2.c | 35 TPM_AUTH * privAuth, /* in, out */ in RPC_Quote2_TP() argument 64 if (privAuth) { in RPC_Quote2_TP() 65 if (setData(TCSD_PACKET_TYPE_AUTH, 6, privAuth, 0, &hte->comm)) in RPC_Quote2_TP() 77 if (privAuth) { in RPC_Quote2_TP() 78 if (getData(TCSD_PACKET_TYPE_AUTH, i++, privAuth, 0, &hte->comm)) { in RPC_Quote2_TP()
|
| H A D | rpc_tick.c | 78 TPM_AUTH* privAuth, /* in, out */ in RPC_TickStampBlob_TP() argument 100 if (privAuth) { in RPC_TickStampBlob_TP() 101 if (setData(TCSD_PACKET_TYPE_AUTH, 4, privAuth, 0, &hte->comm)) in RPC_TickStampBlob_TP() 112 if (privAuth) { in RPC_TickStampBlob_TP() 113 if (getData(TCSD_PACKET_TYPE_AUTH, i++, privAuth, 0, &hte->comm)) { in RPC_TickStampBlob_TP()
|
| H A D | rpc_audit.c | 146 TPM_AUTH *privAuth, /* in/out */ in RPC_GetAuditDigestSigned_TP() argument 172 if (privAuth) { in RPC_GetAuditDigestSigned_TP() 173 if (setData(TCSD_PACKET_TYPE_AUTH, 4, privAuth, 0, &hte->comm)) in RPC_GetAuditDigestSigned_TP() 188 if (privAuth) { in RPC_GetAuditDigestSigned_TP() 189 if (getData(TCSD_PACKET_TYPE_AUTH, i++, privAuth, 0, &hte->comm)) { in RPC_GetAuditDigestSigned_TP()
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/ |
| H A D | tspi_sign.c | 30 TPM_AUTH privAuth; in Tspi_Hash_Sign() local 31 TPM_AUTH *pPrivAuth = &privAuth; in Tspi_Hash_Sign() 65 pPrivAuth = &privAuth; in Tspi_Hash_Sign() 68 &privAuth))) in Tspi_Hash_Sign() 89 if ((result = obj_policy_validate_auth_oiap(hPolicy, &digest, &privAuth))) { in Tspi_Hash_Sign()
|
| H A D | tspi_own.c | 30 TPM_AUTH privAuth; in Tspi_TPM_TakeOwnership() local 71 if ((result = secret_TakeOwnership(hPubEK, hTPM, hKeySRK, &privAuth, &encOwnerAuthLength, in Tspi_TPM_TakeOwnership() 79 &privAuth, &newSrkBlobSize, &newSrkBlob))) in Tspi_TPM_TakeOwnership() 94 if ((result = obj_policy_validate_auth_oiap(hOwnerPolicy, &digest, &privAuth))) { in Tspi_TPM_TakeOwnership()
|
| H A D | tspi_quote.c | 32 TPM_AUTH privAuth; in Tspi_TPM_Quote() local 33 TPM_AUTH *pPrivAuth = &privAuth; in Tspi_TPM_Quote() 95 &digest, &privAuth))) { in Tspi_TPM_Quote() 98 pPrivAuth = &privAuth; in Tspi_TPM_Quote() 118 if ((result = obj_policy_validate_auth_oiap(hPolicy, &digest, &privAuth))) { in Tspi_TPM_Quote()
|
| H A D | tspi_quote2.c | 35 TPM_AUTH privAuth; in Tspi_TPM_Quote2() local 36 TPM_AUTH *pPrivAuth = &privAuth; in Tspi_TPM_Quote2() 104 &digest, &privAuth))) { in Tspi_TPM_Quote2() 107 pPrivAuth = &privAuth; in Tspi_TPM_Quote2() 150 if ((result = obj_policy_validate_auth_oiap(hPolicy, &digest, &privAuth))) { in Tspi_TPM_Quote2()
|
| H A D | tspi_bind.c | 145 TPM_AUTH privAuth; in Tspi_Data_Unbind() local 182 &privAuth))) in Tspi_Data_Unbind() 184 pPrivAuth = &privAuth; in Tspi_Data_Unbind() 203 if ((result = obj_policy_validate_auth_oiap(hPolicy, &digest, &privAuth))) in Tspi_Data_Unbind()
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/ |
| H A D | rpc_audit.c | 151 TPM_AUTH privAuth, nullAuth, *pAuth; in tcs_wrap_GetAuditDigestSigned() local 161 memset(&privAuth, 0, sizeof(TPM_AUTH)); in tcs_wrap_GetAuditDigestSigned() 178 if (getData(TCSD_PACKET_TYPE_AUTH, 4, &privAuth, 0, &data->comm)) in tcs_wrap_GetAuditDigestSigned() 181 if (memcmp(&nullAuth, &privAuth, sizeof(TPM_AUTH))) in tcs_wrap_GetAuditDigestSigned() 182 pAuth = &privAuth; in tcs_wrap_GetAuditDigestSigned()
|
| H A D | rpc_bind.c | 38 TPM_AUTH privAuth; in tcs_wrap_UnBind() local 70 result = getData(TCSD_PACKET_TYPE_AUTH, 4, &privAuth, 0, &data->comm); in tcs_wrap_UnBind() 77 pPrivAuth = &privAuth; in tcs_wrap_UnBind()
|
| H A D | rpc_quote.c | 39 TPM_AUTH privAuth; in tcs_wrap_Quote() local 74 result = getData(TCSD_PACKET_TYPE_AUTH, 5, &privAuth, 0, &data->comm); in tcs_wrap_Quote() 81 pPrivAuth = &privAuth; in tcs_wrap_Quote()
|