summaryrefslogtreecommitdiff
path: root/src/vboot/secdata_mock.c
blob: 31fa5980c41e899715dc221932ca6f589d2b8c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * Functions for querying, manipulating and locking rollback indices
 * stored in the TPM NVRAM.
 */

#include <antirollback.h>
#include <stdlib.h>
#include <vb2_api.h>

uint32_t tpm_extend_pcr(struct vb2_context *ctx, int pcr,
			enum vb2_pcr_digest which_digest)
{
	return TPM_SUCCESS;
}

uint32_t tpm_clear_and_reenable(void)
{
	return TPM_SUCCESS;
}

uint32_t antirollback_read_space_firmware(struct vb2_context *ctx)
{
	vb2api_secdata_create(ctx);
	return TPM_SUCCESS;
}

uint32_t antirollback_write_space_firmware(struct vb2_context *ctx)
{
	return TPM_SUCCESS;
}

uint32_t antirollback_lock_space_firmware()
{
	return TPM_SUCCESS;
}

uint32_t antirollback_lock_space_rec_hash(void)
{
	return TPM_SUCCESS;
}

uint32_t antirollback_read_space_rec_hash(uint8_t *data, uint32_t size)
{
	return TPM_SUCCESS;
}

uint32_t antirollback_write_space_rec_hash(const uint8_t *data, uint32_t size)
{
	return TPM_SUCCESS;
}