Lines Matching refs:priv_key
90 pub fn set_private_key(self, priv_key: BigNum) -> Result<Dh<Private>, ErrorStack> { in set_private_key()
93 cvt(DH_set0_key(dh_ptr, ptr::null_mut(), priv_key.as_ptr()))?; in set_private_key()
94 mem::forget(priv_key); in set_private_key()
103 pub fn set_key(self, pub_key: BigNum, priv_key: BigNum) -> Result<Dh<Private>, ErrorStack> { in set_key()
106 cvt(DH_set0_key(dh_ptr, pub_key.as_ptr(), priv_key.as_ptr()))?; in set_key()
107 mem::forget((self, pub_key, priv_key)); in set_key()
263 let mut priv_key = ptr::null(); in private_key() localVariable
265 DH_get0_key(self.as_ptr(), ptr::null_mut(), &mut priv_key); in private_key()
266 BigNumRef::from_ptr(priv_key as *mut _) in private_key()
310 priv_key: *mut ffi::BIGNUM,
313 (*dh).priv_key = priv_key;
321 priv_key: *mut *const ffi::BIGNUM,
326 if !priv_key.is_null() {
327 *priv_key = (*dh).priv_key;