Struct simics_sign::Sign
source · pub struct Sign {
pub(crate) module: PathBuf,
pub(crate) data: Vec<u8>,
pub(crate) signed: Vec<u8>,
}
Expand description
A module for signing
Fields§
§module: PathBuf
§data: Vec<u8>
§signed: Vec<u8>
Implementations§
source§impl Sign
impl Sign
sourcepub fn new<P>(module: P) -> Result<Self, Error>
pub fn new<P>(module: P) -> Result<Self, Error>
Start a new sign operation on a module located at a path
pub(crate) fn sign_elf( &mut self, elf: ElfFile<'_, FileHeader64<LittleEndian>>, ) -> Result<(), Error>
pub(crate) fn sign_pe(&mut self, pe: PeFile64<'_>) -> Result<(), Error>
sourcepub fn write_as<S>(&mut self, name: S) -> Result<&mut Self, Error>
pub fn write_as<S>(&mut self, name: S) -> Result<&mut Self, Error>
Write the signed file to the same directory as the input module as a specific name
Auto Trait Implementations§
impl Freeze for Sign
impl RefUnwindSafe for Sign
impl Send for Sign
impl Sync for Sign
impl Unpin for Sign
impl UnwindSafe for Sign
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more