MCPcopy Create free account

hub / github.com/Foxboron/go-uefi / functions

Functions321 in github.com/Foxboron/go-uefi

↓ 36 callersMethodBytes
()
efivar/efivar.go:226
↓ 29 callersFunctionStringToGUID
Convert a string to an EFIGUID
efi/util/guid.go:47
↓ 28 callersMethodReadFile
(name string)
efivarfs/fswrapper/fswrapper.go:33
↓ 24 callersMethodEqual
(b Attributes)
efi/attributes/attributes.go:24
↓ 21 callersMethodOpen
(name string)
efivarfs/fswrapper/fswrapper.go:35
↓ 19 callersMethodFormat
()
efi/device/device.go:72
↓ 15 callersMethodAppendSignature
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 callersFunctionParsePKCS7
(b []byte)
pkcs7/pkcs7.go:661
↓ 14 callersFunctionmustHexdump
(s string)
authenticode/checksum_test.go:19
↓ 13 callersMethodSize
()
authenticode/multireader.go:12
↓ 12 callersMethodGetVar
(efivar.Efivar, efivar.Unmarshallable)
efivarfs/efifs.go:23
↓ 12 callersFunctionMkCert
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 callersFunctionSignPKCS7
Partially implements RFC2315
pkcs7/pkcs7.go:118
↓ 11 callersMethodAppendBytes
(owner util.EFIGUID, data []byte)
efi/signature/signature_list.go:189
↓ 11 callersFunctionNewSignatureList
(certtype util.EFIGUID)
efi/signature/signature_list.go:139
↓ 11 callersFunctionParse
Parse a PECOFF Binary. This will read the binary and collect all the bytes we are hashing.
authenticode/checksum.go:44
↓ 10 callersFunctionReadSignatureDatabase
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 callersFunctionReadEfivars
Reads a known EFI variable from efivarfs.
efi/attributes/attributes.go:115
↓ 8 callersMethodVerify
(cert *x509.Certificate, opts ...VerifyOption)
pkcs7/pkcs7.go:627
↓ 8 callersMethodVerify
Verify signature
authenticode/checksum.go:274
↓ 8 callersMethodWriteFile
(name string, data []byte, perm os.FileMode)
efivarfs/fswrapper/fswrapper.go:32
↓ 7 callersFunctionCmpEFIGUID
Compare two EFIGUID structs
efi/util/guid.go:39
↓ 7 callersMethodOpenFile
(name string, flag int, perm os.FileMode)
efivarfs/fswrapper/fswrapper.go:34
↓ 7 callersFunctionParseTimestampInfo
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 callersMethodSign
Sign the PE/COFF binary and return the signature. .Bytes() will return the binary with the signature appended.
authenticode/checksum.go:262
↓ 7 callersFunctionVerifyTimestampBytes
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 callersFunctionmakeSectionReader
(at SizeReaderAt)
authenticode/checksum.go:368
↓ 6 callersFunctionMkCertChain
MkCertChain creates a certificate chain for testing with root, intermediate, and leaf certificates
internal/certtest/certtest.go:15
↓ 6 callersFunctionNewTestFS
()
efivarfs/testfs/testfs.go:25
↓ 6 callersFunctionParseAuthenticode
ParseAuthenticode parses an Authenticode signature.
authenticode/authenticode.go:148
↓ 6 callersFunctionParseUtf16Var
Parse an efivar as a UTF-16 string.
efi/util/util.go:39
↓ 6 callersFunctionReadEfivarsFile
For a full path instead of the inferred efivars path
efi/attributes/attributes.go:96
↓ 6 callersFunctionReadKey
(b []byte)
efi/util/certs.go:11
↓ 6 callersMethodWriteSignedUpdate
Writes a signed variable update
efivarfs/efivarfs.go:76
↓ 6 callersFunctionmustOpen
(s string)
authenticode/checksum_test.go:27
↓ 5 callersMethodCheckImmutable
Check if file is immutable before writing to the file. Returns ErrImmutable if the file is immutable.
efivarfs/efifs.go:49
↓ 5 callersFunctionGetTimestamp
GetTimestamp requests a timestamp for the given message imprint
pkcs7/timestamp.go:382
↓ 5 callersMethodMarshal
(buf *bytes.Buffer)
efivar/efivar.go:225
↓ 5 callersFunctionNewFS
NewFS creates a new instance of *EFIFS
efivarfs/efifs.go:36
↓ 5 callersFunctionNewSignatureDatabase
()
efi/signature/signature_database.go:17
↓ 5 callersFunctionParseAlgorithmIdentifier
Parse cryptobyte string to pkix.AlgorithmIdentifier
pkcs7/pkcs7.go:299
↓ 5 callersFunctionReadCert
(b []byte)
efi/util/certs.go:36
↓ 5 callersMethodRemoveSignature
Removes a signaure to the database. It will scan available lists for something to remove
efi/signature/signature_database.go:121
↓ 5 callersFunctionSignAuthenticode
SignAuthenticode signs a digest with the SPC Indirect Data Content as specified by the authenticode standard.
authenticode/authenticode.go:133
↓ 5 callersMethodUnsetImmutable
UnsetImmutable implicitly when writing towards a file.
efivarfs/efifs.go:55
↓ 5 callersFunctionWithAdditionalCerts
WithAdditionalCerts embeds additional certificates (e.g., intermediate CAs) into the signature
pkcs7/pkcs7.go:90
↓ 4 callersFunctionEnroll
(efifs *efivarfs.Efivarfs, cert *x509.Certificate, signerKey crypto.Signer, signerPem *x509.Certificate, efiva
tests/tests/remove_pk/remove_pk_test.go:20
↓ 4 callersMethodExists
Check if signature exists in the signature list Return true if it does along with the index
efi/signature/signature_list.go:167
↓ 4 callersMethodGetSetupMode
()
efivarfs/efivarfs.go:35
↓ 4 callersFunctionParseContentInfo
(der *cryptobyte.String)
pkcs7/pkcs7.go:334
↓ 4 callersFunctionReadCertFromFile
(path string)
efi/util/certs.go:49
↓ 4 callersFunctionReadSignatureList
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 callersFunctionReadTestData
(dir string)
efi/signature/signature_list_test.go:15
↓ 4 callersMethodRemoveSignature
(s SignatureData)
efi/signature/signature_list.go:230
↓ 4 callersMethodRunTests
(packages ...string)
tests/integration_test.go:51
↓ 4 callersMethodWith
func (f *Testfs) ToFS() EFIFs { return &FS{ unsetimmutable: false, immutable: false, fs: f.ToAfero(), } } With allows you to
efivarfs/testfs/testfs.go:61
↓ 4 callersFunctionmustCertificate
(s string)
authenticode/checksum_test.go:35
↓ 3 callersFunctionBytesToGUID
Convert a byte slice to an EFIGUID
efi/util/guid.go:53
↓ 3 callersFunctionEnroll
(efifs *efivarfs.Efivarfs, cert, signerKey, signerPem []byte, efivar efivar.Efivar)
tests/tests/enroll_keys/enroll_keys_test.go:29
↓ 3 callersFunctionFormatSignatureList
(siglist []*signature.SignatureList)
cmd/efianalyze/main.go:16
↓ 3 callersFunctionGetSecureBoot
GetSecureBoot returns if secure boot has been enabled on the machine.
efi/efi.go:77
↓ 3 callersFunctionGetSetupMode
GetSetupMode returns if setup mode has been enabled on the machine.
efi/efi.go:66
↓ 3 callersFunctionPaddingBytes
(srcLen, blockSize int)
authenticode/checksum.go:362
↓ 3 callersFunctionParseDevicePath
(f io.Reader)
efi/device/device.go:79
↓ 3 callersFunctionParseEFILoadOption
(f *bytes.Buffer)
efi/device/device.go:114
↓ 3 callersFunctionReadEFIVariableAuthencation2
(f io.Reader)
efi/signature/varsign.go:250
↓ 3 callersFunctionReadKeyFromFile
(path string)
efi/util/certs.go:28
↓ 3 callersFunctionReadNullString
Read a null terminated string
efi/util/util.go:13
↓ 3 callersMethodSignatures
Signatures returns a slice of *signature.WINCertificate which contains the WINCert wrapped Authenticode signatures.
authenticode/checksum.go:342
↓ 3 callersFunctionWriteSignatureList
Writes a signature list
efi/signature/signature_list.go:241
↓ 3 callersMethodWriteVar
(efivar.Efivar, efivar.Marshallable)
efivarfs/efifs.go:25
↓ 3 callersFunctioncopySectionReader
(sr *io.SectionReader)
authenticode/checksum.go:376
↓ 2 callersFunctionAsn1Compare
(t *testing.T, a, b []byte)
asntest/asntest.go:61
↓ 2 callersFunctionAsn1Parse
(t *testing.T, buf []byte)
asntest/asntest.go:37
↓ 2 callersFunctionCopyFile
(src, dst string)
tests/integration_test.go:22
↓ 2 callersFunctionCreateTimestampRequest
CreateTimestampRequest creates a RFC 3161 timestamp request
pkcs7/timestamp.go:47
↓ 2 callersMethodExists
Checks if all signatures in a list is present in the signature database
efi/signature/signature_database.go:32
↓ 2 callersMethodExistsInList
(siglist *SignatureList)
efi/signature/signature_list.go:180
↓ 2 callersFunctionGUIDToBytes
Convert an EFIGUID to a byte slice
efi/util/guid.go:61
↓ 2 callersFunctionGetAttr
GetAttr retrieves the attributes of a file on a linux filesystem
efi/attr/attr.go:67
↓ 2 callersMethodHash
Hash makes a hash of the hashContent bytes.
authenticode/checksum.go:326
↓ 2 callersFunctionIsImmutable
checks if the file is immutable
efi/attr/attr.go:43
↓ 2 callersMethodMarshal
Marshal encodes the TSTInfo using cryptobytes
pkcs7/timestamp.go:176
↓ 2 callersFunctionNoCerts
Control whether or not the certificate gets embedded into the signature
pkcs7/pkcs7.go:83
↓ 2 callersFunctionReadEfivarsWithGuid
(filename string, guid util.EFIGUID)
efi/attributes/attributes.go:109
↓ 2 callersFunctionReadWinCertificate
(f io.Reader)
efi/signature/varsign.go:56
↓ 2 callersMethodRemoveBytes
(owner util.EFIGUID, data []byte)
efi/signature/signature_list.go:216
↓ 2 callersMethodSigDataExists
Checks if all signatures in a list is present in the signature database
efi/signature/signature_database.go:22
↓ 2 callersFunctionSignEFIVariable
(v efivar.Efivar, m efivar.Marshallable, key crypto.Signer, cert *x509.Certificate)
efi/signature/varsign.go:196
↓ 2 callersFunctionUnsetImmutable
(p string)
efi/attr/attr.go:54
↓ 2 callersFunctionVerifyTimestamp
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 callersFunctionWithAuthenticodeTimestamp
WithAuthenticodeTimestamp enables authenticode timestamping using the specified TSA URL
pkcs7/pkcs7.go:97
↓ 2 callersFunctionWriteSignatureData
(b io.Writer, s SignatureData)
efi/signature/signature_list.go:107
↓ 2 callersFunctionWriteSignatureDatabase
Write a signature database which contains a slice of SignautureLists
efi/signature/signature_database.go:165
↓ 2 callersFunctionWriteWinCertificate
(b io.Writer, w *WINCertificate)
efi/signature/varsign.go:74
↓ 2 callersMethodisCertificate
(cert *x509.Certificate)
pkcs7/pkcs7.go:587
↓ 2 callersMethodisimmutable
(efivar string)
efivarfs/fswrapper/fswrapper.go:74
↓ 2 callersFunctionparseAttributes
(der *cryptobyte.String, tag int)
pkcs7/pkcs7.go:428
↓ 2 callersFunctionparseTSTInfo
parseTSTInfo parses TSTInfo structure using cryptobytes
pkcs7/timestamp.go:519
↓ 2 callersFunctionsectionReaderFromBytes
(b []byte)
authenticode/checksum.go:372
next →1–100 of 321, ranked by callers