Struct openssl::ec::EcKeyRef
[−]
pub struct EcKeyRef(_);
Methods
impl EcKeyRef
[src]
fn private_key_to_pem(&self) -> Result<Vec<u8>, ErrorStack>
[src]
Serializes the private key to PEM.
fn private_key_to_pem_passphrase(
&self,
cipher: Cipher,
passphrase: &[u8]
) -> Result<Vec<u8>, ErrorStack>
[src]
&self,
cipher: Cipher,
passphrase: &[u8]
) -> Result<Vec<u8>, ErrorStack>
Serializes the private key to PEM, encrypting it with the specified symmetric cipher and passphrase.
fn private_key_to_der(&self) -> Result<Vec<u8>, ErrorStack>
[src]
Serializes the private key to DER.
fn group(&self) -> Option<&EcGroupRef>
[src]
fn public_key(&self) -> Option<&EcPointRef>
[src]
fn private_key(&self) -> Option<&BigNumRef>
[src]
fn check_key(&self) -> Result<(), ErrorStack>
[src]
Checks the key for validity.
fn to_owned(&self) -> Result<EcKey, ErrorStack>
[src]
Trait Implementations
impl ForeignTypeRef for EcKeyRef
type CType = EC_KEY
The raw C type.
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
[src]
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
[src]
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
[src]
Returns a raw pointer to the wrapped value.