OLD | NEW |
(Empty) | |
| 1 /* Software-based Mobile Trusted Module (MTM) Emulator |
| 2 * Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net> |
| 3 * |
| 4 * This module is free software; you can redistribute it and/or modify |
| 5 * it under the terms of the GNU General Public License as published |
| 6 * by the Free Software Foundation; either version 2 of the License, |
| 7 * or (at your option) any later version. |
| 8 * |
| 9 * This module is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * $Id$ |
| 15 */ |
| 16 |
| 17 #ifndef _MTM_MARSHALLING_H_ |
| 18 #define _MTM_MARSHALLING_H_ |
| 19 |
| 20 #include "mtm_structures.h" |
| 21 #include "tpm/tpm_marshalling.h" |
| 22 |
| 23 #define tpm_marshal_TPM_VERIFICATION_KEY_ID tpm_marshal_UINT32 |
| 24 #define tpm_unmarshal_TPM_VERIFICATION_KEY_ID tpm_unmarshal_UINT32 |
| 25 #define tpm_marshal_TPM_VERIFICATION_KEY_HANDLE tpm_marshal_UINT32 |
| 26 #define tpm_unmarshal_TPM_VERIFICATION_KEY_HANDLE tpm_unmarshal_UINT32 |
| 27 |
| 28 int tpm_marshal_MTM_PERMANENT_DATA(BYTE **ptr, UINT32 *length, MTM_PERMANENT_DAT
A *v); |
| 29 int tpm_unmarshal_MTM_PERMANENT_DATA(BYTE **ptr, UINT32 *length, MTM_PERMANENT_D
ATA *v); |
| 30 |
| 31 int tpm_marshal_MTM_STANY_FLAGS(BYTE **ptr, UINT32 *length, MTM_STANY_FLAGS *v); |
| 32 int tpm_unmarshal_MTM_STANY_FLAGS(BYTE **ptr, UINT32 *length, MTM_STANY_FLAGS *v
); |
| 33 |
| 34 int tpm_marshal_MTM_COUNTER_REFERENCE(BYTE **ptr, UINT32 *length, MTM_COUNTER_RE
FERENCE *v); |
| 35 int tpm_unmarshal_MTM_COUNTER_REFERENCE(BYTE **ptr, UINT32 *length, MTM_COUNTER_
REFERENCE *v); |
| 36 |
| 37 int tpm_marshal_TPM_RIM_CERTIFICATE(BYTE **ptr, UINT32 *length, TPM_RIM_CERTIFIC
ATE *v); |
| 38 int tpm_unmarshal_TPM_RIM_CERTIFICATE(BYTE **ptr, UINT32 *length, TPM_RIM_CERTIF
ICATE *v); |
| 39 |
| 40 int tpm_marshal_TPM_VERIFICATION_KEY(BYTE **ptr, UINT32 *length, TPM_VERIFICATIO
N_KEY *v); |
| 41 int tpm_unmarshal_TPM_VERIFICATION_KEY(BYTE **ptr, UINT32 *length, TPM_VERIFICAT
ION_KEY *v); |
| 42 |
| 43 int tpm_marshal_MTM_KEY_DATA(BYTE **ptr, UINT32 *length, MTM_KEY_DATA *v); |
| 44 int tpm_unmarshal_MTM_KEY_DATA(BYTE **ptr, UINT32 *length, MTM_KEY_DATA *v); |
| 45 |
| 46 int tpm_marshal_MTM_DATA(BYTE **ptr, UINT32 *length, MTM_DATA *v); |
| 47 int tpm_unmarshal_MTM_DATA(BYTE **ptr, UINT32 *length, MTM_DATA *v); |
| 48 |
| 49 #endif /* _MTM_MARSHALLING_H_ */ |
| 50 |
OLD | NEW |