Searched refs:dh (Results 1 - 25 of 238) sorted by relevance

12345678910

/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Ddh.c45 #include <dh.h>
88 DH *dh; local
90 dh = calloc(1, sizeof(*dh));
91 if (dh == NULL)
94 dh->references = 1;
98 dh->engine = engine;
100 dh->engine = ENGINE_get_default_DH();
103 if (dh->engine) {
104 dh
130 DH_free(DH *dh) argument
170 DH_up_ref(DH *dh) argument
186 DH_size(const DH *dh) argument
204 DH_set_ex_data(DH *dh, int idx, void *data) argument
222 DH_get_ex_data(DH *dh, int idx) argument
241 DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb) argument
262 DH_check_pubkey(const DH *dh, const BIGNUM *pub_key, int *codes) argument
345 DH_generate_key(DH *dh) argument
364 DH_compute_key(unsigned char *shared_key, const BIGNUM *peer_pub_key, DH *dh) argument
392 DH_set_method(DH *dh, const DH_METHOD *method) argument
409 dh_null_generate_key(DH *dh) argument
415 dh_null_compute_key(unsigned char *shared,const BIGNUM *pub, DH *dh) argument
421 dh_null_init(DH *dh) argument
427 dh_null_finish(DH *dh) argument
433 dh_null_generate_params(DH *dh, int prime_num, int len, BN_GENCB *cb) argument
518 i2d_DHparams(DH *dh, unsigned char **pp) argument
[all...]
H A Ddh-ltm.c42 #include <dh.h>
87 ltm_dh_generate_key(DH *dh) argument
90 int have_private_key = (dh->priv_key != NULL);
94 if (dh->p == NULL || dh->g == NULL)
99 size_t bits = BN_num_bits(dh->p);
101 if (dh->priv_key)
102 BN_free(dh->priv_key);
104 dh->priv_key = BN_new();
105 if (dh
155 ltm_dh_compute_key(unsigned char *shared, const BIGNUM * pub, DH *dh) argument
195 ltm_dh_generate_params(DH *dh, int a, int b, BN_GENCB *callback) argument
202 ltm_dh_init(DH *dh) argument
208 ltm_dh_finish(DH *dh) argument
[all...]
H A Ddh-tfm.c40 #include <dh.h>
87 tfm_dh_generate_key(DH *dh) argument
90 int have_private_key = (dh->priv_key != NULL);
94 if (dh->p == NULL || dh->g == NULL)
99 size_t bits = BN_num_bits(dh->p);
101 if (dh->priv_key)
102 BN_free(dh->priv_key);
104 dh->priv_key = BN_new();
105 if (dh
157 tfm_dh_compute_key(unsigned char *shared, const BIGNUM * pub, DH *dh) argument
204 tfm_dh_generate_params(DH *dh, int a, int b, BN_GENCB *callback) argument
211 tfm_dh_init(DH *dh) argument
217 tfm_dh_finish(DH *dh) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/ufs/ufs/
H A Dufs_dirhash.c68 static int ufsdirhash_hash(struct dirhash *dh, const char *name, int namelen);
69 static void ufsdirhash_adjfree(struct dirhash *dh, doff_t offset, int diff,
71 static void ufsdirhash_delslot(struct dirhash *dh, int slot);
72 static int ufsdirhash_findslot(struct dirhash *dh, const char *name,
83 #define DIRHASH_LOCK(dh) mutex_enter(&(dh)->dh_lock)
84 #define DIRHASH_UNLOCK(dh) mutex_exit(&(dh)->dh_lock)
115 struct dirhash *dh; local
156 memreqd = sizeof(*dh)
280 struct dirhash *dh; local
326 struct dirhash *dh, *dh_next; local
501 struct dirhash *dh; local
589 struct dirhash *dh; local
623 struct dirhash *dh; local
670 struct dirhash *dh; local
705 struct dirhash *dh; local
732 struct dirhash *dh; local
768 struct dirhash *dh; local
825 struct dirhash *dh; local
892 ufsdirhash_hash(struct dirhash *dh, const char *name, int namelen) argument
916 ufsdirhash_adjfree(struct dirhash *dh, doff_t offset, int diff, int dirblksiz) argument
953 ufsdirhash_findslot(struct dirhash *dh, const char *name, int namelen, doff_t offset) argument
978 ufsdirhash_delslot(struct dirhash *dh, int slot) argument
1041 struct dirhash *dh; local
[all...]
/netbsd-6-1-5-RELEASE/tests/crypto/libcrypto/dh/
H A DMakefile4 HELPER_DIR= dh
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/dh/
H A Ddh_key.c1 /* crypto/dh/dh_key.c */
63 #include <openssl/dh.h>
65 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) argument
77 if (FIPS_mode() && !(dh->meth->flags & DH_FLAG_FIPS_METHOD)
78 && !(dh
87 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
117 generate_key(DH *dh) argument
203 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument
263 dh_bn_mod_exp(const DH *dh, BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) argument
281 dh_init(DH *dh) argument
287 dh_finish(DH *dh) argument
[all...]
H A Dp192.c1 /* crypto/dh/p192.c */
62 #include <openssl/dh.h>
73 DH *dh; local
75 dh=DH_new();
76 dh->p=BN_bin2bn(data,sizeof(data),NULL);
77 dh->g=BN_new();
78 BN_set_word(dh->g,3);
79 PEM_write_DHparams(stdout,dh);
H A Ddh_check.c1 /* crypto/dh/dh_check.c */
62 #include <openssl/dh.h>
73 int DH_check(const DH *dh, int *ret) argument
86 if (BN_is_word(dh->g,DH_GENERATOR_2))
88 l=BN_mod_word(dh->p,24);
92 else if (BN_is_word(dh->g,DH_GENERATOR_3))
94 l=BN_mod_word(dh->p,12);
98 else if (BN_is_word(dh->g,DH_GENERATOR_5))
100 l=BN_mod_word(dh->p,10);
107 if (!BN_is_prime_ex(dh
122 DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) argument
[all...]
H A Dp512.c1 /* crypto/dh/p512.c */
62 #include <openssl/dh.h>
78 DH *dh; local
80 dh=DH_new();
81 dh->p=BN_bin2bn(data,sizeof(data),NULL);
82 dh->g=BN_new();
83 BN_set_word(dh->g,2);
84 PEM_write_DHparams(stdout,dh);
H A Ddh_ameth.c62 #include <openssl/dh.h>
68 DH_free(pkey->pkey.dh);
81 DH *dh = NULL; local
97 if (!(dh = d2i_DHparams(NULL, &pm, pmlen)))
110 if (!(dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)))
117 EVP_PKEY_assign_DH(pkey, dh);
123 if (dh)
124 DH_free(dh);
131 DH *dh; local
139 dh
194 DH *dh = NULL; local
301 DH *dh; local
[all...]
H A Ddh.h1 /* crypto/dh/dh.h */
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 *dh, int prime_len, int generator, BN_GENCB *cb);
188 int DH_set_method(DH *dh, const DH_METHOD *meth);
192 void DH_free(DH *dh);
[all...]
H A Ddh_pmeth.c63 #include <openssl/dh.h>
163 DH *dh = NULL; local
174 dh = DH_new();
175 if (!dh)
177 ret = DH_generate_parameters_ex(dh,
180 EVP_PKEY_assign_DH(pkey, dh);
182 DH_free(dh);
188 DH *dh = NULL; local
194 dh = DH_new();
195 if (!dh)
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/dns/
H A Dopenssldh_link.c87 REQUIRE(pub->keydata.dh != NULL);
88 REQUIRE(priv->keydata.dh != NULL);
90 dhpub = pub->keydata.dh;
91 dhpriv = priv->keydata.dh;
110 dh1 = key1->keydata.dh;
111 dh2 = key2->keydata.dh;
139 dh1 = key1->keydata.dh;
140 dh2 = key2->keydata.dh;
175 DH *dh = NULL; local
192 dh
250 DH *dh = key->keydata.dh; local
256 DH *dh = key->keydata.dh; local
289 DH *dh; local
342 DH *dh; local
460 DH *dh; local
521 DH *dh = NULL; local
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/tcpdump/dist/
H A Ddccp.h39 #define DCCPH_CCVAL(dh) (((dh)->dccph_ccval_cscov >> 4) & 0xF)
40 #define DCCPH_CSCOV(dh) (((dh)->dccph_ccval_cscov) & 0xF)
42 #define DCCPH_X(dh) ((dh)->dccph_xtrs.dccph_xtr & 1)
43 #define DCCPH_TYPE(dh) (((dh)->dccph_xtrs.dccph_xtr >> 1) & 0xF)
44 #define DCCPH_SEQ(dh) (((dh)
[all...]
H A Dprint-dccp.c68 static inline int dccp_csum_coverage(const struct dccp_hdr* dh, u_int len) argument
72 if (DCCPH_CSCOV(dh) == 0)
74 cov = (dh->dccph_doff + DCCPH_CSCOV(dh) - 1) * sizeof(u_int32_t);
79 const struct dccp_hdr *dh, u_int len)
81 int cov = dccp_csum_coverage(dh, len);
105 return in_cksum((u_short *)dh, cov, sp[0]+sp[1]+sp[2]+sp[3]+sp[4]+sp[5]);
109 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) argument
113 int cov = dccp_csum_coverage(dh, len);
135 return in_cksum((u_short *)dh, co
78 dccp_cksum(const struct ip *ip, const struct dccp_hdr *dh, u_int len) argument
146 dccp_seqno(const struct dccp_hdr *dh) argument
161 dccp_basic_hdr_len(const struct dccp_hdr *dh) argument
168 const struct dccp_hdr *dh = (const struct dccp_hdr *)bp; local
221 const struct dccp_hdr *dh; local
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.dg/
H A Dbuiltin-inf-1.c8 double dh = __builtin_huge_val(); variable
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.dg/
H A Dbuiltin-inf-1.c8 double dh = __builtin_huge_val(); variable
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/crypto/
H A Ddh_groups.h27 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
30 const struct dh_group *dh);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/
H A Dkexdhc.c31 #include <openssl/dh.h>
44 #include "dh.h"
51 DH *dh = NULL; /* XXX: GCC */ local
61 dh = dh_new_group1();
64 dh = dh_new_group14();
69 dh_gen_key(dh, kex->we_need * 8);
71 packet_put_bignum2(dh->pub_key);
76 DHparams_print_fp(stderr, dh);
78 BN_print_fp(stderr, dh->pub_key);
113 if (!dh_pub_is_valid(dh, dh_server_pu
[all...]
H A Ddh.c1 /* $NetBSD: dh.c,v 1.3 2010/11/21 18:29:48 adam Exp $ */
2 /* $OpenBSD: dh.c,v 1.48 2009/10/01 11:37:33 grunk Exp $ */
28 __RCSID("$NetBSD: dh.c,v 1.3 2010/11/21 18:29:48 adam Exp $");
32 #include <openssl/dh.h>
39 #include "dh.h"
195 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) argument
215 if (!BN_sub(tmp, dh->p, BN_value_one()) ||
226 debug2("bits set: %d/%d", bits_set, BN_num_bits(dh->p));
232 logit("invalid public DH value (%d/%d)", bits_set, BN_num_bits(dh->p));
237 dh_gen_key(DH *dh, in argument
269 DH *dh; local
290 DH *dh; local
[all...]
H A Dkexgexs.c36 #include <openssl/dh.h>
45 #include "dh.h"
58 DH *dh; local
105 dh = PRIVSEP(choose_dh(min, nbits, max));
106 if (dh == NULL)
111 packet_put_bignum2(dh->p);
112 packet_put_bignum2(dh->g);
119 dh_gen_key(dh, kex->we_need * 8);
138 DHparams_print_fp(stderr, dh);
140 BN_print_fp(stderr, dh
[all...]
H A Dkexgexc.c32 #include <openssl/dh.h>
45 #include "dh.h"
59 DH *dh; local
104 dh = dh_new_group(g, p);
105 dh_gen_key(dh, kex->we_need * 8);
108 DHparams_print_fp(stderr, dh);
110 BN_print_fp(stderr, dh->pub_key);
117 packet_put_bignum2(dh->pub_key);
151 if (!dh_pub_is_valid(dh, dh_server_pub))
154 klen = DH_size(dh);
[all...]
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.c-torture/execute/ieee/
H A Dinf-1.c10 double dh = __builtin_huge_val(); local
22 if (di != dh)
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/gas/testsuite/gas/ia64/
H A Dopc-b.pl3 @dh = ( "", ".clr" );
16 foreach $d (@dh) {
42 foreach $d (@dh) {
/netbsd-6-1-5-RELEASE/external/lgpl3/gmp/dist/mpn/generic/
H A Dhgcd2.c92 mp_limb_t dh, mp_limb_t dl)
99 for (cnt = 1; (mp_limb_signed_t) dh >= 0; cnt++)
101 dh = (dh << 1) | (dl >> (GMP_LIMB_BITS - 1));
108 if (nh > dh || (nh == dh && nl >= dl))
110 sub_ddmmss (nh, nl, nh, nl, dh, dl);
113 dl = (dh << (GMP_LIMB_BITS - 1)) | (dl >> 1);
114 dh = dh >>
90 div2(mp_ptr rp, mp_limb_t nh, mp_limb_t nl, mp_limb_t dh, mp_limb_t dl) argument
[all...]

Completed in 164 milliseconds

12345678910