Home
last modified time | relevance | path

Searched refs:DH (Results 1 – 25 of 151) sorted by relevance

1234567

/freebsd-9-stable/crypto/openssl/crypto/dh/
Ddh.h65 # error DH is disabled.
105 int (*generate_key) (DH *dh);
106 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh);
108 int (*bn_mod_exp) (const DH *dh, BIGNUM *r, const BIGNUM *a,
111 int (*init) (DH *dh);
112 int (*finish) (DH *dh);
116 int (*generate_params) (DH *dh, int prime_len, int generator,
166 # define DHparams_dup(x) ASN1_dup_of_const(DH,i2d_DHparams,d2i_DHparams,x)
167 # define d2i_DHparams_fp(fp,x) (DH *)ASN1_d2i_fp((char *(*)())DH_new, \
171 # define d2i_DHparams_bio(bp,x) ASN1_d2i_bio_of(DH,DH_new,d2i_DHparams,bp,x)
[all …]
Ddh_key.c67 static int generate_key(DH *dh);
68 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
69 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r,
72 static int dh_init(DH *dh);
73 static int dh_finish(DH *dh);
75 int DH_generate_key(DH *dh) in DH_generate_key()
80 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_compute_key()
102 static int generate_key(DH *dh) in generate_key()
175 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in compute_key()
230 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, in dh_bn_mod_exp()
[all …]
Ddh_asn1.c76 DH_free((DH *)*pval); in dh_cb()
84 ASN1_SIMPLE(DH, p, BIGNUM),
85 ASN1_SIMPLE(DH, g, BIGNUM),
86 ASN1_OPT(DH, length, ZLONG),
87 } ASN1_SEQUENCE_END_cb(DH, DHparams)
89 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams)
Ddh_lib.c83 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method()
105 DH *DH_new(void) in DH_new()
110 DH *DH_new_method(ENGINE *engine) in DH_new_method()
112 DH *ret; in DH_new_method()
114 ret = (DH *)OPENSSL_malloc(sizeof(DH)); in DH_new_method()
170 void DH_free(DH *r) in DH_free()
216 int DH_up_ref(DH *r) in DH_up_ref()
238 int DH_set_ex_data(DH *d, int idx, void *arg) in DH_set_ex_data()
243 void *DH_get_ex_data(DH *d, int idx) in DH_get_ex_data()
248 int DH_size(const DH *dh) in DH_size()
Ddh2048.pem1 -----BEGIN DH PARAMETERS-----
8 -----END DH PARAMETERS-----
9 -----BEGIN DH PARAMETERS-----
16 -----END DH PARAMETERS-----
Ddh_gen.c71 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
74 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, in DH_generate_parameters_ex()
109 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, in dh_builtin_genparams()
/freebsd-9-stable/crypto/openssl/doc/crypto/
Ddh.pod12 DH * DH_new(void);
13 void DH_free(DH *dh);
15 int DH_size(const DH *dh);
17 DH * DH_generate_parameters(int prime_len, int generator,
19 int DH_check(const DH *dh, int *codes);
21 int DH_generate_key(DH *dh);
22 int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh);
26 int DH_set_method(DH *dh, const DH_METHOD *meth);
27 DH *DH_new_method(ENGINE *engine);
32 int DH_set_ex_data(DH *d, int idx, char *arg);
[all …]
DDH_set_method.pod6 DH_set_method, DH_new_method, DH_OpenSSL - select DH method
17 int DH_set_method(DH *dh, const DH_METHOD *meth);
19 DH *DH_new_method(ENGINE *engine);
28 important information about how these DH API functions are affected by the use
34 DH_set_default_method() makes B<meth> the default method for all DH
36 as a default for DH, so this function is no longer recommended.
43 This will replace the DH_METHOD used by the DH key and if the previous method
45 change. It is possible to have DH keys that only work with certain DH_METHOD
50 DH_new_method() allocates and initializes a DH structure so that B<engine> will
51 be used for the DH operations. If B<engine> is NULL, the default ENGINE for DH
[all …]
Dd2i_DHparams.pod5 d2i_DHparams, i2d_DHparams - PKCS#3 DH parameter functions.
11 DH *d2i_DHparams(DH **a, unsigned char **pp, long length);
12 int i2d_DHparams(DH *a, unsigned char **pp);
16 These functions decode and encode PKCS#3 DH parameters using the
DDSA_dup_DH.pod5 DSA_dup_DH - create a DH structure out of DSA structure
11 DH * DSA_dup_DH(const DSA *r);
15 DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q
16 is lost during that conversion, but the resulting DH parameters
21 DSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
DDH_new.pod5 DH_new, DH_free - allocate and free DH objects
11 DH* DH_new(void);
13 void DH_free(DH *dh);
17 DH_new() allocates and initializes a B<DH> structure.
19 DH_free() frees the B<DH> structure and its components. The values are
DDH_get_ex_new_index.pod5 DH_get_ex_new_index, DH_set_ex_data, DH_get_ex_data - add application specific data to DH structures
16 int DH_set_ex_data(DH *d, int idx, void *arg);
18 char *DH_get_ex_data(DH *d, int idx);
22 These functions handle application specific data in DH
DDH_generate_key.pod11 int DH_generate_key(DH *dh);
13 int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh);
18 exchange by generating private and public DH values. By calling
23 B<dh-E<gt>p> and B<dh-E<gt>g>. It generates a random private DH value
28 DH_compute_key() computes the shared secret from the private DH value
/freebsd-9-stable/crypto/openssl/doc/ssl/
DSSL_CTX_set_tmp_dh_callback.pod5 …back, SSL_CTX_set_tmp_dh, SSL_set_tmp_dh_callback, SSL_set_tmp_dh - handle DH keys for ephemeral k…
12 DH *(*tmp_dh_callback)(SSL *ssl, int is_export, int keylength));
13 long SSL_CTX_set_tmp_dh(SSL_CTX *ctx, DH *dh);
16 DH *(*tmp_dh_callback)(SSL *ssl, int is_export, int keylength));
17 long SSL_set_tmp_dh(SSL *ssl, DH *dh)
22 used when a DH parameters are required to B<tmp_dh_callback>.
25 SSL_CTX_set_tmp_dh() sets DH parameters to be used to be B<dh>.
36 When using a cipher with RSA authentication, an ephemeral DH key exchange
37 can take place. Ciphers with DSA keys always use ephemeral DH keys as well.
39 ephemeral/temporary DH key and the key supplied and certified
[all …]
DSSL_CIPHER_get_name.pod65 B<RSA(1024)>), B<DH> (for export ciphers as B<DH(512)> or B<DH(1024)>),
66 B<DH/RSA>, B<DH/DSS>, B<Fortezza>.
70 Authentication method: B<RSA>, B<DSS>, B<DH>, B<None>. None is the
94 EDH-RSA-DES-CBC3-SHA SSLv3 Kx=DH Au=RSA Enc=3DES(168) Mac=SHA1
95 EDH-DSS-DES-CBC3-SHA SSLv3 Kx=DH Au=DSS Enc=3DES(168) Mac=SHA1
/freebsd-9-stable/crypto/openssh/
Ddh.h35 DH *choose_dh(int, int, int);
36 DH *dh_new_group_asc(const char *, const char *);
37 DH *dh_new_group(BIGNUM *, BIGNUM *);
38 DH *dh_new_group1(void);
39 DH *dh_new_group14(void);
41 void dh_gen_key(DH *, int);
42 int dh_pub_is_valid(DH *, BIGNUM *);
Ddh.c144 DH *
213 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) in dh_pub_is_valid()
255 dh_gen_key(DH *dh, int need) in dh_gen_key()
272 DH *
275 DH *dh; in dh_new_group_asc()
293 DH *
296 DH *dh; in dh_new_group()
306 DH *
320 DH *
/freebsd-9-stable/crypto/openssl/doc/apps/
Ddhparam.pod5 dhparam - DH parameter manipulation and generation
27 This command is used to manipulate DH parameter files.
58 If this option is used, DSA rather than DH parameters are read or created;
59 they are converted to DH format. Otherwise, "strong" primes (such
60 that (p-1)/2 is also prime) will be used for DH parameter generation.
62 DH parameter generation with the B<-dsaparam> option is much faster,
63 and the recommended exponent length is shorter, which makes DH key
64 exchange more efficient. Beware that with such DSA-style DH
65 parameters, a fresh DH key should be created for each use to
98 this option prints out the DH parameters in human readable form.
[all …]
/freebsd-9-stable/crypto/openssl/fips/dh/
Dfips_dh_key.c71 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) in DH_generate_key()
84 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_compute_key()
105 static int generate_key(DH *dh) in generate_key()
184 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in compute_key()
237 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, in dh_bn_mod_exp()
[all …]
Dfips_dh_lib.c69 DH *FIPS_dh_new(void) in FIPS_dh_new()
71 DH *ret; in FIPS_dh_new()
72 ret = OPENSSL_malloc(sizeof(DH)); in FIPS_dh_new()
75 memset(ret, 0, sizeof(DH)); in FIPS_dh_new()
82 void FIPS_dh_free(DH *r) in FIPS_dh_free()
Ddh_gen.c71 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
74 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, in DH_generate_parameters_ex()
109 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, in dh_builtin_genparams()
/freebsd-9-stable/crypto/openssl/apps/
Ddh2048.pem1 -----BEGIN DH PARAMETERS-----
8 -----END DH PARAMETERS-----
10 These are the 2048 bit DH parameters from "Assigned Number for SKIP Protocols"
Ddh512.pem1 -----BEGIN DH PARAMETERS-----
4 -----END DH PARAMETERS-----
6 These are the 512 bit DH parameters from "Assigned Number for SKIP Protocols"
Ddh1024.pem1 -----BEGIN DH PARAMETERS-----
5 -----END DH PARAMETERS-----
7 These are the 1024 bit DH parameters from "Assigned Number for SKIP Protocols"
Ddh4096.pem1 -----BEGIN DH PARAMETERS-----
13 -----END DH PARAMETERS-----
15 These are the 4096 bit DH parameters from "Assigned Number for SKIP Protocols"

1234567