Vadim Bendebury | ccc99fe | 2015-05-27 10:10:39 -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_HASH_FP_H |
| 8 | #define __TPM2_HASH_FP_H |
| 9 | |
| 10 | typedef struct { |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 11 | TPMI_ALG_HASH hashAlg; |
| 12 | TPMI_RH_HIERARCHY hierarchy; |
| 13 | TPM2B_DATA data; |
Vadim Bendebury | ccc99fe | 2015-05-27 10:10:39 -0700 | [diff] [blame] | 14 | } Hash_In; |
| 15 | |
| 16 | typedef struct { |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 17 | TPM2B_DIGEST outHash; |
| 18 | TPMT_TK_HASHCHECK validation; |
Vadim Bendebury | ccc99fe | 2015-05-27 10:10:39 -0700 | [diff] [blame] | 19 | } Hash_Out; |
| 20 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 21 | TPM_RC TPM2_Hash(Hash_In *in, // IN: input parameter list |
| 22 | Hash_Out *out // OUT: output parameter list |
Vadim Bendebury | ccc99fe | 2015-05-27 10:10:39 -0700 | [diff] [blame] | 23 | ); |
| 24 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame^] | 25 | #endif // __TPM2_HASH_FP_H |