Struct botan::Verifier [−][src]
pub struct Verifier { /* fields omitted */ }
An object that can perform public key signature verification
Methods
impl Verifier
[src]
impl Verifier
pub fn new(key: &Pubkey, padding: &str) -> Result<Verifier>
[src]
pub fn new(key: &Pubkey, padding: &str) -> Result<Verifier>
Create a new verifier object
pub fn update(&self, data: &[u8]) -> Result<()>
[src]
pub fn update(&self, data: &[u8]) -> Result<()>
Add more bytes of the message that will be verified
pub fn finish(&self, signature: &[u8]) -> Result<bool>
[src]
pub fn finish(&self, signature: &[u8]) -> Result<bool>
Verify the provided signature and return true if valid
Trait Implementations
impl Debug for Verifier
[src]
impl Debug for Verifier
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drop for Verifier
[src]
impl Drop for Verifier