pqcrypto_std::mldsa

Trait VerifyingKey

Source
pub trait VerifyingKey<const K: usize, const L: usize, const CT_BYTES: usize, const Z_BYTES: usize, const H_BYTES: usize, const W1_BYTES: usize, const SIG_SIZE: usize> {
    // Required methods
    fn verify(&self, m: &[u8], sig: &[u8]) -> Result<(), VerifyError>;
    fn encode(&self, dst: &mut [u8]);
    fn decode(src: &[u8]) -> Self;
}

Required Methods§

Source

fn verify(&self, m: &[u8], sig: &[u8]) -> Result<(), VerifyError>

Source

fn encode(&self, dst: &mut [u8])

Source

fn decode(src: &[u8]) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, const K: usize, const L: usize, const CT_BYTES: usize, const Z_BYTES: usize, const H_BYTES: usize, const W1_BYTES: usize, const SIG_SIZE: usize> VerifyingKey<K, L, CT_BYTES, Z_BYTES, H_BYTES, W1_BYTES, SIG_SIZE> for T
where T: VerifyingKeyInternal<K, L, CT_BYTES, Z_BYTES, H_BYTES, W1_BYTES, SIG_SIZE> + From<PublicKey<K, L>>,