Lines Matching refs:hte

29 RPC_CreateEndorsementKeyPair_TP(struct host_table_entry *hte,
40 initData(&hte->comm, 4);
41 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATEENDORSEMENTKEYPAIR;
42 LogDebugFn("TCS Context: 0x%x", hte->tcsContext);
44 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
46 if (setData(TCSD_PACKET_TYPE_NONCE, 1, &antiReplay, 0, &hte->comm))
48 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &endorsementKeyInfoSize, 0, &hte->comm))
50 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, endorsementKeyInfo, endorsementKeyInfoSize, &hte->comm))
53 result = sendTCSDPacket(hte);
56 result = hte->comm.hdr.u.result;
59 if (getData(TCSD_PACKET_TYPE_UINT32, 0, endorsementKeySize, 0, &hte->comm)) {
70 if (getData(TCSD_PACKET_TYPE_PBYTE, 1, *endorsementKey, *endorsementKeySize, &hte->comm)) {
75 if (getData(TCSD_PACKET_TYPE_DIGEST, 2, &(checksum->digest), 0, &hte->comm)) {
86 RPC_ReadPubek_TP(struct host_table_entry *hte,
94 initData(&hte->comm, 2);
95 hte->comm.hdr.u.ordinal = TCSD_ORD_READPUBEK;
96 LogDebugFn("TCS Context: 0x%x", hte->tcsContext);
97 /* &hte->comm.numParms = 2; */
99 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
101 if (setData(TCSD_PACKET_TYPE_NONCE, 1, &antiReplay, 0, &hte->comm))
104 result = sendTCSDPacket(hte);
107 result = hte->comm.hdr.u.result;
110 if (getData(TCSD_PACKET_TYPE_UINT32, 0, pubEndorsementKeySize, 0, &hte->comm)) {
121 if (getData(TCSD_PACKET_TYPE_PBYTE, 1, *pubEndorsementKey, *pubEndorsementKeySize, &hte->comm)) {
126 if (getData(TCSD_PACKET_TYPE_DIGEST, 2, &(checksum->digest), 0, &hte->comm)) {
136 RPC_DisablePubekRead_TP(struct host_table_entry *hte,
141 initData(&hte->comm, 2);
142 hte->comm.hdr.u.ordinal = TCSD_ORD_DISABLEPUBEKREAD;
143 LogDebugFn("TCS Context: 0x%x", hte->tcsContext);
145 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
148 if (setData(TCSD_PACKET_TYPE_AUTH, 1, ownerAuth, 0, &hte->comm))
151 result = sendTCSDPacket(hte);
154 result = hte->comm.hdr.u.result;
157 if (getData(TCSD_PACKET_TYPE_AUTH, 0, ownerAuth, 0, &hte->comm))
165 RPC_OwnerReadPubek_TP(struct host_table_entry *hte,
173 initData(&hte->comm, 2);
174 hte->comm.hdr.u.ordinal = TCSD_ORD_OWNERREADPUBEK;
175 LogDebugFn("TCS Context: 0x%x", hte->tcsContext);
177 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
179 if (setData(TCSD_PACKET_TYPE_AUTH, 1, ownerAuth, 0, &hte->comm))
182 result = sendTCSDPacket(hte);
185 result = hte->comm.hdr.u.result;
188 if (getData(TCSD_PACKET_TYPE_AUTH, 0, ownerAuth, 0, &hte->comm)){
193 if (getData(TCSD_PACKET_TYPE_UINT32, 1, pubEndorsementKeySize, 0, &hte->comm)) {
205 if (getData(TCSD_PACKET_TYPE_PBYTE, 2, *pubEndorsementKey, *pubEndorsementKeySize, &hte->comm)) {
218 RPC_CreateRevocableEndorsementKeyPair_TP(struct host_table_entry *hte,
230 initData(&hte->comm, 6);
231 hte->comm.hdr.u.ordinal = TCSD_ORD_CREATEREVOCABLEENDORSEMENTKEYPAIR;
232 LogDebugFn("TCS Context: 0x%x", hte->tcsContext);
234 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
236 if (setData(TCSD_PACKET_TYPE_NONCE, 1, &antiReplay, 0, &hte->comm))
238 if (setData(TCSD_PACKET_TYPE_UINT32, 2, &endorsementKeyInfoSize, 0, &hte->comm))
240 if (setData(TCSD_PACKET_TYPE_PBYTE, 3, endorsementKeyInfo, endorsementKeyInfoSize, &hte->comm))
242 if (setData(TCSD_PACKET_TYPE_BOOL, 4, &genResetAuth, 0, &hte->comm))
244 if (setData(TCSD_PACKET_TYPE_DIGEST, 5, eKResetAuth, 0, &hte->comm))
247 result = sendTCSDPacket(hte);
250 result = hte->comm.hdr.u.result;
253 if (getData(TCSD_PACKET_TYPE_DIGEST, 0, &(eKResetAuth->digest), 0, &hte->comm)) {
257 if (getData(TCSD_PACKET_TYPE_UINT32, 1, endorsementKeySize, 0, &hte->comm)) {
267 if (getData(TCSD_PACKET_TYPE_PBYTE, 2, *endorsementKey, *endorsementKeySize, &hte->comm)) {
272 if (getData(TCSD_PACKET_TYPE_DIGEST, 3, &(checksum->digest), 0, &hte->comm)) {
283 RPC_RevokeEndorsementKeyPair_TP(struct host_table_entry *hte,
288 initData(&hte->comm, 2);
289 hte->comm.hdr.u.ordinal = TCSD_ORD_REVOKEENDORSEMENTKEYPAIR;
290 LogDebugFn("TCS Context: 0x%x", hte->tcsContext);
292 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &hte->tcsContext, 0, &hte->comm))
294 if (setData(TCSD_PACKET_TYPE_DIGEST, 1, EKResetAuth, 0, &hte->comm))
297 result = sendTCSDPacket(hte);
300 result = hte->comm.hdr.u.result;