Struct kernel::process_checker::basic::AppCheckerRsaSimulated
source · 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> AppCredentialsChecker<'a> for AppCheckerRsaSimulated<'a>
impl<'a> AppCredentialsChecker<'a> for AppCheckerRsaSimulated<'a>
fn require_credentials(&self) -> bool
fn check_credentials( &self, credentials: TbfFooterV2Credentials, binary: &'a [u8] ) -> Result<(), (ErrorCode, TbfFooterV2Credentials, &'a [u8])>
fn set_client(&self, client: &'a dyn Client<'a>)
source§impl AppUniqueness for AppCheckerRsaSimulated<'_>
impl AppUniqueness for AppCheckerRsaSimulated<'_>
source§impl Compress for AppCheckerRsaSimulated<'_>
impl Compress for AppCheckerRsaSimulated<'_>
fn to_short_id(&self, credentials: &TbfFooterV2Credentials) -> ShortID
source§impl<'a> DeferredCallClient for AppCheckerRsaSimulated<'a>
impl<'a> DeferredCallClient for AppCheckerRsaSimulated<'a>
Auto Trait Implementations§
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