diff options
| author | Matthew Garrett <mjg@redhat.com> | 2012-06-18 17:48:25 -0400 |
|---|---|---|
| committer | Matthew Garrett <mjg@redhat.com> | 2012-06-18 17:48:25 -0400 |
| commit | 71d0b18bd2f5c6102e1c0711ef31a96725330ff4 (patch) | |
| tree | b48fb0d39b83f5ad34bb31e77ab4ac372e0debd2 | |
| parent | 0f37a3d245d36a1cf1ad42a1f60aa579d2354c4e (diff) | |
| download | efi-boot-shim-71d0b18bd2f5c6102e1c0711ef31a96725330ff4.tar.gz efi-boot-shim-71d0b18bd2f5c6102e1c0711ef31a96725330ff4.zip | |
Add missing include
| -rw-r--r-- | signature.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/signature.h b/signature.h new file mode 100644 index 00000000..154da5e6 --- /dev/null +++ b/signature.h @@ -0,0 +1,41 @@ +#define SHA256_DIGEST_SIZE 32 + +EFI_GUID EfiCertSha256Guid = { 0xc1c41626, 0x504c, 0x4092, {0xac, 0xa9, 0x41, 0xf9, 0x36, 0x93, 0x43, 0x28 }}; + +typedef struct { + /// + /// An identifier which identifies the agent which added the signature to the list. + /// + EFI_GUID SignatureOwner; + /// + /// The format of the signature is defined by the SignatureType. + /// + UINT8 SignatureData[1]; +} EFI_SIGNATURE_DATA; + +typedef struct { + /// + /// Type of the signature. GUID signature types are defined in below. + /// + EFI_GUID SignatureType; + /// + /// Total size of the signature list, including this header. + /// + UINT32 SignatureListSize; + /// + /// Size of the signature header which precedes the array of signatures. + /// + UINT32 SignatureHeaderSize; + /// + /// Size of each signature. + /// + UINT32 SignatureSize; + /// + /// Header before the array of signatures. The format of this header is specified + /// by the SignatureType. + /// UINT8 SignatureHeader[SignatureHeaderSize]; + /// + /// An array of signatures. Each signature is SignatureSize bytes in length. + /// EFI_SIGNATURE_DATA Signatures[][SignatureSize]; + /// +} EFI_SIGNATURE_LIST; |
