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