Struct openssl::ec::EcGroup
[−]
[src]
pub struct EcGroup(_);
Methods
impl EcGroup
[src]
fn from_curve_name(nid: Nid) -> Result<EcGroup, ErrorStack>
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>
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>
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
Returns the degree of the curve.
fn order(&self,
order: &mut BigNumRef,
ctx: &mut BigNumContextRef)
-> Result<(), ErrorStack>
order: &mut BigNumRef,
ctx: &mut BigNumContextRef)
-> Result<(), ErrorStack>
Places the order of the curve in the provided BigNum
.
Trait Implementations
impl OpenSslType for EcGroup
[src]
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.
impl Drop for EcGroup
[src]
impl Deref for EcGroup
[src]
type Target = EcGroupRef
The resulting type after dereferencing
fn deref(&self) -> &EcGroupRef
The method called to dereference a value
impl DerefMut for EcGroup
[src]
fn deref_mut(&mut self) -> &mut EcGroupRef
The method called to mutably dereference a value