blob: 84d0bc84f822035f5cebb0b7d085fa22ad7771f2 [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 {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070011 TPMI_ALG_HASH hashAlg;
12 TPMI_RH_HIERARCHY hierarchy;
13 TPM2B_DATA data;
Vadim Bendeburyccc99fe2015-05-27 10:10:39 -070014} Hash_In;
15
16typedef struct {
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070017 TPM2B_DIGEST outHash;
18 TPMT_TK_HASHCHECK validation;
Vadim Bendeburyccc99fe2015-05-27 10:10:39 -070019} Hash_Out;
20
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070021TPM_RC TPM2_Hash(Hash_In *in, // IN: input parameter list
22 Hash_Out *out // OUT: output parameter list
Vadim Bendeburyccc99fe2015-05-27 10:10:39 -070023 );
24
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070025#endif // __TPM2_HASH_FP_H