Trait taple_core::crypto::DSA

source ·
pub trait DSA {
    // Required methods
    fn sign(&self, payload: Payload) -> Result<Vec<u8>, Error>;
    fn verify(&self, payload: Payload, signature: &[u8]) -> Result<(), Error>;
}
Expand description

Used for Digital Signature Algorithm (DSA)

Required Methods§

source

fn sign(&self, payload: Payload) -> Result<Vec<u8>, Error>

Performs sign operation

source

fn verify(&self, payload: Payload, signature: &[u8]) -> Result<(), Error>

Performs verify operation

Implementors§