| /freebsd-14.2/crypto/openssl/include/openssl/ |
| H A D | dh.h | 171 (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ 180 ASN1_i2d_bio_of(DH, i2d_DHparams, bp, x) 183 (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ 203 OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); 204 OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); 205 OSSL_DEPRECATEDIN_3_0 int DH_up_ref(DH *dh); 206 OSSL_DEPRECATEDIN_3_0 int DH_bits(const DH *dh); 207 OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh); 242 OSSL_DEPRECATEDIN_3_0 DH *DH_get_1024_160(void); 243 OSSL_DEPRECATEDIN_3_0 DH *DH_get_2048_224(void); [all …]
|
| /freebsd-14.2/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); 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); 45 int ossl_dh_check_pairwise(const DH *dh); 47 const DH_METHOD *ossl_dh_get_method(const DH *dh); 59 int ossl_dh_is_foreign(const DH *dh); [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/dh/ |
| H A D | dh_lib.c | 57 DH *DH_new(void) in DH_new() 63 DH *DH_new_method(ENGINE *engine) in DH_new_method() 133 void DH_free(DH *r) in DH_free() 163 int DH_up_ref(DH *r) in DH_up_ref() 192 int DH_bits(const DH *dh) in DH_bits() 199 int DH_size(const DH *dh) in DH_size() 206 int DH_security_bits(const DH *dh) in DH_security_bits() 221 void DH_get0_pqg(const DH *dh, in DH_get0_pqg() 243 long DH_get_length(const DH *dh) in DH_get_length() 319 ENGINE *DH_get0_engine(DH *dh) in DH_get0_engine() [all …]
|
| H A D | dh_meth.c | 106 int (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *) in DH_meth_get_generate_key() 111 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *)) in DH_meth_set_generate_key() argument 118 (unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_meth_get_compute_key() 132 (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, in DH_meth_get_bn_mod_exp() 139 int (*bn_mod_exp) (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DH_meth_set_bn_mod_exp() 146 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *) in DH_meth_get_init() 151 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *)) in DH_meth_set_init() argument 157 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *) in DH_meth_get_finish() 162 int DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *)) in DH_meth_set_finish() argument 169 (DH *, int, int, BN_GENCB *) in DH_meth_get_generate_params() [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) 93 DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length) in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname() 97 DH *dh = NULL; in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname() 135 int i2d_DHxparams(const DH *dh, unsigned char **pp) in i2d_DHxparams()
|
| 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() 82 int ossl_dh_is_named_safe_prime_group(const DH *dh) in ossl_dh_is_named_safe_prime_group() 93 int DH_get_nid(const DH *dh) in DH_get_nid()
|
| H A D | dh_ameth.c | 37 DH *dh = NULL; in d2i_dhp() 70 DH *dh = NULL; in dh_pub_decode() 113 DH *dh; in dh_pub_encode() 230 DH *dh; in dh_param_decode() 321 static int int_dh_param_copy(DH *to, const DH *from, int is_x942) in int_dh_param_copy() 333 DH *DHparams_dup(const DH *dh) in DHparams_dup() 335 DH *ret; in DHparams_dup() 399 DH *dh; in dh_pkey_ctrl() 430 DH *dh = pkey->pkey.dh; in dh_pkey_public_check() 442 DH *dh = pkey->pkey.dh; in dh_pkey_param_check() [all …]
|
| 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_backend.c | 31 static int dh_ffc_params_fromdata(DH *dh, const OSSL_PARAM params[]) in dh_ffc_params_fromdata() 48 int ossl_dh_params_fromdata(DH *dh, const OSSL_PARAM params[]) in ossl_dh_params_fromdata() 66 int ossl_dh_key_fromdata(DH *dh, const OSSL_PARAM params[], int include_private) in ossl_dh_key_fromdata() 97 int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_dh_params_todata() 109 int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in ossl_dh_key_todata() 129 int ossl_dh_is_foreign(const DH *dh) in ossl_dh_is_foreign() 145 DH *ossl_dh_dup(const DH *dh, int selection) in ossl_dh_dup() 147 DH *dupkey = NULL; in ossl_dh_dup() 187 DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_dh_key_from_pkcs8() 198 DH *dh = NULL; in ossl_dh_key_from_pkcs8()
|
| H A D | dh_check.c | 28 int DH_check_params_ex(const DH *dh) in DH_check_params_ex() 48 int DH_check_params(const DH *dh, int *ret) in DH_check_params() 57 nid = DH_get_nid((DH *)dh); in DH_check_params() 69 int DH_check_params(const DH *dh, int *ret) in DH_check_params() 111 int DH_check_ex(const DH *dh) in DH_check_ex() 141 int DH_check(const DH *dh, int *ret) in DH_check() 149 int nid = DH_get_nid((DH *)dh); in DH_check() 230 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) in DH_check_pub_key_ex() 250 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) in DH_check_pub_key() 313 if (DH_get_nid((DH *)dh) != NID_undef && dh->length != 0) { in ossl_dh_check_priv_key() [all …]
|
| 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); 189 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, in dh_bn_mod_exp() 196 static int dh_init(DH *dh) in dh_init() 203 static int dh_finish(DH *dh) in dh_finish() 216 int DH_generate_key(DH *dh) in DH_generate_key() 225 int ossl_dh_generate_public_key(BN_CTX *ctx, const DH *dh, in ossl_dh_generate_public_key() 261 static int generate_key(DH *dh) in generate_key() [all …]
|
| H A D | dh_gen.c | 34 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, 38 int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits, in ossl_dh_generate_ffc_parameters() 94 static int dh_gen_named_group(OSSL_LIB_CTX *libctx, DH *ret, int prime_len) in dh_gen_named_group() 96 DH *dh; in dh_gen_named_group() 114 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, in DH_generate_parameters_ex() 155 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, in dh_builtin_genparams()
|
| /freebsd-14.2/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 * 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 * 419 DH * [all …]
|
| /freebsd-14.2/crypto/openssl/doc/man3/ |
| H A D | SSL_CTX_set_tmp_dh_callback.pod | 8 - handle DH keys for ephemeral key exchange 26 long SSL_CTX_set_tmp_dh(SSL_CTX *ctx, DH *dh); 31 long SSL_set_tmp_dh(SSL *ssl, DH *dh); 41 DH keys. 45 DH key inside the server application that is lost when the application 50 In order to perform a DH key exchange the server must use a DH group 51 (DH parameters) and generate a DH key. The server will always generate 52 a new DH key during the negotiation. 73 their own DH parameters should call SSL_CTX_set0_tmp_dh_pkey() or 82 DH parameters are supplied in a B<DH> object instead in the I<dh> argument, and [all …]
|
| H A D | DH_get0_pqg.pod | 19 void DH_get0_pqg(const DH *dh, 22 void DH_get0_key(const DH *dh, 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); 30 void DH_clear_flags(DH *dh, int flags); 32 void DH_set_flags(DH *dh, int flags); 34 long DH_get_length(const DH *dh); 35 int DH_set_length(DH *dh, long length); 37 ENGINE *DH_get0_engine(DH *d); [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 *); 40 (unsigned char *key, const BIGNUM *pub_key, DH *dh); 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 *); 59 (DH *, int, int, BN_GENCB *); 61 int (*generate_params)(DH *, int, int, BN_GENCB *)); 70 implementation of the various DH capabilities. 77 new B<DH> object will have those flags set by default. [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
|
| /freebsd-14.2/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 24 L</DH and DHX key validation>. 26 =head2 DH and DHX domain parameters 52 =head2 DH and DHX additional parameters 64 =head2 DH additional domain parameters 81 =head2 DH and DHX domain parameter / key generation parameters 111 This is only valid for B<DH> keys. 133 =head2 DH and DHX key validation 142 B<DH> parameters with named safe prime group instead. [all …]
|
| /freebsd-14.2/crypto/openssl/providers/ |
| H A D | encoders.inc | 52 ENCODER_TEXT("DH", dh, yes), 97 /* DH and X9.42 DH only support key parameters output. */ 98 ENCODER_w_structure("DH", dh, yes, der, type_specific_params), 154 ENCODER_w_structure("DH", dh, yes, der, PrivateKeyInfo), 155 ENCODER_w_structure("DH", dh, yes, pem, PrivateKeyInfo), 233 /* DH and X9.42 DH only support key parameters output. */ 234 ENCODER_w_structure("DH", dh, yes, der, DH), 235 ENCODER_w_structure("DH", dh, yes, pem, DH), 260 /* PKCS#3 defines the format for DH parameters */ 261 ENCODER_w_structure("DH", dh, yes, der, PKCS3), [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/pem/ |
| H A D | pem_all.c | 179 IMPLEMENT_PEM_write(DHparams, DH, PEM_STRING_DHPARAMS, DHparams) in IMPLEMENT_PEM_write() argument 180 IMPLEMENT_PEM_write(DHxparams, DH, PEM_STRING_DHXPARAMS, DHxparams) in IMPLEMENT_PEM_write() 184 DH *PEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write() 190 DH *ret = NULL; in IMPLEMENT_PEM_write() 209 DH *PEM_read_DHparams(FILE *fp, DH **x, pem_password_cb *cb, void *u) in PEM_read_DHparams() 212 DH *ret; in PEM_read_DHparams()
|
| /freebsd-14.2/crypto/openssl/doc/man1/ |
| H A D | openssl-dhparam.pod.in | 6 openssl-dhparam - DH parameter manipulation and generation 29 This command is used to manipulate DH parameter files. 62 If this option is used, DSA rather than DH parameters are read or created; 63 they are converted to DH format. Otherwise, "strong" primes (such 64 that (p-1)/2 is also prime) will be used for DH parameter generation. 66 DH parameter generation with the B<-dsaparam> option is much faster, 67 and the recommended exponent length is shorter, which makes DH key 68 exchange more efficient. Beware that with such DSA-style DH 69 parameters, a fresh DH key should be created for each use to 99 This option prints out the DH parameters in human readable form.
|
| H A D | openssl-genpkey.pod.in | 78 option) are DH, DSA and EC. 81 PKCS#3 refers to DH Keys. Some options are not shared between DH and DHX keys. 185 =head2 DH Key Generation Options 255 =head2 DH Parameter Generation Options 267 Use a named DH group to select constant values for the DH parameters. 315 The B<algorithm> option must be B<"DH">. 331 The B<algorithm> option must be B<"DH">. 427 Generate a DH key using a DH parameters file: 431 Output DH parameters for safe prime group ffdhe2048: 451 Output 2048 bit DH parameters: [all …]
|