Struct botan::Signer[][src]

pub struct Signer { /* fields omitted */ }

An object that can generate signatures

Examples

let rng = botan::RandomNumberGenerator::new_system().unwrap();
let rsa = botan::Privkey::create("RSA", "2048", &rng).unwrap();
let signer = botan::Signer::new(&rsa, "PKCS1v15(SHA-256)").unwrap();
signer.update(&[1,2,3]).unwrap();
let signature = signer.finish(&rng).unwrap();

Methods

impl Signer
[src]

Create a new signature operator

Add more bytes of the message that will be signed

Complete and return the signature

Trait Implementations

impl Debug for Signer
[src]

Formats the value using the given formatter. Read more

impl Drop for Signer
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Signer

impl !Sync for Signer