Struct openssl::pkey::PKeyCtx
[−]
pub struct PKeyCtx(_);
Methods
impl PKeyCtx
[src]
fn from_pkey(pkey: &PKeyRef) -> Result<PKeyCtx, ErrorStack>
Methods from Deref<Target=PKeyCtxRef>
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 ForeignType for PKeyCtx
type CType = EVP_PKEY_CTX
The raw C type.
type Ref = PKeyCtxRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut EVP_PKEY_CTX) -> PKeyCtx
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut EVP_PKEY_CTX
Returns a raw pointer to the wrapped value.
impl Drop for PKeyCtx
impl Deref for PKeyCtx
type Target = PKeyCtxRef
The resulting type after dereferencing
fn deref(&self) -> &PKeyCtxRef
The method called to dereference a value
impl DerefMut for PKeyCtx
fn deref_mut(&mut self) -> &mut PKeyCtxRef
The method called to mutably dereference a value