/external/openssl/crypto/dh/ |
dh_key.c | 1 /* 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); [all...] |
p192.c | 1 /* 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);
|
dh_check.c | 1 /* crypto/dh/dh_check.c */ 62 #include <openssl/dh.h> 73 int DH_check(const DH *dh, int *ret) 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) [all...] |
p512.c | 1 /* 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);
|
dh_ameth.c | 62 #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 194 DH *dh = NULL; local 301 DH *dh; local [all...] |
dh.h | 1 /* crypto/dh/dh.h */ 65 #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); [all...] |
dh_pmeth.c | 63 #include <openssl/dh.h> 67 /* DH pkey context structure */ 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 [all...] |
p1024.c | 1 /* crypto/dh/p1024.c */ 62 #include <openssl/dh.h> 85 DH *dh; local 87 dh=DH_new(); 88 dh->p=BN_bin2bn(data,sizeof(data),NULL); 89 dh->g=BN_new(); 90 BN_set_word(dh->g,2); 91 PEM_write_DHparams(stdout,dh);
|
dh_asn1.c | 62 #include <openssl/dh.h> 75 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) [all...] |
/external/tcpdump/ |
dccp.h | 39 #define DCCPH_CCVAL(dh) (((dh)->dccph_ccval_cscov) & 0x0F) 40 #define DCCPH_CSCOV(dh) (((dh)->dccph_ccval_cscov >> 4) & 0x0F) 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)->dccph_xtrs.dccph_seq) >> 8 [all...] |
print-dccp.c | 64 const struct dccp_hdr *dh, u_int len) 89 return in_cksum((u_short *)dh, len, sp[0]+sp[1]+sp[2]+sp[3]+sp[4]+sp[5]); 93 static int dccp6_cksum(const struct ip6_hdr *ip6, const struct dccp_hdr *dh, u_int len) 120 sp = (const u_int16_t *)dh; 143 static u_int64_t dccp_seqno(const struct dccp_hdr *dh) 145 u_int32_t seq_high = DCCPH_SEQ(dh); 148 if (DCCPH_X(dh) != 0) { 149 const struct dccp_hdr_ext *dhx = (void *)(dh + 1); 158 static inline unsigned int dccp_basic_hdr_len(const struct dccp_hdr *dh) 160 return sizeof(*dh) + (DCCPH_X(dh) ? sizeof(struct dccp_hdr_ext) : 0) 165 const struct dccp_hdr *dh = (const struct dccp_hdr *)bp; local 218 const struct dccp_hdr *dh; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
dh_groups.h | 27 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv); 30 const struct dh_group *dh);
|
/external/wpa_supplicant_8/src/crypto/ |
dh_groups.h | 21 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv); 24 const struct dh_group *dh);
|
/external/openssh/ |
kexdhc.c | 30 #include <openssl/dh.h> 44 #include "dh.h" 51 DH *dh; local 58 /* generate and send 'e', client DH public key */ 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); [all...] |
dh.c | 1 /* $OpenBSD: dh.c,v 1.48 2009/10/01 11:37:33 grunk Exp $ */ 31 #include <openssl/dh.h> 38 #include "dh.h" 124 DH * 193 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) 201 logit("invalid public DH value: negative"); 205 logit("invalid public DH value: <= 1"); 213 if (!BN_sub(tmp, dh->p, BN_value_one()) || 216 logit("invalid public DH value: >= p-1") 267 DH *dh; local 288 DH *dh; local [all...] |
kexgexs.c | 36 #include <openssl/dh.h> 45 #include "dh.h" 58 DH *dh; local 105 dh = PRIVSEP(choose_dh(min, nbits, max)); 106 if (dh == NULL) 107 packet_disconnect("Protocol error: no matching DH grp found"); 111 packet_put_bignum2(dh->p); 112 packet_put_bignum2(dh->g); 119 dh_gen_key(dh, kex->we_need * 8) [all...] |
kexgexc.c | 31 #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); 115 /* generate and send 'e', client DH public key */ 117 packet_put_bignum2(dh->pub_key) [all...] |
kexdhs.c | 34 #include <openssl/dh.h> 43 #include "dh.h" 54 DH *dh; local 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) [all...] |
/external/openssh/regress/ |
putty-kex.sh | 14 for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ; do
|
/external/openssl/include/openssl/ |
dh.h | 1 /* crypto/dh/dh.h */ 65 #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); [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
StrictModeFlash.java | 59 final int dh = mLastDH; local 61 Rect dirty = new Rect(0, 0, dw, dh); 76 c.clipRect(new Rect(0, 0, mThickness, dh), Region.Op.REPLACE); 79 c.clipRect(new Rect(dw - mThickness, 0, dw, dh), Region.Op.REPLACE); 82 c.clipRect(new Rect(0, dh - mThickness, dw, dh), Region.Op.REPLACE); 102 void positionSurface(int dw, int dh) { 103 if (mLastDW == dw && mLastDH == dh) { 107 mLastDH = dh; 108 mSurface.setSize(dw, dh); [all...] |
/external/openssl/apps/ |
dhparam.c | 122 #include <openssl/dh.h> 139 * -dsaparam - read or generate DSA parameters, convert to DH 152 DH *dh=NULL; local 249 BIO_printf(bio_err," -dsaparam read or generate DSA parameters, convert to DH\n"); 251 BIO_printf(bio_err," -check check the DH parameters\n"); 252 BIO_printf(bio_err," -text print a text form of the DH parameters\n"); 288 /* DH parameters */ 319 dh = DSA_dup_DH(dsa); 321 if (dh == NULL [all...] |
dh.c | 1 /* apps/dh.c */ 70 #include <openssl/dh.h> 91 DH *dh=NULL; local 176 BIO_printf(bio_err," -check check the DH parameters\n"); 177 BIO_printf(bio_err," -text print a text form of the DH parameters\n"); 230 dh=d2i_DHparams_bio(in,NULL); 232 dh=PEM_read_bio_DHparams(in,NULL,NULL,NULL); 238 if (dh == NULL) 240 BIO_printf(bio_err,"unable to load DH parameters\n") [all...] |
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/transport/ |
KexState.java | 8 import ch.ethz.ssh2.crypto.dh.DhExchange; 9 import ch.ethz.ssh2.crypto.dh.DhGroupExchange;
|
/libcore/luni/src/test/java/tests/api/javax/xml/parsers/ |
SAXParserTest.java | 208 // MyDefaultHandler dh = new MyDefaultHandler(); 210 // parser.parse(is, dh, ParsingSupport.XML_SYSTEM_ID); 211 // HashMap refHm = dh.createData(); 314 MyDefaultHandler dh = new MyDefaultHandler(); local 315 parser.parse(list_wf[i], dh); 316 assertTrue(SAXParserTestSupport.equalsMaps(hm, dh.createData())); 321 MyDefaultHandler dh = new MyDefaultHandler(); local 322 parser.parse(list_nwf[i], dh); 330 MyDefaultHandler dh = new MyDefaultHandler(); local 331 parser.parse((File) null, dh); 349 MyHandler dh = new MyHandler(); local 362 MyHandler dh = new MyHandler(); local 375 MyHandler dh = new MyHandler(); local 408 MyDefaultHandler dh = new MyDefaultHandler(); local 416 MyDefaultHandler dh = new MyDefaultHandler(); local 425 MyDefaultHandler dh = new MyDefaultHandler(); local 449 MyHandler dh = new MyHandler(); local 457 MyHandler dh = new MyHandler(); local 466 MyHandler dh = new MyHandler(); local 506 MyDefaultHandler dh = new MyDefaultHandler(); local 514 MyDefaultHandler dh = new MyDefaultHandler(); local 524 MyDefaultHandler dh = new MyDefaultHandler(); local 549 MyDefaultHandler dh = new MyDefaultHandler(); local 562 MyDefaultHandler dh = new MyDefaultHandler(); local 576 MyDefaultHandler dh = new MyDefaultHandler(); local 656 MyHandler dh = new MyHandler(); local 664 MyHandler dh = new MyHandler(); local 673 MyHandler dh = new MyHandler(); local 697 MyHandler dh = new MyHandler(); local 705 MyHandler dh = new MyHandler(); local 714 MyHandler dh = new MyHandler(); local 745 MyDefaultHandler dh = new MyDefaultHandler(); local 752 MyDefaultHandler dh = new MyDefaultHandler(); local 761 MyDefaultHandler dh = new MyDefaultHandler(); local 780 MyHandler dh = new MyHandler(); local 793 MyHandler dh = new MyHandler(); local 806 MyHandler dh = new MyHandler(); local [all...] |