1 /* Copyright (c) 2011 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 updating the TPM state with the status of boot path.
6 */
7
8 #include "sysincludes.h"
9
10 #include "tpm_bootmode.h"
11 #include "tss_constants.h"
12
13 const char* kBootStateSHA1Digests[] = {
14 /* SHA1("\x00\x00\x00") */
15 "\x29\xe2\xdc\xfb\xb1\x6f\x63\xbb\x02\x54\xdf\x75\x85\xa1\x5b\xb6"
16 "\xfb\x5e\x92\x7d",
17
18 /* SHA1("\x00\x00\x01") */
19 "\x25\x47\xcc\x73\x6e\x95\x1f\xa4\x91\x98\x53\xc4\x3a\xe8\x90\x86"
20 "\x1a\x3b\x32\x64",
21
22 /* SHA1("\x00\x00\x02") */
23 "\x1e\xf6\x24\x48\x2d\x62\x0e\x43\xe6\xd3\x4d\xa1\xaf\xe4\x62\x67"
24 "\xfc\x69\x5d\x9b",
25
26 /* SHA1("\x00\x01\x00") */
27 "\x62\x57\x18\x91\x21\x5b\x4e\xfc\x1c\xea\xb7\x44\xce\x59\xdd\x0b"
28 "\x66\xea\x6f\x73",
29
30 /* SHA1("\x00\x01\x01") */
31 "\xee\xe4\x47\xed\xc7\x9f\xea\x1c\xa7\xc7\xd3\x4e\x46\x32\x61\xcd"
32 "\xa4\xba\x33\x9e",
33
34 /* SHA1("\x00\x01\x02") */
35 "\x0c\x7a\x62\x3f\xd2\xbb\xc0\x5b\x06\x42\x3b\xe3\x59\xe4\x02\x1d"
36 "\x36\xe7\x21\xad",
37
38 /* SHA1("\x01\x00\x00") */
39 "\x95\x08\xe9\x05\x48\xb0\x44\x0a\x4a\x61\xe5\x74\x3b\x76\xc1\xe3"
40 "\x09\xb2\x3b\x7f",
41
42 /* SHA1("\x01\x00\x01") */
43 "\xc4\x2a\xc1\xc4\x6f\x1d\x4e\x21\x1c\x73\x5c\xc7\xdf\xad\x4f\xf8"
44 "\x39\x11\x10\xe9",
45
46 /* SHA1("\x01\x00\x02") */
47 "\xfa\x01\x0d\x26\x64\xcc\x5b\x3b\x82\xee\x48\x8f\xe2\xb9\xf5\x0f"
48 "\x49\x32\xeb\x8f",
49
50 /* SHA1("\x01\x01\x00") */
51 "\x47\xec\x8d\x98\x36\x64\x33\xdc\x00\x2e\x77\x21\xc9\xe3\x7d\x50"
52 "\x67\x54\x79\x37",
53
54 /* SHA1("\x01\x01\x01") */
55 "\x28\xd8\x6c\x56\xb3\xbf\x26\xd2\x36\x56\x9b\x8d\xc8\xc3\xf9\x1f"
56 "\x32\xf4\x7b\xc7",
57
58 /* SHA1("\x01\x01\x02") */
59 "\x12\xa3\x40\xd7\x89\x7f\xe7\x13\xfc\x8f\x02\xac\x53\x65\xb8\x6e"
60 "\xbf\x35\x31\x78",
61 };
62
63
SetTPMBootModeState(int developer_mode,int recovery_mode,uint64_t fw_keyblock_flags,GoogleBinaryBlockHeader * gbb)64 uint32_t SetTPMBootModeState(int developer_mode, int recovery_mode,
65 uint64_t fw_keyblock_flags,
66 GoogleBinaryBlockHeader *gbb)
67 {
68 return TPM_SUCCESS;
69 }
70