Struct openssl::dh::DhRef [−][src]
pub struct DhRef<T>(_, _);
Methods
impl<T> DhRef<T> where
T: HasParams,
[src]
impl<T> DhRef<T> where
T: HasParams,
pub fn params_to_pem(&self) -> Result<Vec<u8>, ErrorStack>
[src]
pub fn params_to_pem(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the parameters into a PEM-encoded PKCS#3 DHparameter structure.
The output will have a header of -----BEGIN DH PARAMETERS-----
.
This corresponds to PEM_write_bio_DHparams
.
pub fn params_to_der(&self) -> Result<Vec<u8>, ErrorStack>
[src]
pub fn params_to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the parameters into a DER-encoded PKCS#3 DHparameter structure.
This corresponds to i2d_DHparams
.
Trait Implementations
impl<T> Borrow<DhRef<T>> for Dh<T>
[src]
impl<T> Borrow<DhRef<T>> for Dh<T>
impl<T> AsRef<DhRef<T>> for Dh<T>
[src]
impl<T> AsRef<DhRef<T>> for Dh<T>
impl<T> ForeignTypeRef for DhRef<T>
[src]
impl<T> ForeignTypeRef for DhRef<T>
type CType = DH
The raw C type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
[src]
ⓘImportant traits for &'a mut R
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
[src]
ⓘImportant traits for &'a mut R
unsafe fn from_ptr_mut<'a>(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
[src]
fn as_ptr(&self) -> *mut Self::CType
Returns a raw pointer to the wrapped value.
impl<T> Send for DhRef<T>
[src]
impl<T> Send for DhRef<T>
impl<T> Sync for DhRef<T>
[src]
impl<T> Sync for DhRef<T>