pub struct Signature {
pub public_key1: u32,
pub signature1: Signature,
pub public_key2: u32,
pub signature2: Signature,
}
Expand description
Firmware signature information.
The public key indexes are indexes of the foundation_public_keys
array.
Fields§
§public_key1: u32
The first public key index.
signature1: Signature
The signature of the firmware associated with the first public key.
public_key2: u32
The second public key index.
signature2: Signature
The signature of the firmware associated with the second public key.
Implementations§
Source§impl Signature
impl Signature
Sourcepub fn public_key1(&self) -> PublicKey
pub fn public_key1(&self) -> PublicKey
Return the first public key.
§Panics
This function can panic if public_key1
is out of range. The header
should have been verified before with Header::verify
.
Sourcepub fn public_key2(&self) -> PublicKey
pub fn public_key2(&self) -> PublicKey
Return the second public key.
§Panics
This function can panic if public_key2
is out of range. The header
should have been verified before with Header::verify
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
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