Vadim Bendebury | 71fb284 | 2015-05-29 22:53:49 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 The Chromium OS Authors. All rights reserved. |
| 3 | * Use of this source code is governed by a BSD-style license that can be |
| 4 | * found in the LICENSE file. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __TPM2_ENCRYPTDECRYPT_FP_H |
| 8 | #define __TPM2_ENCRYPTDECRYPT_FP_H |
| 9 | |
| 10 | typedef struct { |
| 11 | TPMI_DH_OBJECT keyHandle; |
| 12 | TPM_ALG_ID mode; |
| 13 | TPM2B_IV ivIn; |
| 14 | TPM2B_DATA inData; |
| 15 | TPMI_YES_NO decrypt; |
| 16 | } EncryptDecrypt_In; |
| 17 | |
| 18 | typedef struct { |
| 19 | TPM2B_IV ivOut; |
| 20 | TPM2B_DATA outData; |
| 21 | } EncryptDecrypt_Out; |
| 22 | |
| 23 | TPM_RC TPM2_EncryptDecrypt( |
| 24 | EncryptDecrypt_In *in, // IN: input parameter list |
| 25 | EncryptDecrypt_Out *out // OUT: output parameter list |
| 26 | ); |
| 27 | |
| 28 | #endif // __TPM2_ENCRYPTDECRYPT_FP_H |