Struct botan::KeyAgreement [−][src]
An object that performs key agreement
Implementations
impl KeyAgreement
[src]
pub fn new(key: &Privkey, kdf: &str) -> Result<KeyAgreement>
[src]
Create a new key agreement operator
pub fn agree(
&self,
requested_output: usize,
counterparty_key: &[u8],
salt: &[u8]
) -> Result<Vec<u8>>
[src]
&self,
requested_output: usize,
counterparty_key: &[u8],
salt: &[u8]
) -> Result<Vec<u8>>
Perform key agreement operation
Trait Implementations
impl Debug for KeyAgreement
[src]
impl Drop for KeyAgreement
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyAgreement
impl !Send for KeyAgreement
impl !Sync for KeyAgreement
impl Unpin for KeyAgreement
impl UnwindSafe for KeyAgreement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,