Struct botan::KeyAgreement [−][src]
pub struct KeyAgreement { /* fields omitted */ }
An object that performs key agreement
Methods
impl KeyAgreement
[src]
impl KeyAgreement
pub fn new(key: &Privkey, kdf: &str) -> Result<KeyAgreement>
[src]
pub fn new(key: &Privkey, kdf: &str) -> Result<KeyAgreement>
Create a new key agreement operator
pub fn agree(
&self,
requested_output: usize,
counterparty_key: &[u8],
salt: &[u8]
) -> Result<Vec<u8>>
[src]
pub fn agree(
&self,
requested_output: usize,
counterparty_key: &[u8],
salt: &[u8]
) -> Result<Vec<u8>>
Perform key agreement operation
Trait Implementations
impl Debug for KeyAgreement
[src]
impl Debug for KeyAgreement
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 KeyAgreement
[src]
impl Drop for KeyAgreement
Auto Trait Implementations
impl !Send for KeyAgreement
impl !Send for KeyAgreement
impl !Sync for KeyAgreement
impl !Sync for KeyAgreement