-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
secdb: change secdb algorithm sort order
There is an issue on some systems when creating EFI security database files, which is that the maximum variable size[0] turns out to be quite small. Because of this, there's a need to separate entries by class and add the most important ones first. This changes our sort order such that (by default) the most important thing comes first, and that is usually any present certificate, followed by any sha256 cert TBS hashes, followed by any individual sha256 hashes. [0] i.e., when you call: BS->QueryVariableInfo(EFI_VARIABLE_BOOTSERVICE_ACCESS, &max_storage_sz, &remaining_sz, &max_var_sz) you often get max_var_sz in the 2-page to 3-page range, which is pretty stingy for a big list of hashes plus a few X.509 certificates. Signed-off-by: Peter Jones <[email protected]>
- Loading branch information
1 parent
d917870
commit 6914376
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.