pub struct DhRef<T>(_, _);
Implementations
sourceimpl<T> DhRef<T>where
T: HasParams,
impl<T> DhRef<T>where
T: HasParams,
sourcepub fn params_to_pem(&self) -> Result<Vec<u8>, ErrorStack>
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
.
sourcepub fn params_to_der(&self) -> Result<Vec<u8>, ErrorStack>
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
sourceimpl<T> ForeignTypeRef for DhRef<T>
impl<T> ForeignTypeRef for DhRef<T>
impl<T> Send for DhRef<T>
impl<T> Sync for DhRef<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for DhRef<T>
impl<T> Unpin for DhRef<T>where
T: Unpin,
impl<T> UnwindSafe for DhRef<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more