Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Foxboron/go-uefi
/ functions
Functions
321 in github.com/Foxboron/go-uefi
⨍
Functions
321
◇
Types & classes
68
↓ 36 callers
Method
Bytes
()
efivar/efivar.go:226
↓ 29 callers
Function
StringToGUID
Convert a string to an EFIGUID
efi/util/guid.go:47
↓ 28 callers
Method
ReadFile
(name string)
efivarfs/fswrapper/fswrapper.go:33
↓ 24 callers
Method
Equal
(b Attributes)
efi/attributes/attributes.go:24
↓ 21 callers
Method
Open
(name string)
efivarfs/fswrapper/fswrapper.go:35
↓ 19 callers
Method
Format
()
efi/device/device.go:72
↓ 15 callers
Method
AppendSignature
Appends a signaure to the database. It will scan the database for the appropriate list to append itself to.
efi/signature/signature_database.go:75
↓ 15 callers
Function
ParsePKCS7
(b []byte)
pkcs7/pkcs7.go:661
↓ 14 callers
Function
mustHexdump
(s string)
authenticode/checksum_test.go:19
↓ 13 callers
Method
Size
()
authenticode/multireader.go:12
↓ 12 callers
Method
GetVar
(efivar.Efivar, efivar.Unmarshallable)
efivarfs/efifs.go:23
↓ 12 callers
Function
MkCert
MkCert creates a basic self-signed certificate compatible with the legacy InitCert function Returns cert first, then key (for compatibility with exist
internal/certtest/certtest.go:146
↓ 12 callers
Function
SignPKCS7
Partially implements RFC2315
pkcs7/pkcs7.go:118
↓ 11 callers
Method
AppendBytes
(owner util.EFIGUID, data []byte)
efi/signature/signature_list.go:189
↓ 11 callers
Function
NewSignatureList
(certtype util.EFIGUID)
efi/signature/signature_list.go:139
↓ 11 callers
Function
Parse
Parse a PECOFF Binary. This will read the binary and collect all the bytes we are hashing.
authenticode/checksum.go:44
↓ 10 callers
Function
ReadSignatureDatabase
Reads several signature lists from a io.Reader. It assumes io.EOF means there are no more signatures to read as opposed to an actual issue
efi/signature/signature_database.go:173
↓ 8 callers
Function
ReadEfivars
Reads a known EFI variable from efivarfs.
efi/attributes/attributes.go:115
↓ 8 callers
Method
Verify
(cert *x509.Certificate, opts ...VerifyOption)
pkcs7/pkcs7.go:627
↓ 8 callers
Method
Verify
Verify signature
authenticode/checksum.go:274
↓ 8 callers
Method
WriteFile
(name string, data []byte, perm os.FileMode)
efivarfs/fswrapper/fswrapper.go:32
↓ 7 callers
Function
CmpEFIGUID
Compare two EFIGUID structs
efi/util/guid.go:39
↓ 7 callers
Method
OpenFile
(name string, flag int, perm os.FileMode)
efivarfs/fswrapper/fswrapper.go:34
↓ 7 callers
Function
ParseTimestampInfo
ParseTimestampInfo parses and extracts TSTInfo (timestamp token information) from PKCS#7 contentInfo. contentInfo may be the raw ASN.1 encoded conten
pkcs7/timestamp.go:495
↓ 7 callers
Method
Sign
Sign the PE/COFF binary and return the signature. .Bytes() will return the binary with the signature appended.
authenticode/checksum.go:262
↓ 7 callers
Function
VerifyTimestampBytes
VerifyTimestampBytes verifies a RFC 3161 timestamp token and validates it against the provided message imprint. It performs the following verification
pkcs7/timestamp.go:422
↓ 7 callers
Function
makeSectionReader
(at SizeReaderAt)
authenticode/checksum.go:368
↓ 6 callers
Function
MkCertChain
MkCertChain creates a certificate chain for testing with root, intermediate, and leaf certificates
internal/certtest/certtest.go:15
↓ 6 callers
Function
NewTestFS
()
efivarfs/testfs/testfs.go:25
↓ 6 callers
Function
ParseAuthenticode
ParseAuthenticode parses an Authenticode signature.
authenticode/authenticode.go:148
↓ 6 callers
Function
ParseUtf16Var
Parse an efivar as a UTF-16 string.
efi/util/util.go:39
↓ 6 callers
Function
ReadEfivarsFile
For a full path instead of the inferred efivars path
efi/attributes/attributes.go:96
↓ 6 callers
Function
ReadKey
(b []byte)
efi/util/certs.go:11
↓ 6 callers
Method
WriteSignedUpdate
Writes a signed variable update
efivarfs/efivarfs.go:76
↓ 6 callers
Function
mustOpen
(s string)
authenticode/checksum_test.go:27
↓ 5 callers
Method
CheckImmutable
Check if file is immutable before writing to the file. Returns ErrImmutable if the file is immutable.
efivarfs/efifs.go:49
↓ 5 callers
Function
GetTimestamp
GetTimestamp requests a timestamp for the given message imprint
pkcs7/timestamp.go:382
↓ 5 callers
Method
Marshal
(buf *bytes.Buffer)
efivar/efivar.go:225
↓ 5 callers
Function
NewFS
NewFS creates a new instance of *EFIFS
efivarfs/efifs.go:36
↓ 5 callers
Function
NewSignatureDatabase
()
efi/signature/signature_database.go:17
↓ 5 callers
Function
ParseAlgorithmIdentifier
Parse cryptobyte string to pkix.AlgorithmIdentifier
pkcs7/pkcs7.go:299
↓ 5 callers
Function
ReadCert
(b []byte)
efi/util/certs.go:36
↓ 5 callers
Method
RemoveSignature
Removes a signaure to the database. It will scan available lists for something to remove
efi/signature/signature_database.go:121
↓ 5 callers
Function
SignAuthenticode
SignAuthenticode signs a digest with the SPC Indirect Data Content as specified by the authenticode standard.
authenticode/authenticode.go:133
↓ 5 callers
Method
UnsetImmutable
UnsetImmutable implicitly when writing towards a file.
efivarfs/efifs.go:55
↓ 5 callers
Function
WithAdditionalCerts
WithAdditionalCerts embeds additional certificates (e.g., intermediate CAs) into the signature
pkcs7/pkcs7.go:90
↓ 4 callers
Function
Enroll
(efifs *efivarfs.Efivarfs, cert *x509.Certificate, signerKey crypto.Signer, signerPem *x509.Certificate, efiva
tests/tests/remove_pk/remove_pk_test.go:20
↓ 4 callers
Method
Exists
Check if signature exists in the signature list Return true if it does along with the index
efi/signature/signature_list.go:167
↓ 4 callers
Method
GetSetupMode
()
efivarfs/efivarfs.go:35
↓ 4 callers
Function
ParseContentInfo
(der *cryptobyte.String)
pkcs7/pkcs7.go:334
↓ 4 callers
Function
ReadCertFromFile
(path string)
efi/util/certs.go:49
↓ 4 callers
Function
ReadSignatureList
Read an EFI_SIGNATURE_LIST from io.Reader. It will read until io.EOF. io.EOF should be somewhat expected if we are trying to read multiple lists as th
efi/signature/signature_list.go:256
↓ 4 callers
Function
ReadTestData
(dir string)
efi/signature/signature_list_test.go:15
↓ 4 callers
Method
RemoveSignature
(s SignatureData)
efi/signature/signature_list.go:230
↓ 4 callers
Method
RunTests
(packages ...string)
tests/integration_test.go:51
↓ 4 callers
Method
With
func (f *Testfs) ToFS() EFIFs { return &FS{ unsetimmutable: false, immutable: false, fs: f.ToAfero(), } } With allows you to
efivarfs/testfs/testfs.go:61
↓ 4 callers
Function
mustCertificate
(s string)
authenticode/checksum_test.go:35
↓ 3 callers
Function
BytesToGUID
Convert a byte slice to an EFIGUID
efi/util/guid.go:53
↓ 3 callers
Function
Enroll
(efifs *efivarfs.Efivarfs, cert, signerKey, signerPem []byte, efivar efivar.Efivar)
tests/tests/enroll_keys/enroll_keys_test.go:29
↓ 3 callers
Function
FormatSignatureList
(siglist []*signature.SignatureList)
cmd/efianalyze/main.go:16
↓ 3 callers
Function
GetSecureBoot
GetSecureBoot returns if secure boot has been enabled on the machine.
efi/efi.go:77
↓ 3 callers
Function
GetSetupMode
GetSetupMode returns if setup mode has been enabled on the machine.
efi/efi.go:66
↓ 3 callers
Function
PaddingBytes
(srcLen, blockSize int)
authenticode/checksum.go:362
↓ 3 callers
Function
ParseDevicePath
(f io.Reader)
efi/device/device.go:79
↓ 3 callers
Function
ParseEFILoadOption
(f *bytes.Buffer)
efi/device/device.go:114
↓ 3 callers
Function
ReadEFIVariableAuthencation2
(f io.Reader)
efi/signature/varsign.go:250
↓ 3 callers
Function
ReadKeyFromFile
(path string)
efi/util/certs.go:28
↓ 3 callers
Function
ReadNullString
Read a null terminated string
efi/util/util.go:13
↓ 3 callers
Method
Signatures
Signatures returns a slice of *signature.WINCertificate which contains the WINCert wrapped Authenticode signatures.
authenticode/checksum.go:342
↓ 3 callers
Function
WriteSignatureList
Writes a signature list
efi/signature/signature_list.go:241
↓ 3 callers
Method
WriteVar
(efivar.Efivar, efivar.Marshallable)
efivarfs/efifs.go:25
↓ 3 callers
Function
copySectionReader
(sr *io.SectionReader)
authenticode/checksum.go:376
↓ 2 callers
Function
Asn1Compare
(t *testing.T, a, b []byte)
asntest/asntest.go:61
↓ 2 callers
Function
Asn1Parse
(t *testing.T, buf []byte)
asntest/asntest.go:37
↓ 2 callers
Function
CopyFile
(src, dst string)
tests/integration_test.go:22
↓ 2 callers
Function
CreateTimestampRequest
CreateTimestampRequest creates a RFC 3161 timestamp request
pkcs7/timestamp.go:47
↓ 2 callers
Method
Exists
Checks if all signatures in a list is present in the signature database
efi/signature/signature_database.go:32
↓ 2 callers
Method
ExistsInList
(siglist *SignatureList)
efi/signature/signature_list.go:180
↓ 2 callers
Function
GUIDToBytes
Convert an EFIGUID to a byte slice
efi/util/guid.go:61
↓ 2 callers
Function
GetAttr
GetAttr retrieves the attributes of a file on a linux filesystem
efi/attr/attr.go:67
↓ 2 callers
Method
Hash
Hash makes a hash of the hashContent bytes.
authenticode/checksum.go:326
↓ 2 callers
Function
IsImmutable
checks if the file is immutable
efi/attr/attr.go:43
↓ 2 callers
Method
Marshal
Marshal encodes the TSTInfo using cryptobytes
pkcs7/timestamp.go:176
↓ 2 callers
Function
NoCerts
Control whether or not the certificate gets embedded into the signature
pkcs7/pkcs7.go:83
↓ 2 callers
Function
ReadEfivarsWithGuid
(filename string, guid util.EFIGUID)
efi/attributes/attributes.go:109
↓ 2 callers
Function
ReadWinCertificate
(f io.Reader)
efi/signature/varsign.go:56
↓ 2 callers
Method
RemoveBytes
(owner util.EFIGUID, data []byte)
efi/signature/signature_list.go:216
↓ 2 callers
Method
SigDataExists
Checks if all signatures in a list is present in the signature database
efi/signature/signature_database.go:22
↓ 2 callers
Function
SignEFIVariable
(v efivar.Efivar, m efivar.Marshallable, key crypto.Signer, cert *x509.Certificate)
efi/signature/varsign.go:196
↓ 2 callers
Function
UnsetImmutable
(p string)
efi/attr/attr.go:54
↓ 2 callers
Function
VerifyTimestamp
VerifyTimestamp enables checking the signing certificate for expiry when verifying a signature. If the signing certificate is expired, the Authenticod
pkcs7/pkcs7.go:108
↓ 2 callers
Function
WithAuthenticodeTimestamp
WithAuthenticodeTimestamp enables authenticode timestamping using the specified TSA URL
pkcs7/pkcs7.go:97
↓ 2 callers
Function
WriteSignatureData
(b io.Writer, s SignatureData)
efi/signature/signature_list.go:107
↓ 2 callers
Function
WriteSignatureDatabase
Write a signature database which contains a slice of SignautureLists
efi/signature/signature_database.go:165
↓ 2 callers
Function
WriteWinCertificate
(b io.Writer, w *WINCertificate)
efi/signature/varsign.go:74
↓ 2 callers
Method
isCertificate
(cert *x509.Certificate)
pkcs7/pkcs7.go:587
↓ 2 callers
Method
isimmutable
(efivar string)
efivarfs/fswrapper/fswrapper.go:74
↓ 2 callers
Function
parseAttributes
(der *cryptobyte.String, tag int)
pkcs7/pkcs7.go:428
↓ 2 callers
Function
parseTSTInfo
parseTSTInfo parses TSTInfo structure using cryptobytes
pkcs7/timestamp.go:519
↓ 2 callers
Function
sectionReaderFromBytes
(b []byte)
authenticode/checksum.go:372
next →
1–100 of 321, ranked by callers