Skip to main content

AlgorithmAgreement

Trait AlgorithmAgreement 

Source
pub trait AlgorithmAgreement {
    type Error;

    // Required method
    fn algorithms<W: Work>(
        &self,
        signed: AlgorithmIdentifier<'_>,
        outer: AlgorithmIdentifier<'_>,
        work: &W,
    ) -> Result<Resolution<bool>, Self::Error>;
}
Expand description

Semantic agreement supplied by the same selected signature verifier.

Resolve both original identifiers, including algorithm-specific defaults and parameter validity, before comparing. Equal malformed parameters do not agree; generic absent/NULL equality is not this operation. Unsupported and malformed inputs remain distinct from a completed different identity. Original algorithm readers preserve their own source/depth and current work. No second registry or cryptographic engine is selected by this trait.

Required Associated Types§

Source

type Error

Original provider, policy or resource cause.

Required Methods§

Source

fn algorithms<W: Work>( &self, signed: AlgorithmIdentifier<'_>, outer: AlgorithmIdentifier<'_>, work: &W, ) -> Result<Resolution<bool>, Self::Error>

Compare fully resolved identities; no signature arithmetic yet.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§