~ubuntu-branches/ubuntu/utopic/trousers/utopic

« back to all changes in this revision

Viewing changes to src/tspi/tspi_ek.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2013-08-20 18:01:47 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20130820180147-ucz33jh8z2qx47ya
Tags: 0.3.11.2-1
* Imported Upstream version 0.3.11.2
* Upstream license changed to BSD
* Example tools are not shipped anymore
* Remove 05-gcc47.patch, not needed anymore
* Updated symbols file

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        TCPA_PUBKEY pubEK;
42
42
        Trspi_HashCtx hashCtx;
43
43
 
44
 
        memset(&pubEK, 0, sizeof(TCPA_PUBKEY));
45
 
        memset(&dummyKey, 0, sizeof(TSS_KEY));
 
44
        __tspi_memset(&pubEK, 0, sizeof(TCPA_PUBKEY));
 
45
        __tspi_memset(&dummyKey, 0, sizeof(TSS_KEY));
46
46
 
47
47
        if ((result = obj_tpm_get_tsp_context(hTPM, &tspContext)))
48
48
                return result;
149
149
        TCPA_PUBKEY pubKey;
150
150
        Trspi_HashCtx hashCtx;
151
151
 
152
 
        memset(&pubKey, 0, sizeof(TCPA_PUBKEY));
 
152
        __tspi_memset(&pubKey, 0, sizeof(TCPA_PUBKEY));
153
153
 
154
154
        if (phEndorsementPubKey == NULL)
155
155
                return TSPERR(TSS_E_BAD_PARAMETER);
194
194
                         * Atmel chips specifically.
195
195
                         */
196
196
                        offset = 0;
197
 
                        memset(&pubKey, 0, sizeof(TCPA_PUBKEY));
 
197
                        __tspi_memset(&pubKey, 0, sizeof(TCPA_PUBKEY));
198
198
                        if ((result = Trspi_UnloadBlob_PUBKEY(&offset, pubEK, &pubKey)))
199
199
                                goto done;
200
200
 
281
281
        TPM_PUBKEY pubEK;
282
282
        Trspi_HashCtx hashCtx;
283
283
 
284
 
        memset(&pubEK, 0, sizeof(TPM_PUBKEY));
285
 
        memset(&dummyKey, 0, sizeof(TSS_KEY));
286
 
        memset(&eKResetAuth, 0xff, sizeof(eKResetAuth));
 
284
        __tspi_memset(&pubEK, 0, sizeof(TPM_PUBKEY));
 
285
        __tspi_memset(&dummyKey, 0, sizeof(TSS_KEY));
 
286
        __tspi_memset(&eKResetAuth, 0xff, sizeof(eKResetAuth));
287
287
 
288
288
        if (!pulEkResetDataLength || !prgbEkResetData)
289
289
                return TSPERR(TSS_E_BAD_PARAMETER);