Vadim Bendebury | 3743ac1 | 2015-05-29 22:44:14 -0700 | [diff] [blame] | 1 | /* |
| 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 Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 9 | void ComputeContextIntegrity(TPMS_CONTEXT *contextBlob, // IN: context blob |
| 10 | TPM2B_DIGEST *integrity // OUT: integrity |
Vadim Bendebury | 3743ac1 | 2015-05-29 22:44:14 -0700 | [diff] [blame] | 11 | ); |
| 12 | void ComputeContextProtectionKey( |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 13 | TPMS_CONTEXT *contextBlob, // IN: context blob |
| 14 | TPM2B_SYM_KEY *symKey, // OUT: the symmetric key |
| 15 | TPM2B_IV *iv // OUT: the IV. |
| 16 | ); |
Vadim Bendebury | 3743ac1 | 2015-05-29 22:44:14 -0700 | [diff] [blame] | 17 | void SequenceDataImportExport( |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 18 | 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 Bendebury | 3743ac1 | 2015-05-29 22:44:14 -0700 | [diff] [blame] | 22 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 23 | #endif // __TPM2_CONTEXT_SPT_FP_H |