Trait askar_crypto::sign::KeySigVerify[][src]

pub trait KeySigVerify {
    fn verify_signature(
        &self,
        message: &[u8],
        signature: &[u8],
        sig_type: Option<SignatureType>
    ) -> Result<bool, Error>; }
Expand description

Signature verification operations

Required methods

fn verify_signature(
    &self,
    message: &[u8],
    signature: &[u8],
    sig_type: Option<SignatureType>
) -> Result<bool, Error>
[src]

Expand description

Check the validity of signature over a message with the specified signature type.

Loading content...

Implementors

impl KeySigVerify for Ed25519KeyPair[src]

This is supported on crate feature ed25519 only.

fn verify_signature(
    &self,
    message: &[u8],
    signature: &[u8],
    sig_type: Option<SignatureType>
) -> Result<bool, Error>
[src]

impl KeySigVerify for K256KeyPair[src]

This is supported on crate feature k256 only.

fn verify_signature(
    &self,
    message: &[u8],
    signature: &[u8],
    sig_type: Option<SignatureType>
) -> Result<bool, Error>
[src]

impl KeySigVerify for P256KeyPair[src]

This is supported on crate feature p256 only.

fn verify_signature(
    &self,
    message: &[u8],
    signature: &[u8],
    sig_type: Option<SignatureType>
) -> Result<bool, Error>
[src]

impl KeySigVerify for AnyKey[src]

fn verify_signature(
    &self,
    message: &[u8],
    signature: &[u8],
    sig_type: Option<SignatureType>
) -> Result<bool, Error>
[src]

Loading content...