pub struct MultibootSignature { /* private fields */ }Expand description
Contains the RSA signature used to verify the integrity of the ROM header and the ARM9 and ARM7 programs, after it is transferred for Download Play.
Implementations§
Source§impl MultibootSignature
impl MultibootSignature
Sourcepub fn borrow_from_slice(
data: &[u8],
) -> Result<&Self, RawMultibootSignatureError>
pub fn borrow_from_slice( data: &[u8], ) -> Result<&Self, RawMultibootSignatureError>
Reinterprets a &[u8] as a reference to MultibootSignature.
§Errors
This function will return an error if the input is too small or not aligned enough.
Sourcepub fn display(&self, indent: usize) -> DisplayMultibootSignature<'_>
pub fn display(&self, indent: usize) -> DisplayMultibootSignature<'_>
Creates a DisplayMultibootSignature which implements Display.
Sourcepub fn magic(&self) -> u32
pub fn magic(&self) -> u32
Returns the magic number of this MultibootSignature. This is always equal to MULTIBOOT_SIGNATURE_MAGIC.
Sourcepub fn rsa_signature(&self) -> &RsaSignature
pub fn rsa_signature(&self) -> &RsaSignature
Returns the RsaSignature of this MultibootSignature.
Sourcepub fn key_seed(&self) -> u32
pub fn key_seed(&self) -> u32
Returns the RSA key seed of this MultibootSignature.
Trait Implementations§
Source§impl Clone for MultibootSignature
impl Clone for MultibootSignature
Source§fn clone(&self) -> MultibootSignature
fn clone(&self) -> MultibootSignature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for MultibootSignature
impl<'de> Deserialize<'de> for MultibootSignature
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MultibootSignature
impl Serialize for MultibootSignature
impl Copy for MultibootSignature
impl Pod for MultibootSignature
Auto Trait Implementations§
impl Freeze for MultibootSignature
impl RefUnwindSafe for MultibootSignature
impl Send for MultibootSignature
impl Sync for MultibootSignature
impl Unpin for MultibootSignature
impl UnsafeUnpin for MultibootSignature
impl UnwindSafe for MultibootSignature
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.