pub struct Ecdh { /* private fields */ }
Implementations§
Source§impl Ecdh
impl Ecdh
pub fn new(curve: EllipticCurve) -> Result<Self>
pub fn new_with_secret<T: AsRef<[u8]>>( curve: EllipticCurve, secret: T, ) -> Result<Self>
pub fn pack_public(&self, compress: bool) -> Result<Vec<u8>>
pub fn pack_secret(&self) -> Result<Vec<u8>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ecdh
impl RefUnwindSafe for Ecdh
impl Send for Ecdh
impl Sync for Ecdh
impl Unpin for Ecdh
impl UnwindSafe for Ecdh
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