pub struct Signer { /* private fields */ }
Expand description
An object that can generate signatures
§Examples
let mut rng = botan::RandomNumberGenerator::new_system().unwrap();
let rsa = botan::Privkey::create("RSA", "2048", &mut rng).unwrap();
let mut signer = botan::Signer::new(&rsa, "PKCS1v15(SHA-256)").unwrap();
signer.update(&[1,2,3]).unwrap();
let signature = signer.finish(&mut rng).unwrap();
Implementations§
Trait Implementations§
impl Send for Signer
impl Sync for Signer
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Unpin for Signer
impl UnwindSafe for Signer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more