pub enum VerifyHeaderError {
UnknownMagic(u32),
InvalidTimestamp,
FirmwareTooSmall(u32),
FirmwareTooBig(u32),
InvalidPublicKey1Index(u32),
InvalidPublicKey2Index(u32),
SamePublicKeys(u32),
}
Expand description
Errors that can happen when verifying the firmware header.
Variants§
UnknownMagic(u32)
Unknown magic bytes.
InvalidTimestamp
The time stamp is invalid.
FirmwareTooSmall(u32)
The reported firmware image length is too small.
FirmwareTooBig(u32)
The reported firmware image length is too big.
InvalidPublicKey1Index(u32)
The first public key index is invalid.
InvalidPublicKey2Index(u32)
The second public key index is invalid.
SamePublicKeys(u32)
The firmware was signed with the same key for both signatures.
Trait Implementations§
Source§impl Debug for VerifyHeaderError
impl Debug for VerifyHeaderError
Source§impl Display for VerifyHeaderError
impl Display for VerifyHeaderError
Source§impl Error for VerifyHeaderError
impl Error for VerifyHeaderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for VerifyHeaderError
impl PartialEq for VerifyHeaderError
impl Eq for VerifyHeaderError
impl StructuralPartialEq for VerifyHeaderError
Auto Trait Implementations§
impl Freeze for VerifyHeaderError
impl RefUnwindSafe for VerifyHeaderError
impl Send for VerifyHeaderError
impl Sync for VerifyHeaderError
impl Unpin for VerifyHeaderError
impl UnwindSafe for VerifyHeaderError
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