/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.5.8/source4/heimdal/lib/hcrypto/ |
H A D | dh.c | 40 #include <dh.h> 83 DH *dh; local 85 dh = calloc(1, sizeof(*dh)); 86 if (dh == NULL) 89 dh->references = 1; 93 dh->engine = engine; 95 dh->engine = ENGINE_get_default_DH(); 98 if (dh->engine) { 99 dh 125 DH_free(DH *dh) argument 165 DH_up_ref(DH *dh) argument 181 DH_size(const DH *dh) argument 199 DH_set_ex_data(DH *dh, int idx, void *data) argument 217 DH_get_ex_data(DH *dh, int idx) argument 236 DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb) argument 257 DH_check_pubkey(const DH *dh, const BIGNUM *pub_key, int *codes) argument 340 DH_generate_key(DH *dh) argument 359 DH_compute_key(unsigned char *shared_key, const BIGNUM *peer_pub_key, DH *dh) argument 387 DH_set_method(DH *dh, const DH_METHOD *method) argument 404 dh_null_generate_key(DH *dh) argument 410 dh_null_compute_key(unsigned char *shared,const BIGNUM *pub, DH *dh) argument 416 dh_null_init(DH *dh) argument 422 dh_null_finish(DH *dh) argument 428 dh_null_generate_params(DH *dh, int prime_num, int len, BN_GENCB *cb) argument [all...] |
H A D | dh-imath.c | 40 #include <dh.h> 85 dh_generate_key(DH *dh) argument 88 int have_private_key = (dh->priv_key != NULL); 92 if (dh->p == NULL || dh->g == NULL) 97 size_t bits = BN_num_bits(dh->p); 99 if (dh->priv_key) 100 BN_free(dh->priv_key); 102 dh->priv_key = BN_new(); 103 if (dh 158 dh_compute_key(unsigned char *shared, const BIGNUM * pub, DH *dh) argument 202 dh_generate_params(DH *dh, int a, int b, BN_GENCB *callback) argument 209 dh_init(DH *dh) argument 215 dh_finish(DH *dh) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/samba-3.5.8/source4/heimdal/lib/hcrypto/ |
H A D | dh.c | 40 #include <dh.h> 83 DH *dh; local 85 dh = calloc(1, sizeof(*dh)); 86 if (dh == NULL) 89 dh->references = 1; 93 dh->engine = engine; 95 dh->engine = ENGINE_get_default_DH(); 98 if (dh->engine) { 99 dh 125 DH_free(DH *dh) argument 165 DH_up_ref(DH *dh) argument 181 DH_size(const DH *dh) argument 199 DH_set_ex_data(DH *dh, int idx, void *data) argument 217 DH_get_ex_data(DH *dh, int idx) argument 236 DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb) argument 257 DH_check_pubkey(const DH *dh, const BIGNUM *pub_key, int *codes) argument 340 DH_generate_key(DH *dh) argument 359 DH_compute_key(unsigned char *shared_key, const BIGNUM *peer_pub_key, DH *dh) argument 387 DH_set_method(DH *dh, const DH_METHOD *method) argument 404 dh_null_generate_key(DH *dh) argument 410 dh_null_compute_key(unsigned char *shared,const BIGNUM *pub, DH *dh) argument 416 dh_null_init(DH *dh) argument 422 dh_null_finish(DH *dh) argument 428 dh_null_generate_params(DH *dh, int prime_num, int len, BN_GENCB *cb) argument [all...] |
H A D | dh-imath.c | 40 #include <dh.h> 85 dh_generate_key(DH *dh) argument 88 int have_private_key = (dh->priv_key != NULL); 92 if (dh->p == NULL || dh->g == NULL) 97 size_t bits = BN_num_bits(dh->p); 99 if (dh->priv_key) 100 BN_free(dh->priv_key); 102 dh->priv_key = BN_new(); 103 if (dh 158 dh_compute_key(unsigned char *shared, const BIGNUM * pub, DH *dh) argument 202 dh_generate_params(DH *dh, int a, int b, BN_GENCB *callback) argument 209 dh_init(DH *dh) argument 215 dh_finish(DH *dh) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source4/heimdal/lib/hcrypto/ |
H A D | dh.c | 40 #include <dh.h> 83 DH *dh; local 85 dh = calloc(1, sizeof(*dh)); 86 if (dh == NULL) 89 dh->references = 1; 93 dh->engine = engine; 95 dh->engine = ENGINE_get_default_DH(); 98 if (dh->engine) { 99 dh 125 DH_free(DH *dh) argument 165 DH_up_ref(DH *dh) argument 181 DH_size(const DH *dh) argument 199 DH_set_ex_data(DH *dh, int idx, void *data) argument 217 DH_get_ex_data(DH *dh, int idx) argument 236 DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb) argument 257 DH_check_pubkey(const DH *dh, const BIGNUM *pub_key, int *codes) argument 340 DH_generate_key(DH *dh) argument 359 DH_compute_key(unsigned char *shared_key, const BIGNUM *peer_pub_key, DH *dh) argument 387 DH_set_method(DH *dh, const DH_METHOD *method) argument 404 dh_null_generate_key(DH *dh) argument 410 dh_null_compute_key(unsigned char *shared,const BIGNUM *pub, DH *dh) argument 416 dh_null_init(DH *dh) argument 422 dh_null_finish(DH *dh) argument 428 dh_null_generate_params(DH *dh, int prime_num, int len, BN_GENCB *cb) argument [all...] |
H A D | dh-imath.c | 40 #include <dh.h> 85 dh_generate_key(DH *dh) argument 88 int have_private_key = (dh->priv_key != NULL); 92 if (dh->p == NULL || dh->g == NULL) 97 size_t bits = BN_num_bits(dh->p); 99 if (dh->priv_key) 100 BN_free(dh->priv_key); 102 dh->priv_key = BN_new(); 103 if (dh 158 dh_compute_key(unsigned char *shared, const BIGNUM * pub, DH *dh) argument 202 dh_generate_params(DH *dh, int a, int b, BN_GENCB *callback) argument 209 dh_init(DH *dh) argument 215 dh_finish(DH *dh) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/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, 70 static int dh_init(DH *dh); 71 static int dh_finish(DH *dh); 73 int DH_generate_key(DH *dh) argument 76 if (FIPS_mode() && !(dh->meth->flags & DH_FLAG_FIPS_METHOD) 77 && !(dh 85 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 97 DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 128 generate_key(DH *dh) argument 208 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 278 dh_init(DH *dh) argument 284 dh_finish(DH *dh) argument [all...] |
H A D | dh_check.c | 1 /* crypto/dh/dh_check.c */ 62 #include <openssl/dh.h> 74 int DH_check(const DH *dh, int *ret) argument 93 if (dh->q) { 94 if (BN_cmp(dh->g, BN_value_one()) <= 0) 96 else if (BN_cmp(dh->g, dh->p) >= 0) 100 if (!BN_mod_exp(t1, dh->g, dh->q, dh 151 DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) 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_asn1.c | 63 #include <openssl/dh.h> 134 DH *dh = NULL; local 135 dh = DH_new(); 136 if (!dh) 140 DH_free(dh); 147 *a = dh; 150 dh->p = dhx->p; 151 dh->q = dhx->q; 152 dh->g = dhx->g; 153 dh 169 i2d_DHxparams(const DH *dh, unsigned char **pp) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/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, 70 static int dh_init(DH *dh); 71 static int dh_finish(DH *dh); 73 int DH_generate_key(DH *dh) argument 76 if (FIPS_mode() && !(dh->meth->flags & DH_FLAG_FIPS_METHOD) 77 && !(dh 85 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 97 DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 128 generate_key(DH *dh) argument 208 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 278 dh_init(DH *dh) argument 284 dh_finish(DH *dh) argument [all...] |
H A D | dh_check.c | 1 /* crypto/dh/dh_check.c */ 62 #include <openssl/dh.h> 74 int DH_check(const DH *dh, int *ret) argument 93 if (dh->q) { 94 if (BN_cmp(dh->g, BN_value_one()) <= 0) 96 else if (BN_cmp(dh->g, dh->p) >= 0) 100 if (!BN_mod_exp(t1, dh->g, dh->q, dh 151 DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) 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_asn1.c | 63 #include <openssl/dh.h> 134 DH *dh = NULL; local 135 dh = DH_new(); 136 if (!dh) 140 DH_free(dh); 147 *a = dh; 150 dh->p = dhx->p; 151 dh->q = dhx->q; 152 dh->g = dhx->g; 153 dh 169 i2d_DHxparams(const DH *dh, unsigned char **pp) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/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, 70 static int dh_init(DH *dh); 71 static int dh_finish(DH *dh); 73 int DH_generate_key(DH *dh) argument 76 if (FIPS_mode() && !(dh->meth->flags & DH_FLAG_FIPS_METHOD) 77 && !(dh 85 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 97 DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 128 generate_key(DH *dh) argument 208 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 278 dh_init(DH *dh) argument 284 dh_finish(DH *dh) argument [all...] |
H A D | dh_check.c | 1 /* crypto/dh/dh_check.c */ 62 #include <openssl/dh.h> 74 int DH_check(const DH *dh, int *ret) argument 93 if (dh->q) { 94 if (BN_cmp(dh->g, BN_value_one()) <= 0) 96 else if (BN_cmp(dh->g, dh->p) >= 0) 100 if (!BN_mod_exp(t1, dh->g, dh->q, dh 151 DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) 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_asn1.c | 63 #include <openssl/dh.h> 134 DH *dh = NULL; local 135 dh = DH_new(); 136 if (!dh) 140 DH_free(dh); 147 *a = dh; 150 dh->p = dhx->p; 151 dh->q = dhx->q; 152 dh->g = dhx->g; 153 dh 169 i2d_DHxparams(const DH *dh, unsigned char **pp) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/openssl-1.0.0q/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);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/openssl-1.0.0q/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);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/openssl-1.0.0q/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);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/shared/bcmcrypto/ |
H A D | dh.h | 18 * dh.h: Diffie-Hellman header file. 130 void DH_free(DH *dh); 131 int DH_generate_key(unsigned char *key,DH *dh); 132 int DH_compute_key(unsigned char *key,unsigned char *pubbuf,int buflen,DH *dh); 136 int DH_size(const DH *dh); 137 DH * DH_generate_parameters(DH *dh, int prime_len,int generator, 139 int DH_check(const DH *dh,int *codes);
|