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