Skip to main content

HashXml

Trait HashXml 

Source
pub trait HashXml: SignatureXml {
    // Required method
    fn visit_hash_uses<VE, W: Work>(
        &self,
        snapshot: Snapshot<Self::Document, Self::Generation>,
        signature: Self::Id,
        execution: &W,
        visitor: impl FnMut(HashUse<Self::Id>) -> Result<(), VE>,
    ) -> Result<HashCompleteness<Self::Id>, VisitError<Self::Error, VE>>;
}
Expand description

XML-owned projection from ONE existing selected verification operation.

Required Methods§

Source

fn visit_hash_uses<VE, W: Work>( &self, snapshot: Snapshot<Self::Document, Self::Generation>, signature: Self::Id, execution: &W, visitor: impl FnMut(HashUse<Self::Id>) -> Result<(), VE>, ) -> Result<HashCompleteness<Self::Id>, VisitError<Self::Error, VE>>

Preserve original message/PSS-MGF/direct/signed-Manifest uses and full identity/default semantics from the actual parsed method/receipts. Never reparse SignedInfo/PSS, resolve another provider, rehash/reverify payload, classify by digest width, or map an unknown URI into OtherKnown. Intrinsic belongs only to a pure SignatureMessage; PH suites name their real digest. Current Work admits all lookup/traversal and any retention. Visitor and processing refusals remain sticky separate original causes. Partial or empty unprocessed catalogues must not be relabelled Complete.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§