#[repr(u8)]pub enum EcdhVariant {
P256 = 0,
P384 = 1,
P521 = 2,
}Expand description
The served curves. (Each algorithm interface names its closed set
of parameterizations <algorithm>-variant; ECDH’s parameter is
the curve alone.)
Variants§
P256 = 0
NIST P-256 (secp256r1).
P384 = 1
NIST P-384 (secp384r1).
P521 = 2
NIST P-521 (secp521r1). Declared because the WebCrypto
registry serves it and enum growth is breaking; no current
implementation of this package serves it — expect
error.unsupported unless composed with a provider that
specifically offers it.
Trait Implementations§
Source§impl Clone for EcdhVariant
impl Clone for EcdhVariant
Source§fn clone(&self) -> EcdhVariant
fn clone(&self) -> EcdhVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EcdhVariant
impl Debug for EcdhVariant
Source§impl Ord for EcdhVariant
impl Ord for EcdhVariant
Source§fn cmp(&self, other: &EcdhVariant) -> Ordering
fn cmp(&self, other: &EcdhVariant) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EcdhVariant
impl PartialEq for EcdhVariant
Source§fn eq(&self, other: &EcdhVariant) -> bool
fn eq(&self, other: &EcdhVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EcdhVariant
impl PartialOrd for EcdhVariant
impl Copy for EcdhVariant
impl Eq for EcdhVariant
impl StructuralPartialEq for EcdhVariant
Auto Trait Implementations§
impl Freeze for EcdhVariant
impl RefUnwindSafe for EcdhVariant
impl Send for EcdhVariant
impl Sync for EcdhVariant
impl Unpin for EcdhVariant
impl UnsafeUnpin for EcdhVariant
impl UnwindSafe for EcdhVariant
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