Skip to main content

Mathematical

Struct Mathematical 

Source
pub struct Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G> { /* private fields */ }
Expand description

CMS facts from the actual PDF ByteRange pass. The private constructor prevents a result over caller replacement content from entering PAdES.

Implementations§

Source§

impl<'v, 'p, 'm, 'd, 'a, 's, D: Copy + Eq, G: Copy + Eq> Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>

Source

pub fn checks(&self) -> &DocumentChecks<'v>

Independent content and arithmetic answers of the original PDF pass.

Source

pub fn signature(&self) -> Signature<'a, 's, D, G>

The exact original signature whose ByteRange was actually processed.

Source

pub fn input_verified(&self) -> bool

Both the original range input and its selected-key signature passed. Certificate association, paths and application trust remain separate.

Source

pub fn bind<'r, 'path, 'q, P: AsnDigest<'q>>( &'r self, certificate: &'path Certificate<'d>, path: Option<&'path CheckedPath<'d>>, provider: &'q P, parent: &Reader<'q>, ) -> Result<Bound<'v, 'p, 'm, 'd, 'a, 's, 'path, D, G>, BindError<P::Error>>
where 'd: 'q,

Compares the actual checked effective key, original SID, included certificate and all protected ESS/path restrictions through their one existing shared kernel. It does not replay the PDF or its signature.

§Panics

Panics if the internal single-root verification invariant is violated.

Auto Trait Implementations§

§

impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !Freeze for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>

§

impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !RefUnwindSafe for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>

§

impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !Send for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>

§

impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !Sync for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>

§

impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !UnwindSafe for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>

§

impl<'v, 'p, 'm, 'd, 'a, 's, D, G> Forget for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>

§

impl<'v, 'p, 'm, 'd, 'a, 's, D, G> Unpin for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
where &'v Preparation<'p, 'm, 'd, 'a, 's, D, G>: Unpin,

§

impl<'v, 'p, 'm, 'd, 'a, 's, D, G> UnsafeUnpin for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
where &'v Preparation<'p, 'm, 'd, 'a, 's, D, G>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.