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

Side by Side Diff: tpm/tpm_deprecated.c

Issue 660204: Upgrade to tpm-emulator version 0.7. (Closed)
Patch Set: Created 10 years, 10 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_delegation.c ('k') | tpm/tpm_emulator.h » ('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, 3 * 2005-2008 Heiko Stamer <stamer@gaos.org>
4 * 2007, 2008 Heiko Stamer <stamer@gaos.org>
5 * 4 *
6 * This module is free software; you can redistribute it and/or modify 5 * 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 6 * it under the terms of the GNU General Public License as published
8 * by the Free Software Foundation; either version 2 of the License, 7 * by the Free Software Foundation; either version 2 of the License,
9 * or (at your option) any later version. 8 * or (at your option) any later version.
10 * 9 *
11 * This module is distributed in the hope that it will be useful, 10 * This module is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details. 13 * GNU General Public License for more details.
15 * 14 *
16 * $Id$ 15 * $Id: tpm_deprecated.c 364 2010-02-11 10:24:45Z mast $
17 */ 16 */
18 17
19 #include "tpm_emulator.h" 18 #include "tpm_emulator.h"
20 #include "tpm_commands.h" 19 #include "tpm_commands.h"
21 #include "tpm_data.h" 20 #include "tpm_data.h"
22 #include "tpm_handles.h" 21 #include "tpm_handles.h"
23 #include "tpm_marshalling.h" 22 #include "tpm_marshalling.h"
24 #include "crypto/rsa.h" 23 #include "crypto/rsa.h"
25 #include "crypto/sha1.h" 24 #include "crypto/sha1.h"
26 #include "crypto/hmac.h" 25 #include "crypto/hmac.h"
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 { 531 {
533 TPM_RESULT res; 532 TPM_RESULT res;
534 info("TPM_OwnerReadPubek()"); 533 info("TPM_OwnerReadPubek()");
535 /* verify authorization */ 534 /* verify authorization */
536 res = tpm_verify_auth(auth1, tpmData.permanent.data.ownerAuth, TPM_KH_OWNER); 535 res = tpm_verify_auth(auth1, tpmData.permanent.data.ownerAuth, TPM_KH_OWNER);
537 if (res != TPM_SUCCESS) return res; 536 if (res != TPM_SUCCESS) return res;
538 res = tpm_get_pubek(pubEndorsementKey); 537 res = tpm_get_pubek(pubEndorsementKey);
539 if (res != TPM_SUCCESS) return res; 538 if (res != TPM_SUCCESS) return res;
540 return TPM_SUCCESS; 539 return TPM_SUCCESS;
541 } 540 }
OLDNEW
« no previous file with comments | « tpm/tpm_delegation.c ('k') | tpm/tpm_emulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698