/barrelfish-2018-10-04/lib/openssl-1.0.0d/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_prn.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...] |
H A D | dh_depr.c | 1 /* crypto/dh/dh_depr.c */ 62 #include <openssl/dh.h>
|
H A D | Makefile | 2 # OpenSSL/crypto/dh/Makefile 5 DIR= dh 27 EXHEADER= dh.h 82 dh_ameth.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h 97 dh_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h 106 dh_check.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h 114 dh_depr.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h 121 dh_err.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h 129 dh_gen.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h 137 dh_key.o: ../../include/openssl/dh [all...] |
/barrelfish-2018-10-04/usr/slideshow/ |
H A D | bmp.c | 54 struct dib_header *dh = data + sizeof(struct bmp_header); local 58 MUST(dh->size == 40); 59 MUST(dh->planes == 1); 60 MUST(dh->compression == COMP_BI_RGB); 64 assert(24 == dh->bpp); 65 assert(dh->height <= yres); 66 assert(dh->width <= xres); 68 size_t linesize = dh->image_size / dh->height; 69 int mbpp = dh [all...] |
/barrelfish-2018-10-04/lib/posixcompat/ |
H A D | chdir.c | 26 vfs_handle_t dh; local 27 err = vfs_opendir(newcwd, &dh); 33 vfs_closedir(dh);
|
/barrelfish-2018-10-04/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...] |
/barrelfish-2018-10-04/lib/openssl-1.0.0d/apps/ |
H A D | dhparam.c | 122 #include <openssl/dh.h> 152 DH *dh=NULL; local 319 dh = DSA_dup_DH(dsa); 321 if (dh == NULL) 330 dh = DH_new(); 333 if(!dh || !DH_generate_parameters_ex(dh, num, g, &cb)) 335 if(dh) DH_free(dh); 384 dh [all...] |
H A D | dh.c | 1 /* apps/dh.c */ 70 #include <openssl/dh.h> 91 DH *dh=NULL; local 230 dh=d2i_DHparams_bio(in,NULL); 232 dh=PEM_read_bio_DHparams(in,NULL,NULL,NULL); 238 if (dh == NULL) 249 DHparams_print(out,dh); 252 BN_print(stdout,dh->p); 254 BN_print(stdout,dh->g); 256 if (dh [all...] |
H A D | gendh.c | 77 #include <openssl/dh.h> 92 DH *dh=NULL; local 203 if(((dh = DH_new()) == NULL) || !DH_generate_parameters_ex(dh, num, g, &cb)) 208 if (!PEM_write_bio_DHparams(out,dh)) 215 if (dh != NULL) DH_free(dh);
|
H A D | progs.pl | 46 elsif ( ($_ =~ /^dh$/) || ($_ =~ /^gendh$/) || ($_ =~ /^dhparam$/))
|
/barrelfish-2018-10-04/lib/barrelfish/ |
H A D | deferred.c | 29 static void update_wakeup_disabled(dispatcher_handle_t dh) argument 31 struct dispatcher_generic *dg = get_dispatcher_generic(dh); 32 struct dispatcher_shared_generic *ds = get_dispatcher_shared_generic(dh); 71 dispatcher_handle_t dh = disp_disable(); local 74 struct dispatcher_generic *dg = get_dispatcher_generic(dh); 103 update_wakeup_disabled(dh); 105 disp_enable(dh); 211 void trigger_deferred_events_disabled(dispatcher_handle_t dh, systime_t now) argument 213 struct dispatcher_generic *dg = get_dispatcher_generic(dh); 218 err = waitset_chan_trigger_disabled(&e->waitset_state, dh); [all...] |
/barrelfish-2018-10-04/lib/openssl-1.0.0d/engines/ccgost/ |
H A D | gost94_keyx.c | 12 #include <openssl/dh.h> 30 static int compute_pair_key_le(unsigned char *pair_key,BIGNUM *pub_key,DH *dh) argument 34 key_size=DH_compute_key(be_key,pub_key,dh); 52 DH *dh = DH_new(); local 54 if (!dh) 57 dh->g = BN_dup(pubk->pkey.dsa->g); 58 dh->p = BN_dup(pubk->pkey.dsa->p); 59 dh->priv_key = BN_dup(priv_key); 60 ret=compute_pair_key_le(dh_key,((DSA *)(EVP_PKEY_get0(pubk)))->pub_key,dh) ; 61 DH_free(dh); [all...] |
/barrelfish-2018-10-04/lib/openssl-1.0.0d/engines/ |
H A D | e_ubsec.c | 74 #include <openssl/dh.h> 120 static int ubsec_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a, 123 static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); 124 static int ubsec_dh_generate_key(DH *dh); 731 /* This function is aliased to mod_exp (with the dh and mont dropped). */ 732 static int ubsec_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a, argument 875 static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh) argument 881 k_len = BN_num_bits(dh->p); 888 ret = meth->compute_key(key, pub_key, dh); 893 (unsigned char *)dh 916 ubsec_dh_generate_key(DH *dh) argument [all...] |
/barrelfish-2018-10-04/include/barrelfish/ |
H A D | deferred.h | 52 void trigger_deferred_events_disabled(dispatcher_handle_t dh, systime_t now);
|
/barrelfish-2018-10-04/lib/openssl-1.0.0d/demos/engines/zencod/ |
H A D | hw_zencod.c | 157 static int DH_zencod_bn_mod_exp ( const DH *dh, BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, 159 static int DH_zencod_generate_key ( DH *dh ) ; 160 static int DH_zencod_compute_key ( unsigned char *key, const BIGNUM *pub_key, DH *dh ) ; 971 static int DH_zencod_generate_key ( DH *dh ) 986 if ( dh->priv_key ) { 987 bn_prv = dh->priv_key; 998 if ( dh->pub_key ) 999 bn_pub = dh->pub_key; 1007 if ( !bn_wexpand ( bn_prv, dh->p->dmax ) || 1008 !bn_wexpand ( bn_pub, dh 1089 DH_zencod_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 [all...] |