blob: dba434e2dedbd44c366db89da6aa24bffbea8b2a [file] [log] [blame]
Vadim Bendeburyef5c3332015-05-29 23:01:20 -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_GETTIME_FP_H
8#define __TPM2_GETTIME_FP_H
9
10typedef struct {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070011 TPMI_DH_OBJECT signHandle; // IN: handle of signing object
12 TPMT_SIG_SCHEME inScheme; // IN/OUT: scheme to be used for signing
13 TPM2B_DATA qualifyingData; // IN: qualifying data
Vadim Bendeburyef5c3332015-05-29 23:01:20 -070014} GetTime_In;
15
16typedef struct {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070017 TPM2B_ATTEST timeInfo;
18 TPMT_SIGNATURE signature;
Vadim Bendeburyef5c3332015-05-29 23:01:20 -070019} GetTime_Out;
20
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070021TPM_RC TPM2_GetTime(GetTime_In *in, // IN: input parameter list
22 GetTime_Out *out // OUT: output parameter list
Vadim Bendeburyef5c3332015-05-29 23:01:20 -070023 );
24
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070025#endif // __TPM2_GETTIME_FP_H