Home | History | Annotate | Download | only in openssh

Lines Matching refs:DH

34 #include <openssl/dh.h>
43 #include "dh.h"
54 DH *dh;
60 /* generate server DH public key */
63 dh = dh_new_group1();
66 dh = dh_new_group14();
71 dh_gen_key(dh, kex->we_need * 8);
101 DHparams_print_fp(stderr, dh);
103 BN_print_fp(stderr, dh->pub_key);
106 if (!dh_pub_is_valid(dh, dh_client_pub))
107 packet_disconnect("bad client public DH value");
109 klen = DH_size(dh);
111 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0)
133 dh->pub_key,
153 /* send server hostkey, DH pubkey 'f' and singed H */
156 packet_put_bignum2(dh->pub_key); /* f */
162 /* have keys, free DH */
163 DH_free(dh);