Vadim Bendebury | 2537154 | 2015-06-01 17:25:07 -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_RSA_DECRYPT_FP_H_ |
| 8 | #define __TPM2_RSA_DECRYPT_FP_H_ |
| 9 | |
| 10 | typedef struct { |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 11 | TPM_HANDLE keyHandle; |
| 12 | TPM2B_DATA cipherText; |
| 13 | TPM2B_DATA label; |
| 14 | TPMT_RSA_DECRYPT inScheme; |
Vadim Bendebury | 2537154 | 2015-06-01 17:25:07 -0700 | [diff] [blame] | 15 | } RSA_Decrypt_In; |
| 16 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 17 | typedef struct { TPM2B_DATA message; } RSA_Decrypt_Out; |
Vadim Bendebury | 2537154 | 2015-06-01 17:25:07 -0700 | [diff] [blame] | 18 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 19 | TPM_RC TPM2_RSA_Decrypt(RSA_Decrypt_In *in, // IN: input parameter list |
| 20 | RSA_Decrypt_Out *out // OUT: output parameter list |
| 21 | ); |
Vadim Bendebury | 2537154 | 2015-06-01 17:25:07 -0700 | [diff] [blame] | 22 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 23 | #endif // __TPM2_RSA_DECRYPT_FP_H_ |