Struct openssl::ec::EcKeyBuilder
[−]
pub struct EcKeyBuilder(_);
Methods
impl EcKeyBuilder
[src]
fn new() -> Result<EcKeyBuilder, ErrorStack>
[src]
fn build(self) -> EcKey
[src]
Methods from Deref<Target = EcKeyBuilderRef>
fn set_group(
&mut self,
group: &EcGroupRef
) -> Result<&mut EcKeyBuilderRef, ErrorStack>
[src]
&mut self,
group: &EcGroupRef
) -> Result<&mut EcKeyBuilderRef, ErrorStack>
fn set_public_key(
&mut self,
public_key: &EcPointRef
) -> Result<&mut EcKeyBuilderRef, ErrorStack>
[src]
&mut self,
public_key: &EcPointRef
) -> Result<&mut EcKeyBuilderRef, ErrorStack>
fn generate_key(&mut self) -> Result<&mut EcKeyBuilderRef, ErrorStack>
[src]
fn set_public_key_affine_coordinates(
&mut self,
x: &BigNumRef,
y: &BigNumRef
) -> Result<&mut EcKeyBuilderRef, ErrorStack>
[src]
&mut self,
x: &BigNumRef,
y: &BigNumRef
) -> Result<&mut EcKeyBuilderRef, ErrorStack>
Sets the public key based on affine coordinates.
fn set_private_key(
&mut self,
key: &BigNumRef
) -> Result<&mut EcKeyBuilderRef, ErrorStack>
[src]
&mut self,
key: &BigNumRef
) -> Result<&mut EcKeyBuilderRef, ErrorStack>
Sets the private key.
Trait Implementations
impl ForeignType for EcKeyBuilder
type CType = EC_KEY
The raw C type.
type Ref = EcKeyBuilderRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut EC_KEY) -> EcKeyBuilder
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut EC_KEY
Returns a raw pointer to the wrapped value.
impl Drop for EcKeyBuilder
impl Deref for EcKeyBuilder
type Target = EcKeyBuilderRef
The resulting type after dereferencing.
fn deref(&self) -> &EcKeyBuilderRef
Dereferences the value.
impl DerefMut for EcKeyBuilder
fn deref_mut(&mut self) -> &mut EcKeyBuilderRef
Mutably dereferences the value.