pub struct RawManifest<'a> {
pub version: u32,
pub manifest_payload: &'a [u8],
pub signatures: Vec<Vec<u8>>,
pub signed_bytes: &'a [u8],
}Expand description
The parsed contents of a SignedManifest.
Fields§
§version: u32The signed manifest version.
manifest_payload: &'a [u8]The unparsed OTA manifest payload.
signatures: Vec<Vec<u8>>The signatures found in the signed manifest.
signed_bytes: &'a [u8]The bytes that are signed: magic, version, manifest_size, and manifest_payload.
Implementations§
Source§impl<'a> RawManifest<'a>
impl<'a> RawManifest<'a>
Sourcepub fn verify(
&self,
public_keys: &[UnparsedPublicKey<Vec<u8>>],
) -> Result<(), SignedManifestError>
pub fn verify( &self, public_keys: &[UnparsedPublicKey<Vec<u8>>], ) -> Result<(), SignedManifestError>
Verifies the signatures against the provided list of public keys.
Returns Ok(()) if at least one signature is valid.
Auto Trait Implementations§
impl<'a> Freeze for RawManifest<'a>
impl<'a> RefUnwindSafe for RawManifest<'a>
impl<'a> Send for RawManifest<'a>
impl<'a> Sync for RawManifest<'a>
impl<'a> Unpin for RawManifest<'a>
impl<'a> UnwindSafe for RawManifest<'a>
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more