| /netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/ |
| H A 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 …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/ |
| H A D | dh.h | 171 (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ 178 ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x) 180 ASN1_i2d_bio_of(DH, i2d_DHparams, bp, x) 183 (DH *)ASN1_d2i_fp((char *(*)())DH_new, \ 190 ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x) 192 ASN1_i2d_bio_of(DH, i2d_DHxparams, bp, x) 194 DECLARE_ASN1_DUP_FUNCTION_name_attr(OSSL_DEPRECATEDIN_3_0, DH, DHparams) 200 OSSL_DEPRECATEDIN_3_0 int DH_set_method(DH *dh, const DH_METHOD *meth); 201 OSSL_DEPRECATEDIN_3_0 DH *DH_new_method(ENGINE *engine); 203 OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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 …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| H A D | dh.h | 44 #define DH hc_DH macro 70 typedef struct DH DH; typedef 78 int (*generate_key)(DH *); 79 int (*compute_key)(unsigned char *,const BIGNUM *,DH *); 80 int (*bn_mod_exp)(const DH *, BIGNUM *, const BIGNUM *, 83 int (*init)(DH *); 84 int (*finish)(DH *); 87 int (*generate_params)(DH *, int, int, BN_GENCB *); 90 struct DH { struct 126 DH * DH_new(void); argument [all …]
|
| H A D | dh.c | 65 DH * 82 DH * 85 DH *dh; in DH_new_method() 127 DH_free(DH *dh) in DH_free() 167 DH_up_ref(DH *dh) in DH_up_ref() 183 DH_size(const DH *dh) in DH_size() 201 DH_set_ex_data(DH *dh, int idx, void *data) in DH_set_ex_data() 219 DH_get_ex_data(DH *dh, int idx) in DH_get_ex_data() 238 DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb) in DH_generate_parameters_ex() 259 DH_check_pubkey(const DH *dh, const BIGNUM *pub_key, int *codes) in DH_check_pubkey() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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() 133 void DH_free(DH *r) in DH_free() 163 int DH_up_ref(DH *r) in DH_up_ref() [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() 124 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh)) in DH_meth_set_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 [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_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() 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() [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() 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_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_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() 196 static int dh_init(DH *dh) in dh_init() 203 static int dh_finish(DH *dh) in dh_finish() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/dh/ |
| H A 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 …]
|
| 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() 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 …]
|
| 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() 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 …]
|
| 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_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,
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/ |
| H A 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 …]
|
| H A 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 …]
|
| 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 *); 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 …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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 …]
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | dh.h | 38 DH *choose_dh(int, int, int); 39 DH *dh_new_group_asc(const char *, const char *); 40 DH *dh_new_group(BIGNUM *, BIGNUM *); 41 DH *dh_new_group1(void); 42 DH *dh_new_group14(void); 43 DH *dh_new_group16(void); 44 DH *dh_new_group18(void); 45 DH *dh_new_group_fallback(int); 47 int dh_gen_key(DH *, int); 48 int dh_pub_is_valid(const DH *, const BIGNUM *);
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man1/ |
| H A 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 …]
|