Struct openssl::dh::Dh
[−]
[src]
pub struct Dh(_);
Methods
impl Dh
[src]
fn from_params(p: BigNum, g: BigNum, q: BigNum) -> Result<Dh, ErrorStack>
fn from_pem(pem: &[u8]) -> Result<Dh, ErrorStack>
Deserializes a value from PEM-formatted data.
fn from_der(der: &[u8]) -> Result<Dh, ErrorStack>
Deserializes a value from DER-formatted data.
Methods from Deref<Target=DhRef>
fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
Serializes this value to PEM.
fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes this value to DER.
Trait Implementations
impl OpenSslType for Dh
[src]
type CType = DH
The raw C type.
type Ref = DhRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut DH) -> Dh
Constructs an instance of this type from its raw type.
impl Drop for Dh
[src]
impl Deref for Dh
[src]
type Target = DhRef
The resulting type after dereferencing
fn deref(&self) -> &DhRef
The method called to dereference a value