blob: 78cb3e6063cf7c74b54280dab581c6b1395a5f03 (
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
54
55
56
57
58
59
|
/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Functions for querying, manipulating and locking rollback indices
* stored in the TPM NVRAM.
*/
#include <security/tpm/tspi.h>
#include <vb2_api.h>
#include "antirollback.h"
vb2_error_t vb2ex_tpm_clear_owner(struct vb2_context *ctx)
{
return VB2_SUCCESS;
}
vb2_error_t antirollback_read_space_firmware(struct vb2_context *ctx)
{
vb2api_secdata_firmware_create(ctx);
return VB2_SUCCESS;
}
vb2_error_t antirollback_write_space_firmware(struct vb2_context *ctx)
{
return VB2_SUCCESS;
}
vb2_error_t antirollback_read_space_kernel(struct vb2_context *ctx)
{
vb2api_secdata_kernel_create(ctx);
return VB2_SUCCESS;
}
vb2_error_t antirollback_write_space_kernel(struct vb2_context *ctx)
{
return VB2_SUCCESS;
}
vb2_error_t antirollback_lock_space_firmware(void)
{
return VB2_SUCCESS;
}
vb2_error_t antirollback_lock_space_mrc_hash(uint32_t index)
{
return VB2_SUCCESS;
}
vb2_error_t antirollback_read_space_mrc_hash(uint32_t index, uint8_t *data, uint32_t size)
{
return VB2_SUCCESS;
}
vb2_error_t antirollback_write_space_mrc_hash(uint32_t index, const uint8_t *data,
uint32_t size)
{
return VB2_SUCCESS;
}
|