| 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_identity.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 "crypto/sha1.h" | 21 #include "crypto/sha1.h" |
| 23 #include "crypto/rsa.h" | 22 #include "crypto/rsa.h" |
| 24 #include "tpm_handles.h" | 23 #include "tpm_handles.h" |
| 25 #include "tpm_marshalling.h" | 24 #include "tpm_marshalling.h" |
| 26 | 25 |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 symmetricKey->algId = K1->algId; | 556 symmetricKey->algId = K1->algId; |
| 558 symmetricKey->encScheme = K1->encScheme; | 557 symmetricKey->encScheme = K1->encScheme; |
| 559 symmetricKey->size = K1->size; | 558 symmetricKey->size = K1->size; |
| 560 memcpy(symmetricKey->data, K1->data, K1->size); | 559 memcpy(symmetricKey->data, K1->data, K1->size); |
| 561 } | 560 } |
| 562 tpm_free(pubKey.pubKey.key); | 561 tpm_free(pubKey.pubKey.key); |
| 563 tpm_free(B1); | 562 tpm_free(B1); |
| 564 return TPM_SUCCESS; | 563 return TPM_SUCCESS; |
| 565 } | 564 } |
| 566 | 565 |
| OLD | NEW |