pub struct Ecdh<C: Curve>(pub C);
Expand description

Marker type representing the ECDH (Elliptic Curve Diffie-Hellman) algorithm.

Tuple Fields§

§0: C

Trait Implementations§

source§

impl<C: Curve> Algorithm for Ecdh<C>

source§

impl<'a> Export<Ecdh<Curve25519>, Private> for AsymmetricKey<Ecdh<Curve25519>, Private>

source§

impl<'a> Export<Ecdh<Curve25519>, Public> for AsymmetricKey<Ecdh<Curve25519>, Public>

source§

impl<'a> Export<Ecdh<NistP256>, Private> for AsymmetricKey<Ecdh<NistP256>, Private>

source§

impl<'a> Export<Ecdh<NistP256>, Public> for AsymmetricKey<Ecdh<NistP256>, Public>

source§

impl<'a> Export<Ecdh<NistP384>, Private> for AsymmetricKey<Ecdh<NistP384>, Private>

source§

impl<'a> Export<Ecdh<NistP384>, Public> for AsymmetricKey<Ecdh<NistP384>, Public>

source§

impl<'a> Export<Ecdh<NistP521>, Private> for AsymmetricKey<Ecdh<NistP521>, Private>

source§

impl<'a> Export<Ecdh<NistP521>, Public> for AsymmetricKey<Ecdh<NistP521>, Public>

source§

impl<'a> Import<'a, Ecdh<Curve25519>, Private> for AsymmetricKey<Ecdh<Curve25519>, Private>

§

type Blob = &'a Blob<EccKeyPrivateBlob>

source§

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

source§

impl<'a> Import<'a, Ecdh<Curve25519>, Public> for AsymmetricKey<Ecdh<Curve25519>, Public>

§

type Blob = &'a Blob<EccKeyPublicBlob>

source§

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

source§

impl<'a> Import<'a, Ecdh<NistP256>, Private> for AsymmetricKey<Ecdh<NistP256>, Private>

§

type Blob = &'a Blob<EccKeyPrivateBlob>

source§

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

source§

impl<'a> Import<'a, Ecdh<NistP256>, Public> for AsymmetricKey<Ecdh<NistP256>, Public>

§

type Blob = &'a Blob<EccKeyPublicBlob>

source§

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

source§

impl<'a> Import<'a, Ecdh<NistP384>, Private> for AsymmetricKey<Ecdh<NistP384>, Private>

§

type Blob = &'a Blob<EccKeyPrivateBlob>

source§

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

source§

impl<'a> Import<'a, Ecdh<NistP384>, Public> for AsymmetricKey<Ecdh<NistP384>, Public>

§

type Blob = &'a Blob<EccKeyPublicBlob>

source§

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

source§

impl<'a> Import<'a, Ecdh<NistP521>, Private> for AsymmetricKey<Ecdh<NistP521>, Private>

§

type Blob = &'a Blob<EccKeyPrivateBlob>

source§

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

source§

impl<'a> Import<'a, Ecdh<NistP521>, Public> for AsymmetricKey<Ecdh<NistP521>, Public>

§

type Blob = &'a Blob<EccKeyPublicBlob>

source§

fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>

source§

impl<C: Curve> NotNeedsKeySize for Ecdh<C>

Auto Trait Implementations§

§

impl<C> RefUnwindSafe for Ecdh<C>where C: RefUnwindSafe,

§

impl<C> Send for Ecdh<C>where C: Send,

§

impl<C> Sync for Ecdh<C>where C: Sync,

§

impl<C> Unpin for Ecdh<C>where C: Unpin,

§

impl<C> UnwindSafe for Ecdh<C>where C: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.