Vadim Bendebury | 7b722a0 | 2015-05-29 22:40:54 -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_TICKET_FP_H |
| 8 | #define __TPM2_TICKET_FP_H |
| 9 | |
| 10 | void TicketComputeCreation( |
| 11 | TPMI_RH_HIERARCHY hierarchy, // IN: hierarchy for ticket |
| 12 | TPM2B_NAME *name, // IN: object name |
| 13 | TPM2B_DIGEST *creation, // IN: creation hash |
| 14 | TPMT_TK_CREATION *ticket // OUT: created ticket |
| 15 | ); |
Vadim Bendebury | ccc99fe | 2015-05-27 10:10:39 -0700 | [diff] [blame] | 16 | void TicketComputeHashCheck( |
| 17 | TPMI_RH_HIERARCHY hierarchy, // IN: hierarchy constant for ticket |
| 18 | TPM_ALG_ID hashAlg, // IN: the hash algorithm used to create |
| 19 | // 'digest' |
| 20 | TPM2B_DIGEST *digest, // IN: input digest |
| 21 | TPMT_TK_HASHCHECK *ticket // OUT: Created ticket |
| 22 | ); |
| 23 | BOOL TicketIsSafe( |
| 24 | TPM2B *buffer |
| 25 | ); |
Vadim Bendebury | 7b722a0 | 2015-05-29 22:40:54 -0700 | [diff] [blame] | 26 | |
| 27 | #endif // __TPM2_TICKET_FP_H |