Struct botan::Decryptor [−][src]
pub struct Decryptor { /* fields omitted */ }
An object that can perform public key decryption
Methods
impl Decryptor
[src]
impl Decryptor
pub fn new(key: &Privkey, padding: &str) -> Result<Decryptor>
[src]
pub fn new(key: &Privkey, padding: &str) -> Result<Decryptor>
Create a new decryption object
pub fn decrypt(&self, ctext: &[u8]) -> Result<Vec<u8>>
[src]
pub fn decrypt(&self, ctext: &[u8]) -> Result<Vec<u8>>
Decrypt a message
Trait Implementations
impl Debug for Decryptor
[src]
impl Debug for Decryptor
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 Decryptor
[src]
impl Drop for Decryptor