Struct openssl::pkey::PKeyCtxRef
[−]
pub struct PKeyCtxRef(_);
Methods
impl PKeyCtxRef
[src]
fn set_rsa_padding(&mut self, pad: Padding) -> Result<(), ErrorStack>
fn rsa_padding(&self) -> Result<Padding, ErrorStack>
fn derive_init(&mut self) -> Result<(), ErrorStack>
fn derive_set_peer(&mut self, peer: &PKeyRef) -> Result<(), ErrorStack>
fn derive(&mut self) -> Result<Vec<u8>, ErrorStack>
Trait Implementations
impl ForeignTypeRef for PKeyCtxRef
type CType = EVP_PKEY_CTX
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.