/freebsd-9.3-release/crypto/openssl/ssl/ |
H A D | s3_clnt.c | 138 # include <openssl/dh.h> 1089 DH *dh = NULL; local 1227 if ((dh = DH_new()) == NULL) { 1245 if (!(dh->p = BN_bin2bn(p, i, NULL))) { 1265 if (!(dh->g = BN_bin2bn(p, i, NULL))) { 1285 if (!(dh->pub_key = BN_bin2bn(p, i, NULL))) { 1309 s->session->sess_cert->peer_dh_tmp = dh; 1310 dh = NULL; 1548 if (dh != NULL) 1549 DH_free(dh); 2558 DH *dh; local [all...] |
H A D | d1_clnt.c | 125 # include <openssl/dh.h>
|
H A D | ssl3.h | 451 DH *dh; member in struct:ssl3_state_st::__anon35
|
H A D | s3_srvr.c | 139 # include <openssl/dh.h> 730 if (s->s3->tmp.dh != NULL) { 731 DH_free(s->s3->tmp.dh); 732 s->s3->tmp.dh = NULL; 1301 DH *dh = NULL, *dhp; local 1375 if (s->s3->tmp.dh != NULL) { 1381 if ((dh = DHparams_dup(dhp)) == NULL) { 1386 s->s3->tmp.dh = dh; 1390 if (!DH_generate_key(dh)) { [all...] |
H A D | d1_srvr.c | 125 # include <openssl/dh.h> 874 DH *dh = NULL, *dhp; local 941 if (s->s3->tmp.dh != NULL) { 942 DH_free(dh); 948 if ((dh = DHparams_dup(dhp)) == NULL) { 953 s->s3->tmp.dh = dh; 957 if (!DH_generate_key(dh)) { 963 dh->pub_key = BN_dup(dhp->pub_key); 964 dh [all...] |
H A D | ssl.h | 1410 # define SSL_CTX_set_tmp_dh(ctx,dh) \ 1411 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)dh) 1419 # define SSL_set_tmp_dh(ssl,dh) \ 1420 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)dh) 1746 DH *(*dh) (SSL *ssl, int is_export, 1749 DH *(*dh) (SSL *ssl, int is_export,
|
H A D | ssl_lib.c | 131 # include <openssl/dh.h> 2723 * \param dh the callback 2728 DH *(*dh) (SSL *ssl, int is_export, 2731 SSL_CTX_callback_ctrl(ctx, SSL_CTRL_SET_TMP_DH_CB, (void (*)(void))dh); 2734 void SSL_set_tmp_dh_callback(SSL *ssl, DH *(*dh) (SSL *ssl, int is_export, 2737 SSL_callback_ctrl(ssl, SSL_CTRL_SET_TMP_DH_CB, (void (*)(void))dh);
|
H A D | ssl_cert.c | 132 # include <openssl/dh.h>
|
H A D | s3_lib.c | 131 # include <openssl/dh.h> 1678 if (s->s3->tmp.dh != NULL) 1679 DH_free(s->s3->tmp.dh); 1712 if (s->s3->tmp.dh != NULL) { 1713 DH_free(s->s3->tmp.dh); 1714 s->s3->tmp.dh = NULL; 1827 DH *dh = (DH *)parg; local 1828 if (dh == NULL) { 1832 if ((dh = DHparams_dup(dh)) 2094 DH *new = NULL, *dh; local [all...] |
H A D | ssltest.c | 156 # include <openssl/dh.h> 418 DH *dh; local 724 dh = get_dh1024dsa(); 726 dh = get_dh1024(); 728 dh = get_dh512(); 729 SSL_CTX_set_tmp_dh(s_ctx, dh); 730 DH_free(dh); 2043 DH *dh; local 2045 if ((dh = DH_new()) == NULL) 2047 dh 2084 DH *dh; local 2145 DH *dh; local [all...] |
/freebsd-9.3-release/secure/lib/libcrypto/ |
H A D | Makefile | 128 # dh 130 INCS+= dh.h 410 ${LCRYPTO_SRC}/crypto/dh \
|
/freebsd-9.3-release/crypto/openssl/fips/dh/ |
H A D | fips_dh_key.c | 1 /* crypto/dh/dh_key.c */ 66 # include <openssl/dh.h> 71 static int generate_key(DH *dh); 72 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); 73 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, 76 static int dh_init(DH *dh); 77 static int dh_finish(DH *dh); 79 int DH_generate_key(DH *dh) argument 81 return dh->meth->generate_key(dh); 84 DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 105 generate_key(DH *dh) argument 184 compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 237 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 259 dh_finish(DH *dh) argument [all...] |
H A D | fips_dh_gen.c | 1 /* crypto/dh/dh_gen.c */ 66 #include <openssl/dh.h>
|
H A D | dh_gen.c | 1 /* crypto/dh/dh_gen.c */ 67 #include <openssl/dh.h>
|
H A D | fips_dh_check.c | 1 /* crypto/dh/dh_check.c */ 61 #include <openssl/dh.h> 77 int DH_check(const DH *dh, int *ret) argument 92 if (BN_is_word(dh->g, DH_GENERATOR_2)) { 93 l = BN_mod_word(dh->p, 24); 98 else if (BN_is_word(dh->g, DH_GENERATOR_3)) { 99 l = BN_mod_word(dh->p, 12); 104 else if (BN_is_word(dh->g, DH_GENERATOR_5)) { 105 l = BN_mod_word(dh->p, 10); 111 if (!BN_is_prime_ex(dh 128 DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) argument [all...] |
H A D | fips_dh_lib.c | 62 #include <openssl/dh.h>
|
/freebsd-9.3-release/crypto/openssl/fips/ |
H A D | fips_test_suite.c | 38 # include <openssl/dh.h> 419 DH *dh; local 421 dh = FIPS_dh_new(); 422 if (!dh) 424 if (!DH_generate_parameters_ex(dh, 1024, 2, NULL)) 426 FIPS_dh_free(dh);
|
/freebsd-9.3-release/crypto/openssl/ |
H A D | Makefile | 145 bn ec rsa dsa ecdsa dh ecdh dso engine \
|
H A D | Makefile.org | 143 bn ec rsa dsa ecdsa dh ecdh dso engine \
|
/freebsd-9.3-release/crypto/openssl/engines/ |
H A D | e_sureware.c | 68 # include <openssl/dh.h> 149 /* This function is aliased to mod_exp (with the dh and mont dropped). */ 150 static int surewarehk_modexp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a, argument 161 surewarehk_modexp_dh, /* dh mod exp */
|
H A D | e_ubsec.c | 73 # include <openssl/dh.h> 123 static int ubsec_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a, 127 DH *dh); 128 static int ubsec_dh_generate_key(DH *dh); 741 /* This function is aliased to mod_exp (with the dh and mont dropped). */ 742 static int ubsec_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a, argument 901 DH *dh) 905 k_len = BN_num_bits(dh->p); 911 ret = meth->compute_key(key, pub_key, dh); 916 (unsigned char *)dh 900 ubsec_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) argument 941 ubsec_dh_generate_key(DH *dh) argument [all...] |
H A D | e_nuron.c | 73 # include <openssl/dh.h> 259 /* This function is aliased to mod_exp (with the dh and mont dropped). */ 260 static int nuron_mod_exp_dh(const DH *dh, BIGNUM *r, argument
|
/freebsd-9.3-release/crypto/openssl/demos/easy_tls/ |
H A D | easy-tls.c | 94 #include <openssl/dh.h>
|
/freebsd-9.3-release/crypto/openssl/demos/engines/cluster_labs/ |
H A D | hw_cluster_labs.c | 125 static int cluster_labs_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a, 566 /* This function is aliased to mod_exp (with the dh and mont dropped). */ 567 static int cluster_labs_mod_exp_dh(const DH *dh, BIGNUM *r, const BIGNUM *a, argument
|
/freebsd-9.3-release/crypto/openssl/demos/tunala/ |
H A D | tunala.c | 218 DH *dh = NULL; local 220 if ((dh = DH_new()) == NULL) 222 dh->p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL); 223 dh->g = BN_bin2bn(dh512_g, sizeof(dh512_g), NULL); 224 if ((dh->p == NULL) || (dh->g == NULL)) 226 return (dh); 728 DH *dh = NULL; local 735 if ((dh = get_dh512()) == NULL) { 750 if ((dh [all...] |