Type Alias Verifier

Source
pub(crate) type Verifier = EcdsaP256SignatureVerifier<'static>;

Aliased Type§

struct Verifier { /* private fields */ }

Implementations

Source§

impl EcdsaP256SignatureVerifier<'_>

Source

pub fn new( verifying_key: &'static mut [u8; 64], ) -> EcdsaP256SignatureVerifier<'_>

Trait Implementations

Source§

impl DeferredCallClient for EcdsaP256SignatureVerifier<'_>

Source§

fn handle_deferred_call(&self)

Software interrupt function that is called when the deferred call is triggered.
Source§

fn register(&'static self)

Source§

impl<'a> SetKeyBySlice<'a, 64> for EcdsaP256SignatureVerifier<'a>

Source§

fn set_key( &self, key: &'static mut [u8; 64], ) -> Result<(), (ErrorCode, &'static mut [u8; 64])>

Set the current key. Read more
Source§

fn set_client(&self, client: &'a dyn SetKeyBySliceClient<64>)

Source§

impl<'a> SignatureVerify<'a, 32, 64> for EcdsaP256SignatureVerifier<'a>

Source§

fn set_verify_client(&self, client: &'a dyn ClientVerify<32, 64>)

Set the client instance which will receive the verification_done() callback.
Source§

fn verify( &self, hash: &'static mut [u8; 32], signature: &'static mut [u8; 64], ) -> Result<(), (ErrorCode, &'static mut [u8; 32], &'static mut [u8; 64])>

Verify the signature matches the given hash. Read more