OLD | NEW |
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 * 2005, 2006 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_daa.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/sha1.h" | 23 #include "crypto/sha1.h" |
25 #include "crypto/rsa.h" | 24 #include "crypto/rsa.h" |
26 #include "crypto/rc4.h" | 25 #include "crypto/rc4.h" |
(...skipping 3647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3674 memset(session, 0, sizeof(TPM_DAA_SESSION_DATA)); | 3673 memset(session, 0, sizeof(TPM_DAA_SESSION_DATA)); |
3675 return TPM_NOSPACE; | 3674 return TPM_NOSPACE; |
3676 } | 3675 } |
3677 /* Return TPM_SUCCESS */ | 3676 /* Return TPM_SUCCESS */ |
3678 return TPM_SUCCESS; | 3677 return TPM_SUCCESS; |
3679 } | 3678 } |
3680 default: | 3679 default: |
3681 return TPM_DAA_STAGE; | 3680 return TPM_DAA_STAGE; |
3682 } | 3681 } |
3683 } | 3682 } |
OLD | NEW |