Struct openssl::ec::EcGroup
[−]
pub struct EcGroup(_);
Methods
impl EcGroup
[src]
fn from_curve_name(nid: Nid) -> Result<EcGroup, ErrorStack>
[src]
Returns the group of a standard named curve.
Methods from Deref<Target = EcGroupRef>
fn components_gfp(
&self,
p: &mut BigNumRef,
a: &mut BigNumRef,
b: &mut BigNumRef,
ctx: &mut BigNumContextRef
) -> Result<(), ErrorStack>
[src]
&self,
p: &mut BigNumRef,
a: &mut BigNumRef,
b: &mut BigNumRef,
ctx: &mut BigNumContextRef
) -> Result<(), ErrorStack>
Places the components of a curve over a prime field in the provided BigNum
s.
fn components_gf2m(
&self,
p: &mut BigNumRef,
a: &mut BigNumRef,
b: &mut BigNumRef,
ctx: &mut BigNumContextRef
) -> Result<(), ErrorStack>
[src]
&self,
p: &mut BigNumRef,
a: &mut BigNumRef,
b: &mut BigNumRef,
ctx: &mut BigNumContextRef
) -> Result<(), ErrorStack>
Places the components of a curve over a binary field in the provided BigNum
s.
fn degree(&self) -> u32
[src]
Returns the degree of the curve.
fn order(
&self,
order: &mut BigNumRef,
ctx: &mut BigNumContextRef
) -> Result<(), ErrorStack>
[src]
&self,
order: &mut BigNumRef,
ctx: &mut BigNumContextRef
) -> Result<(), ErrorStack>
Places the order of the curve in the provided BigNum
.
fn set_asn1_flag(&mut self, flag: Asn1Flag)
[src]
Sets the flag determining if the group corresponds to a named curve or must be explicitly parameterized.
This defaults to EXPLICIT_CURVE
in OpenSSL 1.0.1 and 1.0.2, but NAMED_CURVE
in OpenSSL
1.1.0.
Trait Implementations
impl ForeignType for EcGroup
type CType = EC_GROUP
The raw C type.
type Ref = EcGroupRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut EC_GROUP) -> EcGroup
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut EC_GROUP
Returns a raw pointer to the wrapped value.
impl Drop for EcGroup
impl Deref for EcGroup
type Target = EcGroupRef
The resulting type after dereferencing.
fn deref(&self) -> &EcGroupRef
Dereferences the value.
impl DerefMut for EcGroup
fn deref_mut(&mut self) -> &mut EcGroupRef
Mutably dereferences the value.