]> git.proxmox.com Git - efi-boot-shim.git/blame - MokVars.txt
MokManager: enhance the password prompt
[efi-boot-shim.git] / MokVars.txt
CommitLineData
da1e6d75
MG
1Variables used by Shim and Mokmanager
2
3Request variables:
4
5MokPW: Set by MokUtil when setting a password. A SHA-256 hash of the
6UCS-2 representation of the password. The user will be asked to
7re-enter the password to confirm. If the hash of the entered password
8matches the contents of MokPW, the user will be prompted to copy MokPW
9into MokPWState. BS,RT,NV
10
11MokSB: Set by MokUtil when requesting a change in state of signature
12validation. A packed structure as follows:
13
14typedef struct {
15 UINT32 MokSBState;
16 UINT32 PWLen;
17 CHAR16 Password[PASSWORD_MAX];
18} __attribute__ ((packed)) MokSBvar;
19
20If MokSBState is 0, the user will be prompted to disable signature
21validation. Otherwise, the user will be prompted to enable it. PWLen
22is the length of the password, in characters. Password is a UCS-2
23representation of the password. The user will be prompted to enter
24three randomly chosen characters from the password. If successful,
25they will then be prompted to change the signature validation
26according to MokSBState. BS,RT,NV
27
28MokNew: Set by MokUtil when requesting the addition or removal of keys
29from MokList. Is an EFI_SIGNATURE_LIST as described in the UEFI
30specification. BS,RT,NV
31
32MokAuth: A hash dependent upon the contents of MokNew and the sealing
33password. The user's password in UCS-2 form should be appended to the
34contents of MokNew and a SHA-256 hash generated and stored in MokAuth.
35The hash will be regenerated by MokManager after the user is requested
36to enter their password to confirm enrolment of the keys. If the hash
37matches MokAuth, the user will be prompted to enrol the keys. BS,RT,NV
38
39State variables:
40
41MokList: A list of whitelisted keys and hashes. An EFI_SIGNATURE_LIST
42as described in the UEFI specification. BS,NV
43
44MokListRT: A copy of MokList made available to the kernel at runtime. RT
45
46MokSBState: An 8-bit unsigned integer. If 1, shim will switch to
47insecure mode. BS,NV
48
49MokPWStore: A SHA-256 representation of the password set by the user
50via MokPW. The user will be prompted to enter this password in order
51to interact with MokManager.