pub trait DH {
type Key: U8Array;
type Pubkey: U8Array;
type Output: U8Array;
// Required methods
fn name() -> &'static str;
fn genkey() -> Self::Key;
fn pubkey(_: &Self::Key) -> Self::Pubkey;
fn dh(_: &Self::Key, _: &Self::Pubkey) -> Result<Self::Output, ()>;
}
Expand description
A DH.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.