| /src/crypto/openssl/include/openssl/ |
| H A D | dh.h | 178 (DH *)ASN1_d2i_fp((void *(*)(void))DH_new, \ 185 ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x) 187 ASN1_i2d_bio_of(DH, i2d_DHparams, bp, x) 190 (DH *)ASN1_d2i_fp((void *(*)(void))DH_new, \ 197 ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x) 199 ASN1_i2d_bio_of(DH, i2d_DHxparams, bp, x) 201 DECLARE_ASN1_DUP_FUNCTION_name_attr(OSSL_DEPRECATEDIN_3_0, DH, DHparams) 207 OSSL_DEPRECATEDIN_3_0 int DH_set_method(DH *dh, const DH_METHOD *meth); 208 OSSL_DEPRECATEDIN_3_0 DH *DH_new_method(ENGINE *engine); 210 OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); [all …]
|
| /src/crypto/openssl/include/crypto/ |
| H A D | dh.h | 19 DH *ossl_dh_new_by_nid_ex(OSSL_LIB_CTX *libctx, int nid); 20 DH *ossl_dh_new_ex(OSSL_LIB_CTX *libctx); 21 void ossl_dh_set0_libctx(DH *d, OSSL_LIB_CTX *libctx); 22 int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits, 24 int ossl_dh_generate_public_key(BN_CTX *ctx, const DH *dh, 29 void ossl_dh_cache_named_group(DH *dh); 30 int ossl_dh_is_named_safe_prime_group(const DH *dh); 32 FFC_PARAMS *ossl_dh_get0_params(DH *dh); 33 int ossl_dh_get0_nid(const DH *dh); 34 int ossl_dh_params_fromdata(DH *dh, const OSSL_PARAM params[]); [all …]
|
| /src/crypto/openssl/crypto/dh/ |
| H A D | dh_lib.c | 29 static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx); 32 int DH_set_method(DH *dh, const DH_METHOD *meth) in DH_set_method() 52 const DH_METHOD *ossl_dh_get_method(const DH *dh) in ossl_dh_get_method() 57 DH *DH_new(void) in DH_new() 63 DH *DH_new_method(ENGINE *engine) in DH_new_method() 69 DH *ossl_dh_new_ex(OSSL_LIB_CTX *libctx) in ossl_dh_new_ex() 74 static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx) in dh_new_intern() 76 DH *ret = OPENSSL_zalloc(sizeof(*ret)); in dh_new_intern() 136 void DH_free(DH *r) in DH_free() 167 int DH_up_ref(DH *r) in DH_up_ref() [all …]
|
| H A D | dh_meth.c | 102 int (*DH_meth_get_generate_key(const DH_METHOD *dhm))(DH *) in DH_meth_get_generate_key() 107 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key)(DH *)) in DH_meth_set_generate_key() argument 113 int (*DH_meth_get_compute_key(const DH_METHOD *dhm))(unsigned char *key, const BIGNUM *pub_key, DH … in DH_meth_get_compute_key() 119 int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh)) in DH_meth_set_compute_key() 125 int (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm))(const DH *, BIGNUM *, const BIGNUM *, const BIG… in DH_meth_get_bn_mod_exp() 132 int (*bn_mod_exp)(const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DH_meth_set_bn_mod_exp() argument 139 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *) in DH_meth_get_init() 144 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *)) in DH_meth_set_init() argument 150 int (*DH_meth_get_finish(const DH_METHOD *dhm))(DH *) in DH_meth_get_finish() 155 int DH_meth_set_finish(DH_METHOD *dhm, int (*finish)(DH *)) in DH_meth_set_finish() argument [all …]
|
| H A D | dh_asn1.c | 34 DH_free((DH *)*pval); in dh_cb() 38 DH *dh = (DH *)*pval; in dh_cb() 49 ASN1_SIMPLE(DH, params.p, BIGNUM), 50 ASN1_SIMPLE(DH, params.g, BIGNUM), 51 ASN1_OPT_EMBED(DH, length, ZINT32), 52 } ASN1_SEQUENCE_END_cb(DH, DHparams) 54 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(DH, DHparams, DHparams) 94 DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length) in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname() 98 DH *dh = NULL; in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname() 136 int i2d_DHxparams(const DH *dh, unsigned char **pp) in i2d_DHxparams()
|
| H A D | dh_ameth.c | 34 static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp, in d2i_dhp() 37 DH *dh = NULL; in d2i_dhp() 48 static int i2d_dhp(const EVP_PKEY *pkey, const DH *a, unsigned char **pp) in i2d_dhp() 70 DH *dh = NULL; in dh_pub_decode() 113 DH *dh; in dh_pub_encode() 167 DH *dh = ossl_dh_key_from_pkcs8(p8, NULL, NULL); in dh_priv_decode() 230 DH *dh; in dh_param_decode() 244 static int do_dh_print(BIO *bp, const DH *x, int indent, int ptype) in do_dh_print() 322 static int int_dh_param_copy(DH *to, const DH *from, int is_x942) in int_dh_param_copy() 334 DH *DHparams_dup(const DH *dh) in DHparams_dup() [all …]
|
| H A D | dh_backend.c | 31 static int dh_ffc_params_fromdata(DH *dh, const OSSL_PARAM params[]) in dh_ffc_params_fromdata() 42 int ossl_dh_params_fromdata(DH *dh, const OSSL_PARAM params[]) in ossl_dh_params_fromdata() 59 int ossl_dh_key_fromdata(DH *dh, const OSSL_PARAM params[], int include_private) in ossl_dh_key_fromdata() 90 int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_dh_params_todata() 102 int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in ossl_dh_key_todata() 122 int ossl_dh_is_foreign(const DH *dh) in ossl_dh_is_foreign() 138 DH *ossl_dh_dup(const DH *dh, int selection) in ossl_dh_dup() 140 DH *dupkey = NULL; in ossl_dh_dup() 180 DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_dh_key_from_pkcs8() 191 DH *dh = NULL; in ossl_dh_key_from_pkcs8()
|
| H A D | dh_group_params.c | 27 static DH *dh_param_init(OSSL_LIB_CTX *libctx, const DH_NAMED_GROUP *group) in dh_param_init() 29 DH *dh = ossl_dh_new_ex(libctx); in dh_param_init() 40 DH *ossl_dh_new_by_nid_ex(OSSL_LIB_CTX *libctx, int nid) in ossl_dh_new_by_nid_ex() 51 DH *DH_new_by_nid(int nid) in DH_new_by_nid() 56 void ossl_dh_cache_named_group(DH *dh) in ossl_dh_cache_named_group() 83 int ossl_dh_is_named_safe_prime_group(const DH *dh) in ossl_dh_is_named_safe_prime_group() 94 int DH_get_nid(const DH *dh) in DH_get_nid()
|
| H A D | dh_local.h | 46 int (*generate_key)(DH *dh); 47 int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh); 50 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a, 53 int (*init)(DH *dh); 54 int (*finish)(DH *dh); 58 int (*generate_params)(DH *dh, int prime_len, int generator,
|
| H A D | dh_key.c | 29 static int generate_key(DH *dh); 30 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, 33 static int dh_init(DH *dh); 34 static int dh_finish(DH *dh); 40 int ossl_dh_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in ossl_dh_compute_key() 114 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_compute_key() 144 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_compute_key_padded() 189 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, in dh_bn_mod_exp() 200 static int dh_init(DH *dh) in dh_init() 207 static int dh_finish(DH *dh) in dh_finish() [all …]
|
| H A D | dh_check.c | 29 int DH_check_params_ex(const DH *dh) in DH_check_params_ex() 49 int DH_check_params(const DH *dh, int *ret) in DH_check_params() 58 nid = DH_get_nid((DH *)dh); in DH_check_params() 70 int DH_check_params(const DH *dh, int *ret) in DH_check_params() 112 int DH_check_ex(const DH *dh) in DH_check_ex() 142 int DH_check(const DH *dh, int *ret) in DH_check() 150 int nid = DH_get_nid((DH *)dh); in DH_check() 231 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) in DH_check_pub_key_ex() 251 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) in DH_check_pub_key() 273 int ossl_dh_check_pub_key_partial(const DH *dh, const BIGNUM *pub_key, int *ret) in ossl_dh_check_pub_key_partial() [all …]
|
| H A D | dh_gen.c | 35 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, 39 int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits, in ossl_dh_generate_ffc_parameters() 95 static int dh_gen_named_group(OSSL_LIB_CTX *libctx, DH *ret, int prime_len) in dh_gen_named_group() 97 DH *dh; in dh_gen_named_group() 115 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, in DH_generate_parameters_ex() 156 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, in dh_builtin_genparams()
|
| /src/crypto/openssh/ |
| H A D | dh.h | 37 DH *choose_dh(int, int, int); 38 DH *dh_new_group_asc(const char *, const char *); 39 DH *dh_new_group(BIGNUM *, BIGNUM *); 40 DH *dh_new_group1(void); 41 DH *dh_new_group14(void); 42 DH *dh_new_group16(void); 43 DH *dh_new_group18(void); 44 DH *dh_new_group_fallback(int); 46 int dh_gen_key(DH *, int); 47 int dh_pub_is_valid(const DH *, const BIGNUM *);
|
| H A D | dh.c | 158 DH * 236 dh_pub_is_valid(const DH *dh, const BIGNUM *dh_pub) in dh_pub_is_valid() 284 dh_gen_key(DH *dh, int need) in dh_gen_key() 312 DH * 315 DH *dh; in dh_new_group_asc() 337 DH * 340 DH *dh; in dh_new_group() 353 DH * 368 DH * 388 DH * [all …]
|
| /src/crypto/openssl/doc/man3/ |
| H A D | SSL_CTX_set_tmp_dh_callback.pod | 8 - handle DH keys for ephemeral key exchange 24 DH *(*tmp_dh_callback)(SSL *ssl, int is_export, 26 long SSL_CTX_set_tmp_dh(SSL_CTX *ctx, DH *dh); 29 DH *(*tmp_dh_callback)(SSL *ssl, int is_export, 31 long SSL_set_tmp_dh(SSL *ssl, DH *dh); 37 Some ciphersuites may use ephemeral Diffie-Hellman (DH) key exchange. In these 38 cases, the session data is negotiated using the ephemeral/temporary DH key and 41 DH keys. 43 Using ephemeral DH key exchange yields forward secrecy as the connection 44 can only be decrypted when the DH key is known. By generating a temporary [all …]
|
| H A D | DH_get0_pqg.pod | 9 DH_get_length, DH_set_length - Routines for getting and setting data in a DH object 19 void DH_get0_pqg(const DH *dh, 21 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); 22 void DH_get0_key(const DH *dh, 24 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); 25 const BIGNUM *DH_get0_p(const DH *dh); 26 const BIGNUM *DH_get0_q(const DH *dh); 27 const BIGNUM *DH_get0_g(const DH *dh); 28 const BIGNUM *DH_get0_priv_key(const DH *dh); 29 const BIGNUM *DH_get0_pub_key(const DH *dh); [all …]
|
| H A D | DH_meth_new.pod | 11 DH_meth_set_generate_params - Routines to build up DH methods 36 int (*DH_meth_get_generate_key(const DH_METHOD *dhm))(DH *); 37 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key)(DH *)); 40 (unsigned char *key, const BIGNUM *pub_key, DH *dh); 42 int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh)); 45 (const DH *dh, BIGNUM *r, const BIGNUM *a, const BIGNUM *p, 48 int (*bn_mod_exp)(const DH *dh, BIGNUM *r, const BIGNUM *a, 52 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *); 53 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *)); 55 int (*DH_meth_get_finish(const DH_METHOD *dhm))(DH *); [all …]
|
| H A D | DH_new.pod | 5 DH_new, DH_free - allocate and free DH objects 15 DH* DH_new(void); 17 void DH_free(DH *dh); 21 DH_new() allocates and initializes a B<DH> structure. 23 DH_free() frees the B<DH> structure and its components. The values are 40 L<EVP_PKEY-DH(7)> 46 For replacement see EVP_PKEY-DH(7).
|
| H A D | DH_set_method.pod | 6 DH_set_method, DH_new_method, DH_OpenSSL - select DH method 20 int DH_set_method(DH *dh, const DH_METHOD *meth); 22 DH *DH_new_method(ENGINE *engine); 34 important information about how these DH API functions are affected by the use 40 DH_set_default_method() makes B<meth> the default method for all DH 43 as a default for DH, so this function is no longer recommended. 52 This will replace the DH_METHOD used by the DH key and if the previous method 54 change. It is possible to have DH keys that only work with certain DH_METHOD 59 DH_new_method() allocates and initializes a DH structure so that B<engine> will 60 be used for the DH operations. If B<engine> is NULL, the default ENGINE for DH
|
| H A D | DH_get_1024_160.pod | 21 - Create standardized public primes or DH pairs 48 DH *DH_get_1024_160(void); 49 DH *DH_get_2048_224(void); 50 DH *DH_get_2048_256(void); 55 a DH object for the IETF RFC 5114 value. These functions are deprecated. 59 L<EVP_PKEY-DH(7)/DH parameters>) to one of "dh_1024_160", "dh_2048_224" or
|
| H A D | DSA_dup_DH.pod | 5 DSA_dup_DH - create a DH structure out of DSA structure 15 DH *DSA_dup_DH(const DSA *r); 23 DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q 24 is lost during that conversion, but the resulting DH parameters 29 DSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
|
| /src/crypto/openssl/doc/man7/ |
| H A D | EVP_PKEY-DH.pod | 5 EVP_PKEY-DH, EVP_PKEY-DHX, EVP_KEYMGMT-DH, EVP_KEYMGMT-DHX 6 - EVP_PKEY DH and DHX keytype and algorithm support 19 The B<DH> key type uses PKCS#3 format which saves I<p> and I<g>, but not the 24 L</DH and DHX key validation>. 26 =head2 DH and DHX domain parameters 29 (see L<EVP_PKEY-FFC(7)/FFC parameters>) the B<DHX> and B<DH> keytype 36 Sets or gets a string that associates a B<DH> or B<DHX> named safe prime group 46 DH/DHX named groups can be easily validated since the parameters are well known. 52 =head2 DH and DHX additional parameters 58 Used for getting and setting the encoding of the DH public key used in a key [all …]
|
| /src/crypto/openssl/crypto/pem/ |
| H A D | pem_all.c | 178 IMPLEMENT_PEM_write(DHparams, DH, PEM_STRING_DHPARAMS, DHparams) in IMPLEMENT_PEM_write() argument 179 IMPLEMENT_PEM_write(DHxparams, DH, PEM_STRING_DHXPARAMS, DHxparams) in IMPLEMENT_PEM_write() 183 DH *PEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write() 189 DH *ret = NULL; in IMPLEMENT_PEM_write() 208 DH *PEM_read_DHparams(FILE *fp, DH **x, pem_password_cb *cb, void *u) in PEM_read_DHparams() 211 DH *ret; in PEM_read_DHparams()
|
| /src/crypto/openssl/providers/implementations/keymgmt/ |
| H A D | dh_kmgmt.c | 103 DH *dh = NULL; in dh_newdata() 117 DH *dh = NULL; in dhx_newdata() 134 const DH *dh = keydata; in dh_has() 153 const DH *dh1 = keydata1; in dh_match() 154 const DH *dh2 = keydata2; in dh_match() 185 FFC_PARAMS *dhparams1 = ossl_dh_get0_params((DH *)dh1); in dh_match() 186 FFC_PARAMS *dhparams2 = ossl_dh_get0_params((DH *)dh2); in dh_match() 195 DH *dh = keydata; in dh_import() 219 DH *dh = keydata; in dh_export() 317 DH *dh = key; in dh_get_params() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFReader.cpp | 27 const dos_header *DH = COFFObj.getDOSHeader(); in readExecutableHeaders() local 29 if (!DH) in readExecutableHeaders() 33 Obj.DosHeader = *DH; in readExecutableHeaders() 34 if (DH->AddressOfNewExeHeader > sizeof(*DH)) in readExecutableHeaders() 35 Obj.DosStub = ArrayRef<uint8_t>(reinterpret_cast<const uint8_t *>(&DH[1]), in readExecutableHeaders() 36 DH->AddressOfNewExeHeader - sizeof(*DH)); in readExecutableHeaders()
|