| /src/crypto/external/bsd/openssh/dist/ |
| dh.h | 1 /* $NetBSD: dh.h,v 1.13 2021/04/19 14:40:15 christos Exp $ */ 2 /* $OpenBSD: dh.h,v 1.19 2021/03/12 04:08:19 dtucker Exp $ */ 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) [all...] |
| /src/crypto/external/apache2/openssl/dist/include/crypto/ |
| dh.h | 16 #include <openssl/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); [all...] |
| /src/crypto/external/bsd/openssl/dist/include/crypto/ |
| dh.h | 16 # include <openssl/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); [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| dh.h | 1 /* $NetBSD: dh.h,v 1.2 2017/01/28 21:31:47 christos Exp $ */ 44 #define DH hc_DH 70 typedef struct DH DH; 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 *) [all...] |
| dh.c | 1 /* $NetBSD: dh.c,v 1.3 2023/06/19 21:41:43 christos Exp $ */ 44 #include <dh.h> 47 * @page page_dh DH - Diffie-Hellman key exchange 58 * Create a new DH object using DH_new_method(NULL), see DH_new_method(). 60 * @return a newly allocated DH object. 65 DH * 72 * Create a new DH object from the given engine, if the NULL is used, 73 * the default engine is used. Free the DH object with DH_free(). 75 * @param engine The engine to use to allocate the DH object. 77 * @return a newly allocated DH object 85 DH *dh; local [all...] |
| /src/crypto/external/bsd/openssl.old/dist/include/openssl/ |
| dh.h | 45 * If this flag is set the DH method is FIPS compliant and can be used in 62 /* typedef struct dh_st DH; */ 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 *); [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/dh/ |
| dh_local.h | 10 #include <openssl/dh.h> 18 * This first argument is used to pick up errors when a DH is passed 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); [all...] |
| dh_lib.c | 11 * DH low level APIs are deprecated for public use, but still ok for 26 #include "crypto/dh.h" 29 static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx); 32 int DH_set_method(DH *dh, const DH_METHOD *meth) 39 mtmp = dh->meth; 41 mtmp->finish(dh); 43 ENGINE_finish(dh->engine); 44 dh->engine = NULL; 46 dh->meth = meth [all...] |
| dh_group_params.c | 10 /* DH parameters from RFC7919 and RFC3526 */ 13 * DH low level APIs are deprecated for public use, but still ok for 25 #include "crypto/dh.h" 27 static DH *dh_param_init(OSSL_LIB_CTX *libctx, const DH_NAMED_GROUP *group) 29 DH *dh = ossl_dh_new_ex(libctx); local 31 if (dh == NULL) 34 ossl_ffc_named_group_set(&dh->params, group); 35 dh->params.nid = ossl_ffc_named_group_get_uid(group); 36 dh->dirty_cnt++ [all...] |
| dh_meth.c | 11 * DH low level APIs are deprecated for public use, but still ok for 102 int (*DH_meth_get_generate_key(const DH_METHOD *dhm))(DH *) 107 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key)(DH *)) 113 int (*DH_meth_get_compute_key(const DH_METHOD *dhm))(unsigned char *key, const BIGNUM *pub_key, DH *dh) 119 int (*compute_key)(unsigned char *key, const BIGNUM *pub_key, DH *dh)) 125 int (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm))(const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, 132 int (*bn_mod_exp)(const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, 139 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *) [all...] |
| dh_asn1.c | 11 * DH low level APIs are deprecated for public use, but still ok for 22 #include "crypto/dh.h" 34 DH_free((DH *)*pval); 38 DH *dh = (DH *)*pval; local 40 DH_clear_flags(dh, DH_FLAG_TYPE_MASK); 41 DH_set_flags(dh, DH_FLAG_TYPE_DH); 42 ossl_dh_cache_named_group(dh); 43 dh->dirty_cnt++ 97 DH *dh = NULL; local [all...] |
| dh_depr.c | 13 * DH low level APIs are deprecated for public use, but still ok for 23 #include <openssl/dh.h> 25 DH *DH_generate_parameters(int prime_len, int generator, 29 DH *ret = NULL;
|
| /src/crypto/external/bsd/openssl/dist/crypto/dh/ |
| dh_local.h | 10 #include <openssl/dh.h> 18 * This first argument is used to pick up errors when a DH is passed 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); [all...] |
| dh_lib.c | 11 * DH low level APIs are deprecated for public use, but still ok for 26 #include "crypto/dh.h" 29 static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx); 32 int DH_set_method(DH *dh, const DH_METHOD *meth) 39 mtmp = dh->meth; 41 mtmp->finish(dh); 43 ENGINE_finish(dh->engine); 44 dh->engine = NULL; 46 dh->meth = meth [all...] |
| dh_group_params.c | 10 /* DH parameters from RFC7919 and RFC3526 */ 13 * DH low level APIs are deprecated for public use, but still ok for 25 #include "crypto/dh.h" 27 static DH *dh_param_init(OSSL_LIB_CTX *libctx, const DH_NAMED_GROUP *group) 29 DH *dh = ossl_dh_new_ex(libctx); local 31 if (dh == NULL) 34 ossl_ffc_named_group_set(&dh->params, group); 35 dh->params.nid = ossl_ffc_named_group_get_uid(group); 36 dh->dirty_cnt++ [all...] |
| dh_meth.c | 11 * DH low level APIs are deprecated for public use, but still ok for 106 int (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *) 111 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *)) 118 (unsigned char *key, const BIGNUM *pub_key, DH *dh) 124 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh)) 132 (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, 139 int (*bn_mod_exp) (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, 146 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *) [all...] |
| dh_asn1.c | 11 * DH low level APIs are deprecated for public use, but still ok for 22 #include "crypto/dh.h" 34 DH_free((DH *)*pval); 38 DH *dh = (DH *)*pval; local 40 DH_clear_flags(dh, DH_FLAG_TYPE_MASK); 41 DH_set_flags(dh, DH_FLAG_TYPE_DH); 42 ossl_dh_cache_named_group(dh); 43 dh->dirty_cnt++ 97 DH *dh = NULL; local [all...] |
| dh_depr.c | 13 * DH low level APIs are deprecated for public use, but still ok for 23 #include <openssl/dh.h> 25 DH *DH_generate_parameters(int prime_len, int generator, 29 DH *ret = NULL;
|
| /src/crypto/external/bsd/openssl.old/dist/crypto/dh/ |
| dh_local.h | 10 #include <openssl/dh.h> 15 * This first argument is used to pick up errors when a DH is passed 27 /* Place holders if we want to do X9.42 DH */ 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) [all...] |
| dh_meth.c | 100 int (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *) 105 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *)) 112 (unsigned char *key, const BIGNUM *pub_key, DH *dh) 118 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh)) 126 (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, 133 int (*bn_mod_exp) (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, 140 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *) 145 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *)) [all...] |
| dh_lib.c | 17 int DH_set_method(DH *dh, const DH_METHOD *meth) 24 mtmp = dh->meth; 26 mtmp->finish(dh); 28 ENGINE_finish(dh->engine); 29 dh->engine = NULL; 31 dh->meth = meth; 33 meth->init(dh); 37 DH *DH_new(void) 42 DH *DH_new_method(ENGINE *engine [all...] |
| dh_rfc5114.c | 17 * Macro to make a DH structure from BIGNUM data. NB: although just copying 23 DH *DH_get_##x(void) \ 25 DH *dh = DH_new(); \ 27 if (dh == NULL) \ 29 dh->p = BN_dup(&_bignum_dh##x##_p); \ 30 dh->g = BN_dup(&_bignum_dh##x##_g); \ 31 dh->q = BN_dup(&_bignum_dh##x##_q); \ 32 if (dh->p == NULL || dh->q == NULL || dh->g == NULL) { [all...] |
| dh_depr.c | 20 # include <openssl/dh.h> 22 DH *DH_generate_parameters(int prime_len, int generator, 26 DH *ret = NULL;
|
| /src/crypto/external/apache2/openssl/dist/include/openssl/ |
| dh.h | 29 * DH parameter generation types used by EVP_PKEY_CTX_set_dh_paramgen_type() 123 * If this flag is set the DH method is FIPS compliant and can be used in 141 /* typedef struct dh_st DH; */ 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 [all...] |
| /src/crypto/external/bsd/openssl/dist/include/openssl/ |
| dh.h | 28 /* DH parameter generation types used by EVP_PKEY_CTX_set_dh_paramgen_type() */ 116 * If this flag is set the DH method is FIPS compliant and can be used in 134 /* typedef struct dh_st DH; */ 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 [all...] |