/third_party/openssl/include/openssl/ |
D | dh.h | 92 (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ 99 ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x) 101 ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x) 104 (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ 111 ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x) 113 ASN1_i2d_bio_of_const(DH, i2d_DHxparams, bp, x) 115 DH *DHparams_dup(DH *); 121 int DH_set_method(DH *dh, const DH_METHOD *meth); 122 DH *DH_new_method(ENGINE *engine); 124 DH *DH_new(void); [all …]
|
/third_party/openssl/crypto/dh/ |
D | dh_lib.c | 17 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() 37 DH *DH_new(void) in DH_new() 42 DH *DH_new_method(ENGINE *engine) in DH_new_method() 44 DH *ret = OPENSSL_zalloc(sizeof(*ret)); in DH_new_method() 96 void DH_free(DH *r) in DH_free() 130 int DH_up_ref(DH *r) in DH_up_ref() 142 int DH_set_ex_data(DH *d, int idx, void *arg) in DH_set_ex_data() 147 void *DH_get_ex_data(DH *d, int idx) in DH_get_ex_data() 152 int DH_bits(const DH *dh) in DH_bits() 157 int DH_size(const DH *dh) in DH_size() [all …]
|
D | dh_meth.c | 100 int (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *) in DH_meth_get_generate_key() 105 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *)) in DH_meth_set_generate_key() argument 112 (unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_meth_get_compute_key() 118 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh)) in DH_meth_set_compute_key() 126 (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, in DH_meth_get_bn_mod_exp() 133 int (*bn_mod_exp) (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DH_meth_set_bn_mod_exp() 140 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *) in DH_meth_get_init() 145 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *)) in DH_meth_set_init() argument 151 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *) in DH_meth_get_finish() 156 int DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *)) in DH_meth_set_finish() argument [all …]
|
D | dh_asn1.c | 27 DH_free((DH *)*pval); in dh_cb() 35 ASN1_SIMPLE(DH, p, BIGNUM), 36 ASN1_SIMPLE(DH, g, BIGNUM), 37 ASN1_OPT_EMBED(DH, length, ZINT32), 38 } ASN1_SEQUENCE_END_cb(DH, DHparams) 40 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(DH, DHparams, DHparams) 81 DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length) in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname() 84 DH *dh = NULL; in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname() 118 int i2d_DHxparams(const DH *dh, unsigned char **pp) in i2d_DHxparams()
|
D | dh_key.c | 15 static int generate_key(DH *dh); 16 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); 17 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, 20 static int dh_init(DH *dh); 21 static int dh_finish(DH *dh); 23 int DH_generate_key(DH *dh) in DH_generate_key() 32 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_compute_key() 57 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_compute_key_padded() 103 static int generate_key(DH *dh) in generate_key() 197 static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in compute_key() [all …]
|
D | dh_local.h | 43 int (*generate_key) (DH *dh); 44 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh); 47 int (*bn_mod_exp) (const DH *dh, BIGNUM *r, const BIGNUM *a, 50 int (*init) (DH *dh); 51 int (*finish) (DH *dh); 55 int (*generate_params) (DH *dh, int prime_len, int generator,
|
D | dh2048.pem | 1 -----BEGIN DH PARAMETERS----- 8 -----END DH PARAMETERS----- 9 -----BEGIN DH PARAMETERS----- 16 -----END DH PARAMETERS-----
|
D | dh_rfc7919.c | 17 static DH *dh_param_init(const BIGNUM *p, int32_t nbits) in dh_param_init() 19 DH *dh = DH_new(); in dh_param_init() 28 DH *DH_new_by_nid(int nid) in DH_new_by_nid() 47 int DH_get_nid(const DH *dh) in DH_get_nid()
|
D | dh_check.c | 23 int DH_check_params_ex(const DH *dh) in DH_check_params_ex() 38 int DH_check_params(const DH *dh, int *ret) in DH_check_params() 73 int DH_check_ex(const DH *dh) in DH_check_ex() 98 int DH_check(const DH *dh, int *ret) in DH_check() 163 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) in DH_check_pub_key_ex() 180 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) in DH_check_pub_key()
|
/third_party/openssl/doc/man3/ |
D | SSL_CTX_set_tmp_dh_callback.pod | 5 …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, 14 long SSL_CTX_set_tmp_dh(SSL_CTX *ctx, DH *dh); 17 DH *(*tmp_dh_callback)(SSL *ssl, int is_export, 19 long SSL_set_tmp_dh(SSL *ssl, DH *dh) 24 used when a DH parameters are required to B<tmp_dh_callback>. 27 SSL_CTX_set_tmp_dh() sets DH parameters to be used to be B<dh>. 38 When using a cipher with RSA authentication, an ephemeral DH key exchange 39 can take place. Ciphers with DSA keys always use ephemeral DH keys as well. 41 ephemeral/temporary DH key and the key supplied and certified [all …]
|
D | DH_get0_pqg.pod | 9 DH_get_length, DH_set_length - Routines for getting and setting data in a DH object 15 void DH_get0_pqg(const DH *dh, 17 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); 18 void DH_get0_key(const DH *dh, 20 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); 21 const BIGNUM *DH_get0_p(const DH *dh); 22 const BIGNUM *DH_get0_q(const DH *dh); 23 const BIGNUM *DH_get0_g(const DH *dh); 24 const BIGNUM *DH_get0_priv_key(const DH *dh); 25 const BIGNUM *DH_get0_pub_key(const DH *dh); [all …]
|
D | DH_meth_new.pod | 11 DH_meth_set_generate_params - Routines to build up DH methods 32 int (*DH_meth_get_generate_key(const DH_METHOD *dhm))(DH *); 33 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key)(DH *)); 36 (unsigned char *key, const BIGNUM *pub_key, DH *dh); 38 int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh)); 41 (const DH *dh, BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 44 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a, 48 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *); 49 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *)); 51 int (*DH_meth_get_finish(const DH_METHOD *dhm))(DH *); [all …]
|
D | DH_set_method.pod | 6 DH_set_method, DH_new_method, DH_OpenSSL - select DH method 16 int DH_set_method(DH *dh, const DH_METHOD *meth); 18 DH *DH_new_method(ENGINE *engine); 27 important information about how these DH API functions are affected by the use 33 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. 45 This will replace the DH_METHOD used by the DH key and if the previous method 47 change. It is possible to have DH keys that only work with certain DH_METHOD 52 DH_new_method() allocates and initializes a DH structure so that B<engine> will 53 be used for the DH operations. If B<engine> is NULL, the default ENGINE for DH
|
D | d2i_DHparams.pod | 5 d2i_DHparams, i2d_DHparams - PKCS#3 DH parameter functions 11 DH *d2i_DHparams(DH **a, const 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 24 d2i_DHparams() returns a valid B<DH> structure or NULL if an error occurred.
|
D | DSA_dup_DH.pod | 5 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
|
D | DH_new.pod | 5 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
|
D | DH_new_by_nid.pod | 5 DH_new_by_nid, DH_get_nid - get or find DH named parameters 10 DH *DH_new_by_nid(int nid); 11 int *DH_get_nid(const DH *dh); 15 DH_new_by_nid() creates and returns a DH structure containing named parameters 25 DH_new_by_nid() returns a set of DH parameters or B<NULL> if an error occurred.
|
D | DH_get_1024_160.pod | 21 - Create standardized public primes or DH pairs 26 DH *DH_get_1024_160(void) 27 DH *DH_get_2048_224(void) 28 DH *DH_get_2048_256(void) 48 a DH object for the IETF RFC 5114 value.
|
D | DH_generate_parameters.pod | 15 int DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb); 17 int DH_check(DH *dh, int *codes); 18 int DH_check_params(DH *dh, int *codes); 20 int DH_check_ex(const DH *dh); 21 int DH_check_params_ex(const DH *dh); 22 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key); 27 DH *DH_generate_parameters(int prime_len, int generator, 34 be shared among a group of users, and stores them in the provided B<DH> 124 DH_generate_parameters() returns a pointer to the DH structure or NULL if
|
D | DH_generate_key.pod | 12 int DH_generate_key(DH *dh); 14 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); 16 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh); 21 exchange by generating private and public DH values. By calling 26 B<dh-E<gt>p> and B<dh-E<gt>g>. It generates a random private DH value 31 DH_compute_key() computes the shared secret from the private DH value
|
/third_party/openssl/doc/man1/ |
D | dhparam.pod | 6 dhparam - DH parameter manipulation and generation 30 This command is used to manipulate DH parameter files. 65 If this option is used, DSA rather than DH parameters are read or created; 66 they are converted to DH format. Otherwise, "strong" primes (such 67 that (p-1)/2 is also prime) will be used for DH parameter generation. 69 DH parameter generation with the B<-dsaparam> option is much faster, 70 and the recommended exponent length is shorter, which makes DH key 71 exchange more efficient. Beware that with such DSA-style DH 72 parameters, a fresh DH key should be created for each use to 114 This option prints out the DH parameters in human readable form. [all …]
|
D | genpkey.pod | 64 Public key algorithm to use such as RSA, DSA or DH. If used this option must 73 option) are DH, DSA and EC. 75 Note that the algorithm name X9.42 DH may be used as a synonym for the DH 78 or X9.42 DH parameters are required. See L<DH Parameter Generation Options> 206 =head2 DH Parameter Generation Options 218 conjunction with the B<dh_paramgen_type> option to generate X9.42 DH parameters. 226 The type of DH parameters to generate. Use 0 for PKCS#3 DH and 1 for X9.42 DH. 233 values 1, 2 or 3 corresponding to RFC5114 DH parameters consisting of 236 2.1, 2.2 and 2.3 respectively. If present this overrides all other DH parameter 276 Generate 2048 bit DH parameters: [all …]
|
/third_party/musl/libc-test/src/math/gen/ |
D | gentests.sh | 17 DH='' 20 [ -e $D/$i ] && DH="$DH#include \"$i\"\\n" 23 sed -i "s/___/$N/g;s,DHEADERS,$DH,;s,HEADERS,$H," $D/$N.c
|
/third_party/openssl/apps/ |
D | dh1024.pem | 1 -----BEGIN DH PARAMETERS----- 5 -----END DH PARAMETERS----- 7 These are the 1024-bit DH parameters from "Internet Key Exchange
|
D | dh2048.pem | 1 -----BEGIN DH PARAMETERS----- 8 -----END DH PARAMETERS----- 10 These are the 2048-bit DH parameters from "More Modular Exponential
|