Enum simics_sign::Error
source · pub enum Error {
Show 19 variants
FileTypeNotRecognized {
path: PathBuf,
},
ModuleCapabilitiesMissing,
SectionNotFound {
symbol: String,
path: PathBuf,
},
SplitSequenceNotFound,
SectionMissing {
section: String,
path: PathBuf,
},
SignatureUnchanged,
ModuleUnchanged,
SectionFileRangeMissing {
section: String,
},
ModuleLengthMismatch,
NullByteMissing,
MissingParentDirectory {
path: PathBuf,
},
ModuleNotSigned,
OpenOutputFile {
path: PathBuf,
source: Error,
},
SetPermissions {
path: PathBuf,
source: Error,
},
GetMetadata {
path: PathBuf,
source: Error,
},
ReadDirectory {
path: PathBuf,
source: Error,
},
WriteOutputFile {
path: PathBuf,
source: Error,
},
IoError(Error),
ObjectError(Error),
}
Expand description
An error type raised during singing
Variants§
FileTypeNotRecognized
The file type of the input is not recognized and does not correctly parse as either PE64 or ELF64.
ModuleCapabilitiesMissing
The module_capabilities symbol could not be found in the file
SectionNotFound
A section containing a symbol with a given name could not be found in the file
Fields
SplitSequenceNotFound
The sequence that splits the module_capabilities symbol (usually ’; ’) was not found
SectionMissing
A section with a given name was not found
Fields
SignatureUnchanged
The signature block was not modified by the signing process. This is a sanity check.
ModuleUnchanged
The module was not modified by the signing process. This is a sanity check.
SectionFileRangeMissing
No range of offsets in the file were found for a secion
ModuleLengthMismatch
The length of the original and signed modules differ. This is a sanity check.
NullByteMissing
A null byte was not found in the module_capabilities symbol
MissingParentDirectory
No parent directory for a path
ModuleNotSigned
The module was not signed
OpenOutputFile
An error occurred while opening the output file
Fields
SetPermissions
An error occurred while setting the permissions of the output file
Fields
GetMetadata
An error occurred while getting the metadata of the output file
Fields
ReadDirectory
An error occurred while reading a directory
Fields
WriteOutputFile
An error occurred while writing the output file
Fields
IoError(Error)
A wrapped std::io::Error
ObjectError(Error)
A wrapped object::Error