/external/openssl/crypto/dh/ |
H A D | 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); 72 static int dh_finish(DH *dh); 74 int DH_generate_key(DH *dh) argument 76 return dh->meth->generate_key(dh); 79 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 101 generate_key(DH *dh) argument 174 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 234 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 252 dh_init(DH *dh) argument 258 dh_finish(DH *dh) argument [all...] |
H A D | 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);
|
H A D | dh_check.c | 1 /* 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 D | 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);
|
H A D | 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 139 dh 194 DH *dh = NULL; local 301 DH *dh; local [all...] |
H A D | dh.h | 1 /* crypto/dh/dh.h */ 101 int (*generate_key)(DH *dh); 102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh); 103 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a, 107 int (*init)(DH *dh); 108 int (*finish)(DH *dh); 112 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb); 173 int DH_set_method(DH *dh, const DH_METHOD *meth); 177 void DH_free(DH *dh); [all...] |
H A D | dh_pmeth.c | 63 #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...] |
H A D | 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);
|
H A D | dh_asn1.c | 62 #include <openssl/dh.h> 90 DH *DHparams_dup(DH *dh) 92 return ASN1_item_dup(ASN1_ITEM_rptr(DHparams), dh);
|
H A D | dh_depr.c | 1 /* crypto/dh/dh_depr.c */ 62 #include <openssl/dh.h>
|
H A D | dh_lib.c | 1 /* crypto/dh/dh_lib.c */ 62 #include <openssl/dh.h> 83 int DH_set_method(DH *dh, const DH_METHOD *meth) argument 88 mtmp = dh->meth; 89 if (mtmp->finish) mtmp->finish(dh); 91 if (dh->engine) 93 ENGINE_finish(dh->engine); 94 dh->engine = NULL; 97 dh->meth = meth; 98 if (meth->init) meth->init(dh); 244 DH_size(const DH *dh) argument [all...] |
/external/tcpdump/ |
H A D | 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) [all...] |
H A D | 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) argument 120 sp = (const u_int16_t *)dh; 143 static u_int64_t dccp_seqno(const struct dccp_hdr *dh) argument 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) argument 160 return sizeof(*dh) 63 dccp_cksum(const struct ip *ip, const struct dccp_hdr *dh, u_int len) argument 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/ |
H A D | dh_groups.h | 27 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv); 30 const struct dh_group *dh);
|
/external/openssl/include/openssl/ |
H A D | dh.h | 1 /* crypto/dh/dh.h */ 101 int (*generate_key)(DH *dh); 102 int (*compute_key)(unsigned char *key,const BIGNUM *pub_key,DH *dh); 103 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a, 107 int (*init)(DH *dh); 108 int (*finish)(DH *dh); 112 int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb); 173 int DH_set_method(DH *dh, const DH_METHOD *meth); 177 void DH_free(DH *dh); [all...] |
/external/openssl/apps/ |
H A D | dhparam.c | 122 #include <openssl/dh.h> 155 DH *dh=NULL; local 322 dh = DSA_dup_DH(dsa); 324 if (dh == NULL) 333 dh = DH_new(); 336 if(!dh || !DH_generate_parameters_ex(dh, num, g, &cb)) 338 if(dh) DH_free(dh); 387 dh [all...] |
H A D | dh.c | 1 /* apps/dh.c */ 70 #include <openssl/dh.h> 94 DH *dh=NULL; local 233 dh=d2i_DHparams_bio(in,NULL); 235 dh=PEM_read_bio_DHparams(in,NULL,NULL,NULL); 241 if (dh == NULL) 252 DHparams_print(out,dh); 255 BN_print(stdout,dh->p); 257 BN_print(stdout,dh->g); 259 if (dh [all...] |
H A D | gendh.c | 77 #include <openssl/dh.h> 95 DH *dh=NULL; local 206 if(((dh = DH_new()) == NULL) || !DH_generate_parameters_ex(dh, num, g, &cb)) 211 if (!PEM_write_bio_DHparams(out,dh)) 218 if (dh != NULL) DH_free(dh);
|
/external/quake/quake/src/QW/client/ |
H A D | block16.h | 4 movb %dh,%ah variable 6 movb %dh,%ch variable 19 movb %dh,%ah variable 21 movb %dh,%ch variable 34 movb %dh,%ah variable 36 movb %dh,%ch variable 49 movb %dh,%ah variable 51 movb %dh,%ch variable 65 movb %dh,%ah variable 67 movb %dh, variable 80 movb %dh,%ah variable 82 movb %dh,%ch variable 96 movb %dh,%ah variable 98 movb %dh,%ch variable 112 movb %dh,%ah variable 114 movb %dh,%ch variable [all...] |
H A D | block8.h | 4 movb %dh,%ah variable 6 movb %dh,%ch variable 19 movb %dh,%ah variable 21 movb %dh,%ch variable 34 movb %dh,%ah variable 36 movb %dh,%ch variable 49 movb %dh,%ah variable 51 movb %dh,%ch variable 65 movb %dh,%ah variable 67 movb %dh, variable 80 movb %dh,%ah variable 82 movb %dh,%ch variable 96 movb %dh,%ah variable 98 movb %dh,%ch variable 112 movb %dh,%ah variable 114 movb %dh,%ch variable [all...] |
H A D | surf8.s | 113 movb %dh,%bh 118 movb %dh,%ch 129 movb %dh,%bh 133 movb %dh,%ch 146 movb %dh,%bh 149 movb %dh,%ch 160 movb %dh,%bh 164 movb %dh,%ch 177 movb %dh,%bh 180 movb %dh, [all...] |
/external/quake/quake/src/WinQuake/ |
H A D | block16.h | 23 movb %dh,%ah variable 25 movb %dh,%ch variable 38 movb %dh,%ah variable 40 movb %dh,%ch variable 53 movb %dh,%ah variable 55 movb %dh,%ch variable 68 movb %dh,%ah variable 70 movb %dh,%ch variable 84 movb %dh,%ah variable 86 movb %dh, variable 99 movb %dh,%ah variable 101 movb %dh,%ch variable 115 movb %dh,%ah variable 117 movb %dh,%ch variable 131 movb %dh,%ah variable 133 movb %dh,%ch variable [all...] |
H A D | block8.h | 23 movb %dh,%ah variable 25 movb %dh,%ch variable 38 movb %dh,%ah variable 40 movb %dh,%ch variable 53 movb %dh,%ah variable 55 movb %dh,%ch variable 68 movb %dh,%ah variable 70 movb %dh,%ch variable 84 movb %dh,%ah variable 86 movb %dh, variable 99 movb %dh,%ah variable 101 movb %dh,%ch variable 115 movb %dh,%ah variable 117 movb %dh,%ch variable 131 movb %dh,%ah variable 133 movb %dh,%ch variable [all...] |
H A D | surf8.s | 113 movb %dh,%bh 118 movb %dh,%ch 129 movb %dh,%bh 133 movb %dh,%ch 146 movb %dh,%bh 149 movb %dh,%ch 160 movb %dh,%bh 164 movb %dh,%ch 177 movb %dh,%bh 180 movb %dh, [all...] |
/external/kernel-headers/original/linux/ |
H A D | dccp.h | 258 static inline unsigned int __dccp_basic_hdr_len(const struct dccp_hdr *dh) argument 260 return sizeof(*dh) + (dh->dccph_x ? sizeof(struct dccp_hdr_ext) : 0); 265 const struct dccp_hdr *dh = dccp_hdr(skb); local 266 return __dccp_basic_hdr_len(dh); 271 const struct dccp_hdr *dh = dccp_hdr(skb); local 272 __u64 seq_nr = ntohs(dh->dccph_seq); 274 if (dh->dccph_x != 0) 277 seq_nr += (u32)dh->dccph_seq2 << 16; 308 static inline unsigned int __dccp_hdr_len(const struct dccp_hdr *dh) argument [all...] |