[][src]Struct yaca::VerifyContext

pub struct VerifyContext { /* fields omitted */ }

Context for Verify operations

Implementations

impl VerifyContext[src]

pub fn initialize(
    algo: &DigestAlgorithm,
    pub_key: &Key
) -> Result<VerifyContext>
[src]

Initializes a signature verification context for asymmetric signatures

pub fn update(&self, message: &[u8]) -> Result<()>[src]

Feeds the message into the digital signature verification algorithm

  • message is a chunk of data used to calculate the signature from.

pub fn finalize(&self, signature: &[u8]) -> Result<bool>[src]

Performs the verification

  • signature is a message signature to be verified.
  • Returns true in case of a successful verification, false otherwise.

Trait Implementations

impl ContextWithPadding for VerifyContext[src]

impl Drop for VerifyContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.