blob: d3659bc43d8b661c79880793b14912ae6124fa30 [file] [log] [blame]
Vadim Bendebury3743ac12015-05-29 22:44:14 -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_CONTEXT_SPT_FP_H
8#define __TPM2_CONTEXT_SPT_FP_H
9void ComputeContextIntegrity(
10 TPMS_CONTEXT *contextBlob, // IN: context blob
11 TPM2B_DIGEST *integrity // OUT: integrity
12 );
13void ComputeContextProtectionKey(
14 TPMS_CONTEXT *contextBlob, // IN: context blob
15 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key
16 TPM2B_IV *iv // OUT: the IV.
17 );
18void SequenceDataImportExport(
19 OBJECT *object, // IN: the object containing the sequence data
20 OBJECT *exportObject, // IN/OUT: the object structure that will get
21 // the exported hash state
22 IMPORT_EXPORT direction
23 );
24
25#endif // __TPM2_CONTEXT_SPT_FP_H