pub struct AppCheckerRsaSimulated<'a> { /* private fields */ }
Expand description
A sample Credentials Checking Policy that loads and runs Userspace Binaries that have RSA3072 or RSA4096 credentials.
It uses the public key stored in the credentials as the Application Identifier, and the bottom 31 bits of the public key as the ShortId. WARNING: this policy does not actually check the RSA signature: it always blindly assumes it is correct. This checker exists to test that the Tock boot sequence correctly handles ID collisions and version numbers.
Implementations§
Source§impl<'a> AppCheckerRsaSimulated<'a>
impl<'a> AppCheckerRsaSimulated<'a>
pub fn new() -> AppCheckerRsaSimulated<'a>
Trait Implementations§
Source§impl<'a> AppCredentialsPolicy<'a> for AppCheckerRsaSimulated<'a>
impl<'a> AppCredentialsPolicy<'a> for AppCheckerRsaSimulated<'a>
Source§fn require_credentials(&self) -> bool
fn require_credentials(&self) -> bool
Whether credentials are required or not. Read more
Source§fn check_credentials(
&self,
credentials: TbfFooterV2Credentials,
binary: &'a [u8],
) -> Result<(), (ErrorCode, TbfFooterV2Credentials, &'a [u8])>
fn check_credentials( &self, credentials: TbfFooterV2Credentials, binary: &'a [u8], ) -> Result<(), (ErrorCode, TbfFooterV2Credentials, &'a [u8])>
Check a particular credential. Read more
Source§fn set_client(&self, client: &'a dyn AppCredentialsPolicyClient<'a>)
fn set_client(&self, client: &'a dyn AppCredentialsPolicyClient<'a>)
Set the client which gets notified after the credential check completes.
Source§impl DeferredCallClient for AppCheckerRsaSimulated<'_>
impl DeferredCallClient for AppCheckerRsaSimulated<'_>
Auto Trait Implementations§
impl<'a> !Freeze for AppCheckerRsaSimulated<'a>
impl<'a> !RefUnwindSafe for AppCheckerRsaSimulated<'a>
impl<'a> !Send for AppCheckerRsaSimulated<'a>
impl<'a> !Sync for AppCheckerRsaSimulated<'a>
impl<'a> Unpin for AppCheckerRsaSimulated<'a>
impl<'a> !UnwindSafe for AppCheckerRsaSimulated<'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