OLD | NEW |
1 /* | 1 /* |
2 * The Initial Developer of the Original Code is Intel Corporation. | 2 * The Initial Developer of the Original Code is Intel Corporation. |
3 * Portions created by Intel Corporation are Copyright (C) 2007 Intel Corporatio
n. | 3 * Portions created by Intel Corporation are Copyright (C) 2007 Intel Corporatio
n. |
4 * All Rights Reserved. | 4 * All Rights Reserved. |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the Common Public License as published by | 7 * it under the terms of the Common Public License as published by |
8 * IBM Corporation; either version 1 of the License, or (at your option) | 8 * IBM Corporation; either version 1 of the License, or (at your option) |
9 * any later version. | 9 * any later version. |
10 * | 10 * |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 } | 210 } |
211 free_tspi(tspContext, pResult); | 211 free_tspi(tspContext, pResult); |
212 | 212 |
213 if (!defined_index) { | 213 if (!defined_index) { |
214 result = TSPERR(TSS_E_NV_AREA_NOT_EXIST); | 214 result = TSPERR(TSS_E_NV_AREA_NOT_EXIST); |
215 return result; | 215 return result; |
216 } | 216 } |
217 | 217 |
218 nv_data_public.tag = TPM_TAG_NV_DATA_PUBLIC; | 218 nv_data_public.tag = TPM_TAG_NV_DATA_PUBLIC; |
219 | 219 |
220 » if ((result = obj_nvstore_create_pcrshortinfo(hNvstore, (TSS_HPCRS)0, &p
PCR_len, &pPCR))) | 220 » if ((result = obj_nvstore_create_pcrshortinfo(hNvstore, NULL_HPCRS, &pPC
R_len, &pPCR))) |
221 return result; | 221 return result; |
222 | 222 |
223 NVPublic_DataSize = 0; | 223 NVPublic_DataSize = 0; |
224 Trspi_LoadBlob_UINT16(&NVPublic_DataSize, TPM_TAG_NV_DATA_PUBLIC, NVPubl
icData); | 224 Trspi_LoadBlob_UINT16(&NVPublic_DataSize, TPM_TAG_NV_DATA_PUBLIC, NVPubl
icData); |
225 Trspi_LoadBlob_UINT32(&NVPublic_DataSize, nv_data_public.nvIndex, NVPubl
icData); | 225 Trspi_LoadBlob_UINT32(&NVPublic_DataSize, nv_data_public.nvIndex, NVPubl
icData); |
226 /* load the read pcr short info */ | 226 /* load the read pcr short info */ |
227 Trspi_LoadBlob(&NVPublic_DataSize, pPCR_len, NVPublicData, pPCR); | 227 Trspi_LoadBlob(&NVPublic_DataSize, pPCR_len, NVPublicData, pPCR); |
228 /* load the write pcr short info */ | 228 /* load the write pcr short info */ |
229 Trspi_LoadBlob(&NVPublic_DataSize, pPCR_len, NVPublicData, pPCR); | 229 Trspi_LoadBlob(&NVPublic_DataSize, pPCR_len, NVPublicData, pPCR); |
230 Trspi_LoadBlob_UINT16(&NVPublic_DataSize, TPM_TAG_NV_ATTRIBUTES, NVPubli
cData); | 230 Trspi_LoadBlob_UINT16(&NVPublic_DataSize, TPM_TAG_NV_ATTRIBUTES, NVPubli
cData); |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 } | 515 } |
516 } else { | 516 } else { |
517 if ((result = TCS_API(tspContext)->NV_ReadValue(tspContext, nv_d
ata_public.nvIndex, | 517 if ((result = TCS_API(tspContext)->NV_ReadValue(tspContext, nv_d
ata_public.nvIndex, |
518 offset, ulDataLe
ngth, NULL, | 518 offset, ulDataLe
ngth, NULL, |
519 rgbDataRead))) | 519 rgbDataRead))) |
520 return result; | 520 return result; |
521 } | 521 } |
522 | 522 |
523 return result; | 523 return result; |
524 } | 524 } |
OLD | NEW |