pub enum EcdhCurve {
P256,
P384,
P521,
}Expand description
Named curve used by an ECDH-ES private key. The peer must use this same curve.
Variants§
P256
NIST P-256 (32-byte scalar and shared secret).
P384
NIST P-384 (48-byte scalar and shared secret).
P521
NIST P-521 (66-byte scalar and shared secret).
Trait Implementations§
impl Copy for EcdhCurve
impl Eq for EcdhCurve
impl StructuralPartialEq for EcdhCurve
Auto Trait Implementations§
impl Freeze for EcdhCurve
impl RefUnwindSafe for EcdhCurve
impl Send for EcdhCurve
impl Sync for EcdhCurve
impl Unpin for EcdhCurve
impl UnsafeUnpin for EcdhCurve
impl UnwindSafe for EcdhCurve
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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