Skip to main content

BrainpoolP256Verifier

Trait BrainpoolP256Verifier 

Source
pub trait BrainpoolP256Verifier {
    type Error: Error + 'static;

    // Required method
    fn verify(
        &mut self,
        message: &[u8],
        r: &[u8; 32],
        s: &[u8; 32],
    ) -> Result<bool, Self::Error>;
}
Expand description

An already commissioned Brainpool P-256 public key for verifying ECDSA/SHA-256.

Implementations must bind the key to the brainpoolP256r1 curve before use. Hash the original message bytes once with SHA-256. Each signature component is an unsigned 32-byte big-endian integer. Return Ok(true) only for a valid signature under the bound key, Ok(false) for a mismatch, or an error if the provider could not perform verification.

Required Associated Types§

Source

type Error: Error + 'static

Required Methods§

Source

fn verify( &mut self, message: &[u8], r: &[u8; 32], s: &[u8; 32], ) -> Result<bool, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§