Lines Matching refs:DH
75 DH *DH_new(void) { in DH_new()
76 DH *dh = OPENSSL_malloc(sizeof(DH)); in DH_new()
78 OPENSSL_PUT_ERROR(DH, ERR_R_MALLOC_FAILURE); in DH_new()
82 OPENSSL_memset(dh, 0, sizeof(DH)); in DH_new()
92 void DH_free(DH *dh) { in DH_free()
117 void DH_get0_key(const DH *dh, const BIGNUM **out_pub_key, in DH_get0_key()
127 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) { in DH_set0_key()
141 void DH_get0_pqg(const DH *dh, const BIGNUM **out_p, const BIGNUM **out_q, in DH_get0_pqg()
154 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) { in DH_set0_pqg()
178 int DH_generate_parameters_ex(DH *dh, int prime_bits, int generator, BN_GENCB *cb) { in DH_generate_parameters_ex()
234 OPENSSL_PUT_ERROR(DH, DH_R_BAD_GENERATOR); in DH_generate_parameters_ex()
282 OPENSSL_PUT_ERROR(DH, ERR_R_BN_LIB); in DH_generate_parameters_ex()
292 int DH_generate_key(DH *dh) { in DH_generate_key()
299 OPENSSL_PUT_ERROR(DH, DH_R_MODULUS_TOO_LARGE); in DH_generate_key()
366 OPENSSL_PUT_ERROR(DH, ERR_R_BN_LIB); in DH_generate_key()
379 int DH_compute_key(unsigned char *out, const BIGNUM *peers_key, DH *dh) { in DH_compute_key()
386 OPENSSL_PUT_ERROR(DH, DH_R_MODULUS_TOO_LARGE); in DH_compute_key()
401 OPENSSL_PUT_ERROR(DH, DH_R_NO_PRIVATE_VALUE); in DH_compute_key()
411 OPENSSL_PUT_ERROR(DH, DH_R_INVALID_PUBKEY); in DH_compute_key()
417 OPENSSL_PUT_ERROR(DH, ERR_R_BN_LIB); in DH_compute_key()
432 int DH_size(const DH *dh) { return BN_num_bytes(dh->p); } in DH_size()
434 unsigned DH_num_bits(const DH *dh) { return BN_num_bits(dh->p); } in DH_num_bits()
436 int DH_up_ref(DH *dh) { in DH_up_ref()
456 static int int_dh_param_copy(DH *to, const DH *from, int is_x942) { in int_dh_param_copy()
489 DH *DHparams_dup(const DH *dh) { in DHparams_dup()
490 DH *ret = DH_new(); in DHparams_dup()
513 int DH_set_ex_data(DH *d, int idx, void *arg) { in DH_set_ex_data()
517 void *DH_get_ex_data(DH *d, int idx) { in DH_get_ex_data()