Daisuke Nojiri | 5d302c7 | 2015-04-09 08:18:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2015 The Chromium OS Authors. All rights reserved. |
| 2 | * Use of this source code is governed by a BSD-style license that can be |
| 3 | * found in the LICENSE file. |
| 4 | * |
| 5 | * Functions for querying, manipulating and locking rollback indices |
| 6 | * stored in the TPM NVRAM. |
| 7 | */ |
| 8 | |
| 9 | #include <antirollback.h> |
| 10 | #include <stdlib.h> |
| 11 | #include <vb2_api.h> |
| 12 | |
| 13 | uint32_t tpm_extend_pcr(struct vb2_context *ctx, int pcr, |
| 14 | enum vb2_pcr_digest which_digest) |
| 15 | { |
| 16 | return TPM_SUCCESS; |
| 17 | } |
| 18 | |
| 19 | uint32_t tpm_clear_and_reenable(void) |
| 20 | { |
| 21 | return TPM_SUCCESS; |
| 22 | } |
| 23 | |
Daisuke Nojiri | 5d302c7 | 2015-04-09 08:18:22 -0700 | [diff] [blame] | 24 | uint32_t antirollback_read_space_firmware(struct vb2_context *ctx) |
| 25 | { |
| 26 | vb2api_secdata_create(ctx); |
| 27 | return TPM_SUCCESS; |
| 28 | } |
| 29 | |
| 30 | uint32_t antirollback_write_space_firmware(struct vb2_context *ctx) |
| 31 | { |
| 32 | return TPM_SUCCESS; |
| 33 | } |
| 34 | |
| 35 | uint32_t antirollback_lock_space_firmware() |
| 36 | { |
| 37 | return TPM_SUCCESS; |
| 38 | } |