| /freebsd-13.1/crypto/openssl/include/openssl/ |
| H A D | dh.h | 115 DH *DHparams_dup(DH *); 124 DH *DH_new(void); 125 void DH_free(DH *dh); 126 int DH_up_ref(DH *dh); 127 int DH_bits(const DH *dh); 128 int DH_size(const DH *dh); 154 DH *d2i_DHparams(DH **a, const unsigned char **pp, long length); 156 DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length); 164 DH *DH_get_1024_160(void); 165 DH *DH_get_2048_224(void); [all …]
|
| /freebsd-13.1/crypto/openssl/crypto/dh/ |
| H A D | dh_lib.c | 37 DH *DH_new(void) in DH_new() 42 DH *DH_new_method(ENGINE *engine) in DH_new_method() 96 void DH_free(DH *r) in DH_free() 130 int DH_up_ref(DH *r) in DH_up_ref() 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() 162 int DH_security_bits(const DH *dh) in DH_security_bits() 175 void DH_get0_pqg(const DH *dh, in DH_get0_pqg() 215 long DH_get_length(const DH *dh) in DH_get_length() [all …]
|
| H A 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() 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 163 (DH *, int, int, BN_GENCB *) in DH_meth_get_generate_params() [all …]
|
| H A 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()
|
| H A 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() 103 static int generate_key(DH *dh) in generate_key() 249 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, in dh_bn_mod_exp() 256 static int dh_init(DH *dh) in dh_init() [all …]
|
| H A 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,
|
| H A D | dh2048.pem | 1 -----BEGIN DH PARAMETERS----- 8 -----END DH PARAMETERS----- 9 -----BEGIN DH PARAMETERS----- 16 -----END DH PARAMETERS-----
|
| H A 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()
|
| /freebsd-13.1/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-13.1/crypto/openssl/doc/man3/ |
| H A D | SSL_CTX_set_tmp_dh_callback.pod | 14 long SSL_CTX_set_tmp_dh(SSL_CTX *ctx, DH *dh); 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>. 41 ephemeral/temporary DH key and the key supplied and certified 52 In order to perform a DH key exchange the server must use a DH group 53 (DH parameters) and generate a DH key. The server will always generate 54 a new DH key during the negotiation. 69 L<dhparam(1)> application. Generation of custom DH 75 can supply the DH parameters via a callback function. [all …]
|
| H A D | DH_get0_pqg.pod | 15 void DH_get0_pqg(const DH *dh, 18 void DH_get0_key(const DH *dh, 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); 26 void DH_clear_flags(DH *dh, int flags); 28 void DH_set_flags(DH *dh, int flags); 29 ENGINE *DH_get0_engine(DH *d); 30 long DH_get_length(const DH *dh); 31 int DH_set_length(DH *dh, long length); [all …]
|
| H A 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 *); 36 (unsigned char *key, const BIGNUM *pub_key, DH *dh); 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 *); 55 (DH *, int, int, BN_GENCB *); 57 int (*generate_params)(DH *, int, int, BN_GENCB *)); 63 implementation of the various DH capabilities. 70 new B<DH> object will have those flags set by default. [all …]
|
| H A 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
|
| H A 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.
|
| H A 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
|
| H A 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
|
| H A 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.
|
| H A 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.
|
| H A 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
|
| H A 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
|
| /freebsd-13.1/crypto/openssl/doc/man1/ |
| H A D | dhparam.pod | 6 dhparam - DH parameter manipulation and generation 30 This command is used to manipulate DH parameter files. 66 they are converted to DH format. Otherwise, "strong" primes (such 71 exchange more efficient. Beware that with such DSA-style DH 72 parameters, a fresh DH key should be created for each use to 139 PEM format DH parameters use the header and footer lines: 141 -----BEGIN DH PARAMETERS----- 142 -----END DH PARAMETERS----- 145 DH. 147 This program manipulates DH parameters not keys. [all …]
|
| H A D | genpkey.pod | 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 226 The type of DH parameters to generate. Use 0 for PKCS#3 DH and 1 for X9.42 DH. 276 Generate 2048 bit DH parameters: 278 openssl genpkey -genparam -algorithm DH -out dhp.pem \ 281 Generate 2048 bit X9.42 DH parameters: 283 openssl genpkey -genparam -algorithm DH -out dhpx.pem \ 287 Output RFC5114 2048 bit DH parameters with 224 bit subgroup: [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/COFF/ |
| H A D | Reader.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()
|
| /freebsd-13.1/crypto/openssl/apps/ |
| H A D | dh1024.pem | 1 -----BEGIN DH PARAMETERS----- 5 -----END DH PARAMETERS----- 7 These are the 1024-bit DH parameters from "Internet Key Exchange
|