blob: 9c8cdec396cb27b8c9f1a49bbbe7e17ca474ca66 [file] [log] [blame]
Vadim Bendebury7b722a02015-05-29 22:40:54 -07001/*
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
10void 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 Bendeburyccc99fe2015-05-27 10:10:39 -070016void 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 );
23BOOL TicketIsSafe(
24 TPM2B *buffer
25 );
Vadim Bendebury7b722a02015-05-29 22:40:54 -070026
27#endif // __TPM2_TICKET_FP_H