Struct openssl::pkey::PKeyRef
[−]
[src]
pub struct PKeyRef(_);
Methods
impl PKeyRef
[src]
fn rsa(&self) -> Result<Rsa, ErrorStack>
Get a reference to the interal RSA key for direct access to the key components
fn private_key_to_pem(&self) -> Result<Vec<u8>, ErrorStack>
Stores private key as a PEM
fn public_key_to_pem(&self) -> Result<Vec<u8>, ErrorStack>
Encode public key in PEM format
fn public_key_to_der(&self) -> Result<Vec<u8>, ErrorStack>
Encode public key in DER format
fn public_eq(&self, other: &PKeyRef) -> bool
Trait Implementations
impl OpenSslTypeRef for PKeyRef
[src]
type CType = EVP_PKEY
The raw C type.
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(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.