pub struct Asn1Flag(/* private fields */);
Expand description
Named Curve or Explicit
This type acts as a boolean as to whether the EcGroup
is named or explicit.
Implementations§
source§impl Asn1Flag
impl Asn1Flag
sourcepub const EXPLICIT_CURVE: Asn1Flag = _
pub const EXPLICIT_CURVE: Asn1Flag = _
Curve defined using polynomial parameters
Most applications use a named EC_GROUP curve, however, support is included to explicitly define the curve used to calculate keys This information would need to be known by both endpoint to make communication effective.
OPENSSL_EC_EXPLICIT_CURVE, but that was only added in 1.1. Man page documents that 0 can be used in older versions.
OpenSSL documentation at EC_GROUP
sourcepub const NAMED_CURVE: Asn1Flag = _
pub const NAMED_CURVE: Asn1Flag = _
Standard Curves
Curves that make up the typical encryption use cases. The collection of curves are well known but extensible.
OpenSSL documentation at EC_GROUP
Trait Implementations§
impl Copy for Asn1Flag
impl StructuralPartialEq for Asn1Flag
Auto Trait Implementations§
impl Freeze for Asn1Flag
impl RefUnwindSafe for Asn1Flag
impl Send for Asn1Flag
impl Sync for Asn1Flag
impl Unpin for Asn1Flag
impl UnwindSafe for Asn1Flag
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)