• Home
  • Raw
  • Download

Lines Matching refs:DH

76 DH *DH_new(void) {  in DH_new()
77 DH *dh = (DH *)OPENSSL_malloc(sizeof(DH)); in DH_new()
79 OPENSSL_PUT_ERROR(DH, ERR_R_MALLOC_FAILURE); in DH_new()
83 memset(dh, 0, sizeof(DH)); in DH_new()
93 void DH_free(DH *dh) { in DH_free()
118 int DH_generate_parameters_ex(DH *dh, int prime_bits, int generator, BN_GENCB *cb) { in DH_generate_parameters_ex()
176 OPENSSL_PUT_ERROR(DH, DH_R_BAD_GENERATOR); in DH_generate_parameters_ex()
224 OPENSSL_PUT_ERROR(DH, ERR_R_BN_LIB); in DH_generate_parameters_ex()
234 int DH_generate_key(DH *dh) { in DH_generate_key()
244 OPENSSL_PUT_ERROR(DH, DH_R_MODULUS_TOO_LARGE); in DH_generate_key()
306 OPENSSL_PUT_ERROR(DH, ERR_R_BN_LIB); in DH_generate_key()
319 int DH_compute_key(unsigned char *out, const BIGNUM *peers_key, DH *dh) { in DH_compute_key()
328 OPENSSL_PUT_ERROR(DH, DH_R_MODULUS_TOO_LARGE); in DH_compute_key()
343 OPENSSL_PUT_ERROR(DH, DH_R_NO_PRIVATE_VALUE); in DH_compute_key()
354 OPENSSL_PUT_ERROR(DH, DH_R_INVALID_PUBKEY); in DH_compute_key()
361 OPENSSL_PUT_ERROR(DH, ERR_R_BN_LIB); in DH_compute_key()
376 int DH_size(const DH *dh) { return BN_num_bytes(dh->p); } in DH_size()
378 unsigned DH_num_bits(const DH *dh) { return BN_num_bits(dh->p); } in DH_num_bits()
380 int DH_up_ref(DH *dh) { in DH_up_ref()
400 static int int_dh_param_copy(DH *to, const DH *from, int is_x942) { in int_dh_param_copy()
433 DH *DHparams_dup(const DH *dh) { in DHparams_dup()
434 DH *ret = DH_new(); in DHparams_dup()
457 int DH_set_ex_data(DH *d, int idx, void *arg) { in DH_set_ex_data()
461 void *DH_get_ex_data(DH *d, int idx) { in DH_get_ex_data()