Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: tpm/tpm_integrity.c

Issue 660204: Upgrade to tpm-emulator version 0.7. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tpm/tpm_identity.c ('k') | tpm/tpm_maintenance.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Software-Based Trusted Platform Module (TPM) Emulator for Linux 1 /* Software-based Trusted Platform Module (TPM) Emulator
2 * Copyright (C) 2004 Mario Strasser <mast@gmx.net>, 2 * Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net>
3 * Swiss Federal Institute of Technology (ETH) Zurich,
4 * 2006, 2007 Heiko Stamer <stamer@gaos.org>
5 * 3 *
6 * This module is free software; you can redistribute it and/or modify 4 * This module is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published 5 * it under the terms of the GNU General Public License as published
8 * by the Free Software Foundation; either version 2 of the License, 6 * by the Free Software Foundation; either version 2 of the License,
9 * or (at your option) any later version. 7 * or (at your option) any later version.
10 * 8 *
11 * This module is distributed in the hope that it will be useful, 9 * This module is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details. 12 * GNU General Public License for more details.
15 * 13 *
16 * $Id$ 14 * $Id: tpm_integrity.c 364 2010-02-11 10:24:45Z mast $
17 */ 15 */
18 16
19 #include "tpm_emulator.h" 17 #include "tpm_emulator.h"
20 #include "tpm_commands.h" 18 #include "tpm_commands.h"
21 #include "tpm_data.h" 19 #include "tpm_data.h"
22 #include "crypto/sha1.h" 20 #include "crypto/sha1.h"
23 #include "crypto/rsa.h" 21 #include "crypto/rsa.h"
24 #include "tpm_handles.h" 22 #include "tpm_handles.h"
25 #include "tpm_marshalling.h" 23 #include "tpm_marshalling.h"
26 24
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 tpm_sha1_update(&ctx, buf, size); 306 tpm_sha1_update(&ctx, buf, size);
309 tpm_free(buf); 307 tpm_free(buf);
310 if (addVersion == TRUE) { 308 if (addVersion == TRUE) {
311 tpm_sha1_update(&ctx, resp, respSize); 309 tpm_sha1_update(&ctx, resp, respSize);
312 tpm_free(resp); 310 tpm_free(resp);
313 } 311 }
314 tpm_sha1_final(&ctx, digest.digest); 312 tpm_sha1_final(&ctx, digest.digest);
315 /* 11. Return the signature in sig */ 313 /* 11. Return the signature in sig */
316 return tpm_sign(key, auth1, FALSE, digest.digest, sizeof(TPM_DIGEST), sig, sig Size); 314 return tpm_sign(key, auth1, FALSE, digest.digest, sizeof(TPM_DIGEST), sig, sig Size);
317 } 315 }
OLDNEW
« no previous file with comments | « tpm/tpm_identity.c ('k') | tpm/tpm_maintenance.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698