Lines Matching refs:pub_key
80 pub fn set_public_key(self, pub_key: BigNum) -> Result<Dh<Public>, ErrorStack> {
83 cvt(DH_set0_key(dh_ptr, pub_key.as_ptr(), ptr::null_mut()))?;
84 mem::forget((self, pub_key));
103 pub fn set_key(self, pub_key: BigNum, priv_key: BigNum) -> Result<Dh<Private>, ErrorStack> {
106 cvt(DH_set0_key(dh_ptr, pub_key.as_ptr(), priv_key.as_ptr()))?;
107 mem::forget((self, pub_key, priv_key));
233 let mut pub_key = ptr::null();
235 DH_get0_key(self.as_ptr(), &mut pub_key, ptr::null_mut());
236 BigNumRef::from_ptr(pub_key as *mut _)
309 pub_key: *mut ffi::BIGNUM,
312 (*dh).pub_key = pub_key;
320 pub_key: *mut *const ffi::BIGNUM,
323 if !pub_key.is_null() {
324 *pub_key = (*dh).pub_key;