Searched refs:DH (Results 1 - 25 of 70) sorted by relevance

123

/freebsd-10.0-release/crypto/openssh/
H A Ddh.h35 DH *choose_dh(int, int, int);
36 DH *dh_new_group_asc(const char *, const char *);
37 DH *dh_new_group(BIGNUM *, BIGNUM *);
38 DH *dh_new_group1(void);
39 DH *dh_new_group14(void);
41 void dh_gen_key(DH *, int);
42 int dh_pub_is_valid(DH *, BIGNUM *);
H A Ddh.c144 DH *
213 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub)
221 logit("invalid public DH value: negative");
225 logit("invalid public DH value: <= 1");
236 logit("invalid public DH value: >= p-1");
250 logit("invalid public DH value (%d/%d)", bits_set, BN_num_bits(dh->p));
255 dh_gen_key(DH *dh, int need)
286 DH *
289 DH *dh;
307 DH *
[all...]
H A Dkexdhc.c51 DH *dh;
58 /* generate and send 'e', client DH public key */
97 /* DH parameter f, server public DH key */
114 packet_disconnect("bad server public DH value");
H A Dmonitor_wrap.h42 DH *mm_choose_dh(int, int, int);
H A Dkexdhs.c54 DH *dh;
60 /* generate server DH public key */
104 packet_disconnect("bad client public DH value");
149 /* send server hostkey, DH pubkey 'f' and singed H */
158 /* have keys, free DH */
H A Dkexgexc.c59 DH *dh;
115 /* generate and send 'e', client DH public key */
135 /* DH parameter f, server public DH key */
152 packet_disconnect("bad server public DH value");
187 /* have keys, free DH */
H A Dkexgexs.c58 DH *dh;
103 packet_disconnect("Protocol error: no matching DH grp found");
140 packet_disconnect("bad client public DH value");
191 /* send server hostkey, DH pubkey 'f' and singed H */
201 /* have keys, free DH */
/freebsd-10.0-release/crypto/openssl/crypto/dh/
H A Ddh.h65 #error DH is disabled.
81 #define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH
89 /* If this flag is set the DH method is FIPS compliant and can be used
109 /* typedef struct dh_st DH; */
116 int (*generate_key)(DH *dh);
117 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh);
118 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a,
122 int (*init)(DH *dh);
123 int (*finish)(DH *dh);
127 int (*generate_params)(DH *d
[all...]
H A Ddh_asn1.c75 DH_free((DH *)*pval);
83 ASN1_SIMPLE(DH, p, BIGNUM),
84 ASN1_SIMPLE(DH, g, BIGNUM),
85 ASN1_OPT(DH, length, ZLONG),
86 } ASN1_SEQUENCE_END_cb(DH, DHparams)
88 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams)
90 DH *DHparams_dup(DH *dh)
H A Ddh_depr.c67 DH *DH_generate_parameters(int prime_len, int generator,
71 DH *ret=NULL;
H A Ddh_prn.c65 int DHparams_print_fp(FILE *fp, const DH *x)
H A Ddh_key.c65 static int generate_key(DH *dh);
66 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
67 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
71 static int dh_init(DH *dh);
72 static int dh_finish(DH *dh);
74 int DH_generate_key(DH *dh)
87 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
101 "OpenSSL DH Method",
117 static int generate_key(DH *dh)
203 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *d
[all...]
H A Ddh_lib.c96 int DH_set_method(DH *dh, const DH_METHOD *meth)
115 DH *DH_new(void)
120 DH *DH_new_method(ENGINE *engine)
122 DH *ret;
124 ret=(DH *)OPENSSL_malloc(sizeof(DH));
187 void DH_free(DH *r)
193 REF_PRINT("DH",r);
224 int DH_up_ref(DH *r)
228 REF_PRINT("DH",
[all...]
H A Ddh_gen.c73 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb);
75 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb)
95 /* We generate DH parameters as follows
113 * Since DH should be using a safe prime (both p and q are prime),
120 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb)
H A Dp192.c73 DH *dh;
H A Ddh_check.c73 int DH_check(const DH *dh, int *ret)
122 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret)
H A Dp512.c78 DH *dh;
H A Ddh_ameth.c81 DH *dh = NULL;
131 DH *dh;
179 /* PKCS#8 DH is defined in PKCS#11 of all places. It is similar to DH in
194 DH *dh = NULL;
301 DH *dh;
316 static int do_dh_print(BIO *bp, const DH *x, int indent,
350 ktype = "PKCS#3 DH Private-Key";
352 ktype = "PKCS#3 DH Public-Key";
354 ktype = "PKCS#3 DH Parameter
[all...]
H A Ddh_pmeth.c67 /* DH pkey context structure */
163 DH *dh = NULL;
188 DH *dh = NULL;
H A Ddhtest.c80 printf("No DH support\n");
99 DH *a;
100 DH *b=NULL;
191 fprintf(stderr,"Error in DH routines\n");
H A Dp1024.c85 DH *dh;
/freebsd-10.0-release/contrib/llvm/include/llvm/Support/
H A DSourceMgr.h83 void setDiagHandler(DiagHandlerTy DH, void *Ctx = 0) { argument
84 DiagHandler = DH;
/freebsd-10.0-release/crypto/openssl/crypto/dsa/
H A Ddsa_lib.c289 DH *DSA_dup_DH(const DSA *r)
292 * DH has p, optional length, g, optional pub_key, optional priv_key,
296 DH *ret = NULL;
/freebsd-10.0-release/crypto/openssl/engines/ccgost/
H A Dgost94_keyx.c30 static int compute_pair_key_le(unsigned char *pair_key,BIGNUM *pub_key,DH *dh)
52 DH *dh = DH_new();
/freebsd-10.0-release/crypto/openssl/apps/
H A Dgendh.c92 DH *dh=NULL;
200 BIO_printf(bio_err,"Generating DH parameters, %d bit long safe prime, generator %d\n",num,g);

Completed in 201 milliseconds

123