Lines Matching refs:pValidationData

28 			      TSS_VALIDATION * pValidationData)	/* in, out */  in Tspi_TPM_CreateEndorsementKey()  argument
62 if (pValidationData == NULL) { in Tspi_TPM_CreateEndorsementKey()
69 if (pValidationData->ulExternalDataLength < sizeof(antiReplay.nonce)) in Tspi_TPM_CreateEndorsementKey()
72 memcpy(antiReplay.nonce, pValidationData->rgbExternalData, in Tspi_TPM_CreateEndorsementKey()
81 if (pValidationData == NULL) { in Tspi_TPM_CreateEndorsementKey()
94 pValidationData->rgbData = calloc_tspi(tspContext, newEKSize); in Tspi_TPM_CreateEndorsementKey()
95 if (pValidationData->rgbData == NULL) { in Tspi_TPM_CreateEndorsementKey()
100 pValidationData->ulDataLength = newEKSize; in Tspi_TPM_CreateEndorsementKey()
101 memcpy(pValidationData->rgbData, newEK, newEKSize); in Tspi_TPM_CreateEndorsementKey()
102 memcpy(&pValidationData->rgbData[ekSize], antiReplay.nonce, in Tspi_TPM_CreateEndorsementKey()
105 pValidationData->rgbValidationData = calloc_tspi(tspContext, in Tspi_TPM_CreateEndorsementKey()
107 if (pValidationData->rgbValidationData == NULL) { in Tspi_TPM_CreateEndorsementKey()
109 free_tspi(tspContext, pValidationData->rgbData); in Tspi_TPM_CreateEndorsementKey()
110 pValidationData->rgbData = NULL; in Tspi_TPM_CreateEndorsementKey()
111 pValidationData->ulDataLength = 0; in Tspi_TPM_CreateEndorsementKey()
115 pValidationData->ulValidationDataLength = TCPA_SHA1_160_HASH_LEN; in Tspi_TPM_CreateEndorsementKey()
116 memcpy(pValidationData->rgbValidationData, digest.digest, TCPA_SHA1_160_HASH_LEN); in Tspi_TPM_CreateEndorsementKey()
119 if ((result = obj_rsakey_set_pubkey(hKey, FALSE, newEK)) && pValidationData) { in Tspi_TPM_CreateEndorsementKey()
120 free_tspi(tspContext, pValidationData->rgbValidationData); in Tspi_TPM_CreateEndorsementKey()
121 free_tspi(tspContext, pValidationData->rgbData); in Tspi_TPM_CreateEndorsementKey()
122 pValidationData->rgbData = NULL; in Tspi_TPM_CreateEndorsementKey()
123 pValidationData->ulDataLength = 0; in Tspi_TPM_CreateEndorsementKey()
124 pValidationData->rgbValidationData = NULL; in Tspi_TPM_CreateEndorsementKey()
125 pValidationData->ulValidationDataLength = 0; in Tspi_TPM_CreateEndorsementKey()
137 TSS_VALIDATION *pValidationData, /* in, out */ in Tspi_TPM_GetPubEndorsementKey() argument
163 if (pValidationData == NULL) { in Tspi_TPM_GetPubEndorsementKey()
170 if (pValidationData->ulExternalDataLength < sizeof(antiReplay.nonce)) in Tspi_TPM_GetPubEndorsementKey()
173 memcpy(antiReplay.nonce, pValidationData->rgbExternalData, in Tspi_TPM_GetPubEndorsementKey()
183 if (pValidationData == NULL) { in Tspi_TPM_GetPubEndorsementKey()
216 pValidationData->ulDataLength = pubEKSize + TCPA_SHA1_160_HASH_LEN; in Tspi_TPM_GetPubEndorsementKey()
217 pValidationData->rgbData = calloc_tspi(tspContext, in Tspi_TPM_GetPubEndorsementKey()
218 pValidationData->ulDataLength); in Tspi_TPM_GetPubEndorsementKey()
219 if (pValidationData->rgbData == NULL) { in Tspi_TPM_GetPubEndorsementKey()
221 pValidationData->ulDataLength); in Tspi_TPM_GetPubEndorsementKey()
222 pValidationData->ulDataLength = 0; in Tspi_TPM_GetPubEndorsementKey()
227 memcpy(pValidationData->rgbData, pubEK, pubEKSize); in Tspi_TPM_GetPubEndorsementKey()
228 memcpy(&pValidationData->rgbData[pubEKSize], antiReplay.nonce, in Tspi_TPM_GetPubEndorsementKey()
231 pValidationData->ulValidationDataLength = TCPA_SHA1_160_HASH_LEN; in Tspi_TPM_GetPubEndorsementKey()
232 pValidationData->rgbValidationData = calloc_tspi(tspContext, in Tspi_TPM_GetPubEndorsementKey()
234 if (pValidationData->rgbValidationData == NULL) { in Tspi_TPM_GetPubEndorsementKey()
236 pValidationData->ulValidationDataLength = 0; in Tspi_TPM_GetPubEndorsementKey()
237 pValidationData->ulDataLength = 0; in Tspi_TPM_GetPubEndorsementKey()
238 free_tspi(tspContext,pValidationData->rgbData); in Tspi_TPM_GetPubEndorsementKey()
243 memcpy(pValidationData->rgbValidationData, checkSum.digest, in Tspi_TPM_GetPubEndorsementKey()
264 TSS_VALIDATION * pValidationData,/* in, out */ in Tspi_TPM_CreateRevocableEndorsementKey() argument
322 if (pValidationData == NULL) { in Tspi_TPM_CreateRevocableEndorsementKey()
329 if (pValidationData->ulExternalDataLength < sizeof(antiReplay.nonce)) in Tspi_TPM_CreateRevocableEndorsementKey()
332 memcpy(antiReplay.nonce, pValidationData->rgbExternalData, in Tspi_TPM_CreateRevocableEndorsementKey()
341 if (pValidationData == NULL) { in Tspi_TPM_CreateRevocableEndorsementKey()
354 pValidationData->rgbData = calloc_tspi(tspContext, newEKSize); in Tspi_TPM_CreateRevocableEndorsementKey()
355 if (pValidationData->rgbData == NULL) { in Tspi_TPM_CreateRevocableEndorsementKey()
360 pValidationData->ulDataLength = newEKSize; in Tspi_TPM_CreateRevocableEndorsementKey()
361 memcpy(pValidationData->rgbData, newEK, newEKSize); in Tspi_TPM_CreateRevocableEndorsementKey()
362 memcpy(&pValidationData->rgbData[ekSize], antiReplay.nonce, in Tspi_TPM_CreateRevocableEndorsementKey()
365 pValidationData->rgbValidationData = calloc_tspi(tspContext, in Tspi_TPM_CreateRevocableEndorsementKey()
367 if (pValidationData->rgbValidationData == NULL) { in Tspi_TPM_CreateRevocableEndorsementKey()
369 free_tspi(tspContext, pValidationData->rgbData); in Tspi_TPM_CreateRevocableEndorsementKey()
370 pValidationData->rgbData = NULL; in Tspi_TPM_CreateRevocableEndorsementKey()
371 pValidationData->ulDataLength = 0; in Tspi_TPM_CreateRevocableEndorsementKey()
375 pValidationData->ulValidationDataLength = TPM_SHA1_160_HASH_LEN; in Tspi_TPM_CreateRevocableEndorsementKey()
376 memcpy(pValidationData->rgbValidationData, digest.digest, TPM_SHA1_160_HASH_LEN); in Tspi_TPM_CreateRevocableEndorsementKey()
380 if (pValidationData) { in Tspi_TPM_CreateRevocableEndorsementKey()
381 free_tspi(tspContext, pValidationData->rgbValidationData); in Tspi_TPM_CreateRevocableEndorsementKey()
382 free_tspi(tspContext, pValidationData->rgbData); in Tspi_TPM_CreateRevocableEndorsementKey()
383 pValidationData->rgbData = NULL; in Tspi_TPM_CreateRevocableEndorsementKey()
384 pValidationData->ulDataLength = 0; in Tspi_TPM_CreateRevocableEndorsementKey()
385 pValidationData->rgbValidationData = NULL; in Tspi_TPM_CreateRevocableEndorsementKey()
386 pValidationData->ulValidationDataLength = 0; in Tspi_TPM_CreateRevocableEndorsementKey()
394 if (pValidationData) { in Tspi_TPM_CreateRevocableEndorsementKey()
395 free_tspi(tspContext, pValidationData->rgbValidationData); in Tspi_TPM_CreateRevocableEndorsementKey()
396 free_tspi(tspContext, pValidationData->rgbData); in Tspi_TPM_CreateRevocableEndorsementKey()
397 pValidationData->rgbData = NULL; in Tspi_TPM_CreateRevocableEndorsementKey()
398 pValidationData->ulDataLength = 0; in Tspi_TPM_CreateRevocableEndorsementKey()
399 pValidationData->rgbValidationData = NULL; in Tspi_TPM_CreateRevocableEndorsementKey()
400 pValidationData->ulValidationDataLength = 0; in Tspi_TPM_CreateRevocableEndorsementKey()