Documentation ¶
Index ¶
- Constants
- Variables
- func ComputePeImageDigest(alg crypto.Hash, r io.ReaderAt, sz int64) ([]byte, error)
- func ConvertUTF16ToUTF8(in []uint16) string
- func ConvertUTF8ToUTF16(in string) []uint16
- func ReadEnhancedAuthenticatedVar(name string, guid GUID) ([]byte, VariableAuthentication3Descriptor, VariableAttributes, error)
- func WriteVar(name string, guid GUID, attrs VariableAttributes, data []byte) error
- type ACPIDevicePathNode
- type ACPIExtendedDevicePathNode
- type ATAPIControllerRole
- type ATAPIDevicePathNode
- type ATAPIDriveRole
- type CDROMDevicePathNode
- type DeviceLogicalUnitDevicePathNode
- type DevicePath
- type DevicePathNode
- type DevicePathSubType
- type DevicePathType
- type EISAID
- type FilePathDevicePathNode
- type GUID
- type HardDriveDevicePathNode
- type InvalidGPTHeaderError
- type LBA
- type LoadOption
- type MBRType
- type MediaFvDevicePathNode
- type MediaFvFileDevicePathNode
- type MediaRelOffsetRangeDevicePathNode
- type NVMENamespaceDevicePathNode
- type PCIDevicePathNode
- type PartitionEntry
- type PartitionTable
- type PartitionTableHeader
- type PartitionTableRole
- type PhysicalAddress
- type RawDevicePathNode
- type SATADevicePathNode
- type SCSIDevicePathNode
- type SignatureData
- type SignatureDatabase
- type SignatureList
- type USBClass
- type USBClassDevicePathNode
- type USBDevicePathNode
- type USBWWIDDevicePathNode
- type VarEntry
- type VariableAttributes
- type VariableAuthentication
- type VariableAuthentication2
- type VariableAuthentication3
- type VariableAuthentication3CertId
- type VariableAuthentication3Descriptor
- type VariableAuthentication3Nonce
- type VariableAuthentication3NonceDescriptor
- type VariableAuthentication3Timestamp
- type VariableAuthentication3TimestampDescriptor
- type VendorDevicePathNode
- type WinCertificate
- type WinCertificateAuthenticode
- type WinCertificateGUID
- type WinCertificatePKCS1_15
Constants ¶
const (
VariableAuthentication3CertIDSHA256 = 1
)
Variables ¶
var ( ErrCRCCheck = errors.New("CRC check failed") ErrNoProtectiveMBR = errors.New("no protective master boot record found") // UnusedPartitionType is the type GUID of an unused partition entry. UnusedPartitionType GUID )
var ( HashAlgorithmSHA1Guid = GUID(uefi.EFI_HASH_ALGORITHM_SHA1_GUID) HashAlgorithmSHA256Guid = GUID(uefi.EFI_HASH_ALGORITHM_SHA256_GUID) HashAlgorithmSHA224Guid = GUID(uefi.EFI_HASH_ALGORITHM_SHA224_GUID) HashAlgorithmSHA384Guid = GUID(uefi.EFI_HASH_ALGORITHM_SHA384_GUID) HashAlgorithmSHA512Guid = GUID(uefi.EFI_HASH_ALGORITHM_SHA512_GUID) CertTypeRSA2048SHA256Guid = GUID(uefi.EFI_CERT_TYPE_RSA2048_SHA256_GUID) CertTypePKCS7Guid = GUID(uefi.EFI_CERT_TYPE_PKCS7_GUID) CertSHA1Guid = GUID(uefi.EFI_CERT_SHA1_GUID) CertSHA256Guid = GUID(uefi.EFI_CERT_SHA256_GUID) CertSHA224Guid = GUID(uefi.EFI_CERT_SHA224_GUID) CertSHA384Guid = GUID(uefi.EFI_CERT_SHA384_GUID) CertSHA512Guid = GUID(uefi.EFI_CERT_SHA512_GUID) CertRSA2048Guid = GUID(uefi.EFI_CERT_RSA2048_GUID) CertRSA2048SHA1Guid = GUID(uefi.EFI_CERT_RSA2048_SHA1_GUID) CertRSA2048SHA256Guid = GUID(uefi.EFI_CERT_RSA2048_SHA256_GUID) CertX509Guid = GUID(uefi.EFI_CERT_X509_GUID) CertX509SHA256Guid = GUID(uefi.EFI_CERT_X509_SHA256_GUID) CertX509SHA384Guid = GUID(uefi.EFI_CERT_X509_SHA384_GUID) CertX509SHA512Guid = GUID(uefi.EFI_CERT_X509_SHA512_GUID) GlobalVariable = GUID(uefi.EFI_GLOBAL_VARIABLE) ImageSecurityDatabaseGuid = GUID(uefi.EFI_IMAGE_SECURITY_DATABASE_GUID) )
var ( ErrVarNotExist = errors.New("variable does not exist") ErrVarPermission = errors.New("permission denied") )
Functions ¶
func ComputePeImageDigest ¶
ComputePeImageDigest computes the digest of the supplied PE image in accordance with the Authenticode specification, using the specified digest algorithm.
func ConvertUTF16ToUTF8 ¶
ConvertUTF16ToUTF8 converts the supplied UTF-16 string to a UTF-8 string. If the supplied string is NULL-terminated, then the NULL termination is removed from the string.
func ConvertUTF8ToUTF16 ¶
ConvertUTF8ToUTF16 converts the supplied UTF-8 string to a UTF-16 string.
func ReadEnhancedAuthenticatedVar ¶
func ReadEnhancedAuthenticatedVar(name string, guid GUID) ([]byte, VariableAuthentication3Descriptor, VariableAttributes, error)
ReadEnhancedAuthenticatedVar returns the value, attributes and authentication descriptor of the EFI variable with the specified name and GUID. This will return an error if the variable doesn't have the EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS attribute set.
func WriteVar ¶
func WriteVar(name string, guid GUID, attrs VariableAttributes, data []byte) error
WriteVar writes the supplied data value with the specified attributes to the EFI variable with the specified name and GUID.
If the variable already exists, the specified attributes must match the existing attributes with the exception of AttributeAppendWrite.
If the variable does not exist, it will be created.
Types ¶
type ACPIDevicePathNode ¶
ACPIDevicePathNode corresponds to an ACPI device path node.
func (*ACPIDevicePathNode) String ¶
func (d *ACPIDevicePathNode) String() string
type ACPIExtendedDevicePathNode ¶
type ACPIExtendedDevicePathNode struct { HID EISAID UID uint32 CID EISAID HIDStr string UIDStr string CIDStr string }
func (*ACPIExtendedDevicePathNode) String ¶
func (d *ACPIExtendedDevicePathNode) String() string
type ATAPIControllerRole ¶
type ATAPIControllerRole uint8
const ( ATAPIControllerPrimary ATAPIControllerRole = 0 ATAPIControllerSecondary ATAPIControllerRole = 1 )
type ATAPIDevicePathNode ¶
type ATAPIDevicePathNode struct { Controller ATAPIControllerRole Drive ATAPIDriveRole LUN uint16 }
ATAPIDevicePathNode corresponds to an ATA device path node.
func (*ATAPIDevicePathNode) String ¶
func (d *ATAPIDevicePathNode) String() string
type ATAPIDriveRole ¶
type ATAPIDriveRole uint8
const ( ATAPIDriveMaster ATAPIDriveRole = 0 ATAPIDriveSlave ATAPIDriveRole = 1 )
type CDROMDevicePathNode ¶
CDROMDevicePathNode corresponds to a CDROM device path node.
func (*CDROMDevicePathNode) String ¶
func (d *CDROMDevicePathNode) String() string
type DeviceLogicalUnitDevicePathNode ¶
type DeviceLogicalUnitDevicePathNode struct {
LUN uint8
}
func (*DeviceLogicalUnitDevicePathNode) String ¶
func (d *DeviceLogicalUnitDevicePathNode) String() string
type DevicePath ¶
type DevicePath []DevicePathNode
DevicePath represents a complete device path with the first node representing the root.
func ReadDevicePath ¶
func ReadDevicePath(r io.Reader) (out DevicePath, err error)
ReadDevicePath decodes a device path from the supplied io.Reader.
func (DevicePath) String ¶
func (p DevicePath) String() string
type DevicePathNode ¶
DevicePathNode represents a single node in a device path.
type DevicePathSubType ¶
type DevicePathSubType uint8
DevicePathSubType is the sub-type of a device path node.
type DevicePathType ¶
type DevicePathType uint8
DevicePathType is the type of a device path node.
const ( HardwareDevicePath DevicePathType = uefi.HARDWARE_DEVICE_PATH ACPIDevicePath DevicePathType = uefi.ACPI_DEVICE_PATH MessagingDevicePath DevicePathType = uefi.MESSAGING_DEVICE_PATH MediaDevicePath DevicePathType = uefi.MEDIA_DEVICE_PATH BBSDevicePath DevicePathType = uefi.BBS_DEVICE_PATH )
func (DevicePathType) String ¶
func (t DevicePathType) String() string
type FilePathDevicePathNode ¶
type FilePathDevicePathNode string
FilePathDevicePathNode corresponds to a file path device path node.
func NewFilePathDevicePathNode ¶
func NewFilePathDevicePathNode(path string) FilePathDevicePathNode
NewFilePathDevicePathNode constructs a new FilePathDevicePathNode from the supplied path, converting the OS native separators to EFI separators ("\") and prepending a separator to the start of the path if one doesn't already exist.
func (FilePathDevicePathNode) String ¶
func (d FilePathDevicePathNode) String() string
type GUID ¶
type GUID [16]byte
GUID corresponds to the EFI_GUID type.
func DecodeGUIDString ¶
DecodeGUIDString decodes the supplied GUID string. The string must have the format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" and may be surrounded by curly braces.
type HardDriveDevicePathNode ¶
type HardDriveDevicePathNode struct { PartitionNumber uint32 PartitionStart uint64 PartitionSize uint64 Signature interface{} MBRType MBRType }
HardDriveDevicePathNode corresponds to a hard drive device path node.
func NewHardDriveDevicePathNodeFromDevice ¶
func NewHardDriveDevicePathNodeFromDevice(r io.ReaderAt, totalSz, blockSz int64, part int) (*HardDriveDevicePathNode, error)
NewHardDriveDevicePathNodeFromDevice constructs a HardDriveDevicePathNode for the specified partition on the supplied device reader. The device's total size and logical block size must be supplied.
func (*HardDriveDevicePathNode) String ¶
func (d *HardDriveDevicePathNode) String() string
type InvalidGPTHeaderError ¶
type InvalidGPTHeaderError string
func (InvalidGPTHeaderError) Error ¶
func (e InvalidGPTHeaderError) Error() string
type LoadOption ¶
type LoadOption struct { Attributes uint32 Description string FilePath DevicePath OptionalData []byte }
LoadOption corresponds to the EFI_LOAD_OPTION type.
func ReadLoadOption ¶
func ReadLoadOption(r io.Reader) (out *LoadOption, err error)
ReadLoadOption reads a LoadOption from the supplied io.Reader. This function will consume all of the bytes available.
func (*LoadOption) String ¶
func (o *LoadOption) String() string
type MediaFvDevicePathNode ¶
type MediaFvDevicePathNode GUID
MediaFvDevicePathNode corresponds to a firmware volume device path node.
func (MediaFvDevicePathNode) String ¶
func (d MediaFvDevicePathNode) String() string
type MediaFvFileDevicePathNode ¶
type MediaFvFileDevicePathNode GUID
MediaFvFileDevicePathNode corresponds to a firmware volume file device path node.
func (MediaFvFileDevicePathNode) String ¶
func (d MediaFvFileDevicePathNode) String() string
type MediaRelOffsetRangeDevicePathNode ¶
func (*MediaRelOffsetRangeDevicePathNode) String ¶
func (d *MediaRelOffsetRangeDevicePathNode) String() string
type NVMENamespaceDevicePathNode ¶
NVMENamespaceDevicePathNode corresponds to a NVME namespace device path node.
func (*NVMENamespaceDevicePathNode) String ¶
func (d *NVMENamespaceDevicePathNode) String() string
type PCIDevicePathNode ¶
PCIDevicePathNode corresponds to a PCI device path node.
func (*PCIDevicePathNode) String ¶
func (d *PCIDevicePathNode) String() string
type PartitionEntry ¶
type PartitionEntry struct { PartitionTypeGUID GUID UniquePartitionGUID GUID StartingLBA LBA EndingLBA LBA Attributes uint64 PartitionName string }
PartitionEntry corresponds to the EFI_PARTITION_ENTRY type.
func ReadPartitionEntries ¶
func ReadPartitionEntries(r io.Reader, num, sz uint32) ([]*PartitionEntry, error)
ReadPartitionEntries reads the specified number of EFI_PARTITION_ENTRY structures of the specified size from the supplied io.Reader. The number and size are typically defined by the partition table header.
func ReadPartitionEntry ¶
func ReadPartitionEntry(r io.Reader) (*PartitionEntry, error)
ReadPartitionEntry reads a single EFI_PARTITION_ENTRY from r.
func (*PartitionEntry) String ¶
func (e *PartitionEntry) String() string
func (*PartitionEntry) Write ¶
func (e *PartitionEntry) Write(w io.Writer) error
Write serializes this PartitionEntry to w. Note that it doesn't write any bytes beyond the end of the EFI_PARTITION_ENTRY structure, so if the caller is writing several entries and the partition table header defines an entry size of greater than 128 bytes, the caller is responsible for inserting the 0 padding bytes.
type PartitionTable ¶
type PartitionTable struct { DiskGUID GUID Entries []*PartitionEntry }
PartitionTable describes a complete GUID partition table.
func ReadPartitionTable ¶
func ReadPartitionTable(r io.ReaderAt, totalSz, blockSz int64, role PartitionTableRole, checkCrc bool) (*PartitionTable, error)
ReadPartitionTable reads a complete GUID partition table from the supplied io.Reader. The total size and logical block size of the device must be supplied - the logical block size is 512 bytes for a file, but must be obtained from the kernel for a block device.
This function expects the device to have a valid protective MBR.
If role is PrimaryPartitionTable, this will read the primary partition table that is located immediately after the protective MBR. If role is BackupPartitionTable, this will read the backup partition table that is located at the end of the device.
If checkCrc is true and either CRC check fails, an error will be returned. Setting checkCrc to false disables the CRC checks.
type PartitionTableHeader ¶
type PartitionTableHeader struct { HeaderSize uint32 MyLBA LBA AlternateLBA LBA FirstUsableLBA LBA LastUsableLBA LBA DiskGUID GUID PartitionEntryLBA LBA NumberOfPartitionEntries uint32 SizeOfPartitionEntry uint32 PartitionEntryArrayCRC32 uint32 }
PartitionTableHeader correponds to the EFI_PARTITION_TABLE_HEADER type.
func ReadPartitionTableHeader ¶
func ReadPartitionTableHeader(r io.Reader, checkCrc bool) (*PartitionTableHeader, error)
ReadPartitionTableHeader reads a EFI_PARTITION_TABLE_HEADER from the supplied io.Reader. If the header signature or revision is incorrect, an error will be returned. If checkCrc is true and the header has an invalid CRC, an error will be returned. If checkCrc is false, then a CRC check is not performed.
type PartitionTableRole ¶
type PartitionTableRole int
PartitionTableRole describes the role of a partition table.
const ( PrimaryPartitionTable PartitionTableRole = iota BackupPartitionTable )
type PhysicalAddress ¶
type PhysicalAddress uint64
type RawDevicePathNode ¶
type RawDevicePathNode struct { Type DevicePathType SubType DevicePathSubType Data []byte }
RawDevicePathNode corresponds to a device path nodes with an unhandled type.
func (*RawDevicePathNode) String ¶
func (d *RawDevicePathNode) String() string
type SATADevicePathNode ¶
SATADevicePathNode corresponds to a SATA device path node.
func (*SATADevicePathNode) String ¶
func (d *SATADevicePathNode) String() string
type SCSIDevicePathNode ¶
SCSIDevicePathNode corresponds to a SCSI device path node.
func (*SCSIDevicePathNode) String ¶
func (d *SCSIDevicePathNode) String() string
type SignatureData ¶
SignatureData corresponds to the EFI_SIGNATURE_DATA type.
func (*SignatureData) Equal ¶
func (d *SignatureData) Equal(other *SignatureData) bool
Equal determines whether other is equal to this SignatureData
type SignatureDatabase ¶
type SignatureDatabase []*SignatureList
SignatureDatabase corresponds to a list of EFI_SIGNATURE_LIST structures.
func ReadSignatureDatabase ¶
func ReadSignatureDatabase(r io.Reader) (SignatureDatabase, error)
ReadSignatureDatabase decodes a list of EFI_SIGNATURE_LIST structures from r.
func (SignatureDatabase) String ¶
func (db SignatureDatabase) String() string
type SignatureList ¶
type SignatureList struct { Type GUID Header []byte Signatures []*SignatureData }
SignatureList corresponds to the EFI_SIGNATURE_LIST type.
func ReadSignatureList ¶
func ReadSignatureList(r io.Reader) (*SignatureList, error)
ReadSignatureList decodes a single EFI_SIGNATURE_LIST from r.
func (*SignatureList) String ¶
func (l *SignatureList) String() string
type USBClass ¶
type USBClass uint8
const ( USBClassAudio USBClass = 0x01 USBClassCDCControl USBClass = 0x02 USBClassHID USBClass = 0x03 USBClassImage USBClass = 0x06 USBClassPrinter USBClass = 0x07 USBClassMassStorage USBClass = 0x08 USBClassHub USBClass = 0x09 USBClassCDCData USBClass = 0x0a USBClassSmartCard USBClass = 0x0b USBClassVideo USBClass = 0x0e USBClassDiagnostic USBClass = 0xdc USBClassWireless USBClass = 0xe0 )
type USBClassDevicePathNode ¶
type USBClassDevicePathNode struct { VendorId uint16 ProductId uint16 DeviceClass USBClass DeviceSubClass uint8 DeviceProtocol uint8 }
USBClassDevicePathNode corresponds to a USB class device path node.
func (*USBClassDevicePathNode) String ¶
func (d *USBClassDevicePathNode) String() string
type USBDevicePathNode ¶
USBDevicePathNode corresponds to a USB device path node.
func (*USBDevicePathNode) String ¶
func (d *USBDevicePathNode) String() string
type USBWWIDDevicePathNode ¶
type USBWWIDDevicePathNode struct { InterfaceNumber uint16 VendorId uint16 ProductId uint16 SerialNumber string }
USBWWIDDevicePathNode corresponds to a USB WWID device path node.
func (*USBWWIDDevicePathNode) String ¶
func (d *USBWWIDDevicePathNode) String() string
type VariableAttributes ¶
type VariableAttributes uint32
const ( AttributeNonVolatile VariableAttributes = 1 << 0 AttributeBootserviceAccess VariableAttributes = 1 << 1 AttributeRuntimeAccess VariableAttributes = 1 << 2 AttributeHardwareErrorRecord VariableAttributes = 1 << 3 AttributeAuthenticatedWriteAccess VariableAttributes = 1 << 4 AttributeTimeBasedAuthenticatedWriteAccess VariableAttributes = 1 << 5 AttributeAppendWrite VariableAttributes = 1 << 6 AttributeEnhancedAuthenticatedAccess VariableAttributes = 1 << 7 )
type VariableAuthentication ¶
type VariableAuthentication struct { MonotonicCount uint64 AuthInfo WinCertificateGUID }
VariableAuthentication correspond to the EFI_VARIABLE_AUTHENTICATION type and is provided as a header when updating a variable with the EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS attribute set.
func ReadVariableAuthentication ¶
func ReadVariableAuthentication(r io.Reader) (*VariableAuthentication, error)
ReadVariableAuthentication decodes a header for updating a variable with the EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS attribute set.
type VariableAuthentication2 ¶
type VariableAuthentication2 struct { TimeStamp time.Time AuthInfo WinCertificateGUID }
VariableAuthentication2 correspond to the EFI_VARIABLE_AUTHENTICATION_2 type and is provided as a header when updating a variable with the EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute set.
func ReadTimeBasedVariableAuthentication ¶
func ReadTimeBasedVariableAuthentication(r io.Reader) (*VariableAuthentication2, error)
ReadTimeBasedVariableAuthentication decodes the header for updating a variable with the EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute set.
type VariableAuthentication3 ¶
type VariableAuthentication3 interface{}
VariableAuthentication3 represents the header for updating a variable with the EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS attribute set.
func ReadEnhancedVariableAuthentication ¶
func ReadEnhancedVariableAuthentication(r io.Reader) (VariableAuthentication3, error)
ReadEnhancedVariableAuthentication decodes the header for updating a variable with the EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS attribute set.
type VariableAuthentication3Descriptor ¶
type VariableAuthentication3Descriptor interface{}
VariableAuthentication3Descriptor corresponds to the authentication descriptor provided when reading the payload of a variable with the EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS attribute set.
func ReadEnhancedAuthenticationDescriptor ¶
func ReadEnhancedAuthenticationDescriptor(r io.Reader) (VariableAuthentication3Descriptor, error)
ReadEnhancedAuthenticationDescriptor decodes the enhanced authentication descriptor from the supplied io.Reader. The supplied reader will typically read from the payload area of a variable with the EFI_VARIABLE_ENHANCED_AUTHENTICATION_ACCESS attribute set, returned from a call to OpenVar. Alternatively, for reading variables that you know have this attribute set, use ReadEnhancedAuthenticatedVar or OpenEnhancedAuthenticatedVar instead.
type VariableAuthentication3Nonce ¶
type VariableAuthentication3Nonce struct { Nonce []byte NewCert *WinCertificateGUID SigningCert WinCertificateGUID }
VariableAuthentication3Nonce corresponds to the header for updating a variable with the EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS attribute set, and a type of EFI_VARIABLE_AUTHENTICATION_3_NONCE_TYPE.
type VariableAuthentication3NonceDescriptor ¶
type VariableAuthentication3NonceDescriptor struct { Nonce []byte VariableAuthentication3CertId }
VariableAuthentication3NonceDescriptor corresponds to the authentication descriptor provided when reading the payload of a variable with the EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS attribute set, and a type of EFI_VARIABLE_AUTHENTICATION_3_NONCE_TYPE.
type VariableAuthentication3Timestamp ¶
type VariableAuthentication3Timestamp struct { TimeStamp time.Time NewCert *WinCertificateGUID SigningCert WinCertificateGUID }
VariableAuthentication3Timestamp corresponds to the header for updating a variable with the EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS attribute set, and a type of EFI_VARIABLE_AUTHENTICATION_3_TIMESTAMP_TYPE.
type VariableAuthentication3TimestampDescriptor ¶
type VariableAuthentication3TimestampDescriptor struct { TimeStamp time.Time VariableAuthentication3CertId }
VariableAuthentication3TimestampDescriptor corresponds to the authentication descriptor provided when reading the payload of a variable with the EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS attribute set, and a type of EFI_VARIABLE_AUTHENTICATION_3_TIMESTAMP_TYPE.
type VendorDevicePathNode ¶
type VendorDevicePathNode struct { Type DevicePathType GUID GUID Data []byte }
func (*VendorDevicePathNode) String ¶
func (d *VendorDevicePathNode) String() string
type WinCertificate ¶
type WinCertificate interface {
Write(w io.Writer) error // Encode this certificate to the supplied io.Writer
}
WinCertificate is an interface type corresponding to implementations of WIN_CERTIFICATE.
func ReadWinCertificate ¶
func ReadWinCertificate(r io.Reader) (WinCertificate, error)
ReadWinCertificate decodes a signature (something that is confusingly represented by types with "certificate" in the name in both the UEFI and PE/COFF specifications) from the supplied io.Reader and returns a WinCertificate of the appropriate type. The type returned is dependent on the data, and will be one of *WinCertificateAuthenticode, *WinCertificatePKCS1_15 or *WinCertificateGUID.
type WinCertificateAuthenticode ¶
type WinCertificateAuthenticode []byte
WinCertificateAuthenticode corresponds to an Authenticode signature.
type WinCertificateGUID ¶
WinCertificateGUID corresponds to the WIN_CERTIFICATE_UEFI_GUID type.
type WinCertificatePKCS1_15 ¶
WinCertificatePKCS1_15 corresponds to the WIN_CERTIFICATE_EFI_PKCS1_15 type.