pub struct Algorithm {
pub(crate) curve: &'static Curve,
pub(crate) ecdh: fn(out: &mut [u8], private_key: &Seed, peer_public_key: Input<'_>) -> Result<(), Unspecified>,
}
Expand description
A key agreement algorithm.
Fields§
§curve: &'static Curve
§ecdh: fn(out: &mut [u8], private_key: &Seed, peer_public_key: Input<'_>) -> Result<(), Unspecified>
Trait Implementations§
source§impl PartialEq for Algorithm
impl PartialEq for Algorithm
impl Eq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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