OvmfPkg/EnrollDefaultKeys: split out certificate and signature constants
A large portion of "EnrollDefaultKeys.c" is hex-encoded X509 certificates, GUIDs, and signatures. These objects are constants, unlikely to see changes anytime soon. Move them out of the way, to "AuthData.c", so we can more easily work on functions in "EnrollDefaultKeys.c". Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Julien Grall <julien.grall@arm.com> Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=1747 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Gary Lin <glin@suse.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/** @file
|
||||
Type definitions for the EnrollDefaultKeys application.
|
||||
Type definitions and object declarations for the EnrollDefaultKeys
|
||||
application.
|
||||
|
||||
Copyright (C) 2014-2019, Red Hat, Inc.
|
||||
|
||||
@@ -118,4 +119,25 @@ typedef struct {
|
||||
UINT8 VendorKeys;
|
||||
} SETTINGS;
|
||||
|
||||
|
||||
//
|
||||
// Refer to "AuthData.c" for details on the following objects.
|
||||
//
|
||||
extern CONST UINT8 mRedHatPkKek1[];
|
||||
extern CONST UINTN mSizeOfRedHatPkKek1;
|
||||
|
||||
extern CONST UINT8 mMicrosoftKek[];
|
||||
extern CONST UINTN mSizeOfMicrosoftKek;
|
||||
|
||||
extern CONST UINT8 mMicrosoftPca[];
|
||||
extern CONST UINTN mSizeOfMicrosoftPca;
|
||||
|
||||
extern CONST UINT8 mMicrosoftUefiCa[];
|
||||
extern CONST UINTN mSizeOfMicrosoftUefiCa;
|
||||
|
||||
extern CONST UINT8 mSha256OfDevNull[];
|
||||
extern CONST UINTN mSizeOfSha256OfDevNull;
|
||||
|
||||
extern CONST EFI_GUID mMicrosoftOwnerGuid;
|
||||
|
||||
#endif /* ENROLL_DEFAULT_KEYS_H_ */
|
||||
|
Reference in New Issue
Block a user