Lines Matching refs:public_key
232 pub fn public_key(&self) -> &BigNumRef { in public_key() function
247 pub fn compute_key(&self, public_key: &BigNumRef) -> Result<Vec<u8>, ErrorStack> { in compute_key()
253 public_key.as_ptr(), in compute_key()
396 assert_eq!(key1.public_key(), key2.public_key()); in test_dh_stored_restored()
408 .set_public_key(key1.public_key().to_owned().unwrap()) in test_set_keys()
411 assert_eq!(key1.public_key(), key2.public_key()); in test_set_keys()
416 key1.public_key().to_owned().unwrap(), in test_set_keys()
420 assert_eq!(key1.public_key(), key3.public_key()); in test_set_keys()
446 let shared_a = dh1.compute_key(dh2.public_key()).unwrap(); in test_dh_generate_key_compute_key()
447 let shared_b = dh2.compute_key(dh1.public_key()).unwrap(); in test_dh_generate_key_compute_key()
465 let shared_a = dh1.compute_key(dh2.public_key()).unwrap(); in test_dh_generate_params_generate_key_compute_key()
466 let shared_b = dh2.compute_key(dh1.public_key()).unwrap(); in test_dh_generate_params_generate_key_compute_key()