Struct openssl::dh::Dh
[−]
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.
fn get_1024_160() -> Result<Dh, ErrorStack>
Requires the v102
or v110
features and OpenSSL 1.0.2 or OpenSSL 1.1.0.
fn get_2048_224() -> Result<Dh, ErrorStack>
Requires the v102
or v110
features and OpenSSL 1.0.2 or OpenSSL 1.1.0.
fn get_2048_256() -> Result<Dh, ErrorStack>
Requires the v102
or v110
features and OpenSSL 1.0.2 or OpenSSL 1.1.0.
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 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
The method called to dereference a value