Struct win_crypto_ng::asymmetric::Ecdh
source · 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<'a> Export<Ecdh<Curve25519>, Private> for AsymmetricKey<Ecdh<Curve25519>, Private>
impl<'a> Export<Ecdh<Curve25519>, Private> for AsymmetricKey<Ecdh<Curve25519>, Private>
source§impl<'a> Export<Ecdh<Curve25519>, Public> for AsymmetricKey<Ecdh<Curve25519>, Public>
impl<'a> Export<Ecdh<Curve25519>, Public> for AsymmetricKey<Ecdh<Curve25519>, Public>
source§impl<'a> Import<'a, Ecdh<Curve25519>, Private> for AsymmetricKey<Ecdh<Curve25519>, Private>
impl<'a> Import<'a, Ecdh<Curve25519>, Private> for AsymmetricKey<Ecdh<Curve25519>, Private>
type Blob = &'a Blob<EccKeyPrivateBlob>
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>
impl<'a> Import<'a, Ecdh<Curve25519>, Public> for AsymmetricKey<Ecdh<Curve25519>, Public>
type Blob = &'a Blob<EccKeyPublicBlob>
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>
impl<'a> Import<'a, Ecdh<NistP256>, Private> for AsymmetricKey<Ecdh<NistP256>, Private>
type Blob = &'a Blob<EccKeyPrivateBlob>
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>
impl<'a> Import<'a, Ecdh<NistP256>, Public> for AsymmetricKey<Ecdh<NistP256>, Public>
type Blob = &'a Blob<EccKeyPublicBlob>
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>
impl<'a> Import<'a, Ecdh<NistP384>, Private> for AsymmetricKey<Ecdh<NistP384>, Private>
type Blob = &'a Blob<EccKeyPrivateBlob>
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>
impl<'a> Import<'a, Ecdh<NistP384>, Public> for AsymmetricKey<Ecdh<NistP384>, Public>
type Blob = &'a Blob<EccKeyPublicBlob>
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>
impl<'a> Import<'a, Ecdh<NistP521>, Private> for AsymmetricKey<Ecdh<NistP521>, Private>
type Blob = &'a Blob<EccKeyPrivateBlob>
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>
impl<'a> Import<'a, Ecdh<NistP521>, Public> for AsymmetricKey<Ecdh<NistP521>, Public>
type Blob = &'a Blob<EccKeyPublicBlob>
fn import( algo: A, provider: &AsymmetricAlgorithm, blob: Self::Blob ) -> Result<AsymmetricKey<A, P>>
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> 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