Struct openssl::dh::Dh
[−]
pub struct Dh(_);
Methods
impl Dh
[src]
fn from_params(p: BigNum, g: BigNum, q: BigNum) -> Result<Dh, ErrorStack>
[src]
fn from_pem(pem: &[u8]) -> Result<Dh, ErrorStack>
[src]
Deserializes a value from PEM-formatted data.
fn from_der(der: &[u8]) -> Result<Dh, ErrorStack>
[src]
Deserializes a value from DER-formatted data.
Methods from Deref<Target = DhRef>
fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
[src]
Serializes this value to PEM.
fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
[src]
Serializes this value to DER.
Trait Implementations
impl ForeignType for Dh
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.
fn as_ptr(&self) -> *mut DH
Returns a raw pointer to the wrapped value.
impl Drop for Dh
impl Deref for Dh
type Target = DhRef
The resulting type after dereferencing.
fn deref(&self) -> &DhRef
Dereferences the value.