blob: 4cdfe49d2013a2763a8966a9deba148dde8ecc43 [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
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -07009void ComputeContextIntegrity(TPMS_CONTEXT *contextBlob, // IN: context blob
10 TPM2B_DIGEST *integrity // OUT: integrity
Vadim Bendebury3743ac12015-05-29 22:44:14 -070011 );
12void ComputeContextProtectionKey(
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070013 TPMS_CONTEXT *contextBlob, // IN: context blob
14 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key
15 TPM2B_IV *iv // OUT: the IV.
16 );
Vadim Bendebury3743ac12015-05-29 22:44:14 -070017void SequenceDataImportExport(
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070018 OBJECT *object, // IN: the object containing the sequence data
19 OBJECT *exportObject, // IN/OUT: the object structure that will get the
20 // exported hash state
21 IMPORT_EXPORT direction);
Vadim Bendebury3743ac12015-05-29 22:44:14 -070022
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070023#endif // __TPM2_CONTEXT_SPT_FP_H