| /src/crypto/external/apache2/openssl/dist/crypto/dh/ |
| 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_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_rfc5114.c | 11 * DH low level APIs are deprecated for public use, but still ok for 23 * Macro to make a DH structure from BIGNUM data. NB: although just copying 29 DH *DH_get_##x(void) \ 31 DH *dh = DH_new(); \ 33 if (dh == NULL) \ 35 dh->params.p = BN_dup(&ossl_bignum_dh##x##_p); \ 36 dh->params.g = BN_dup(&ossl_bignum_dh##x##_g); \ 37 dh->params.q = BN_dup(&ossl_bignum_dh##x##_q); \ 38 if (dh->params.p == NULL || dh->params.q == NULL || dh->params.g == NULL) { [all...] |
| dh_check.c | 11 * DH low level APIs are deprecated for public use, but still ok for 21 #include "crypto/dh.h" 29 int DH_check_params_ex(const DH *dh) 33 if (!DH_check_params(dh, &errflags)) 49 int DH_check_params(const DH *dh, int *ret) 58 nid = DH_get_nid((DH *)dh); 66 return ossl_ffc_params_FIPS186_4_validate(dh->libctx, &dh->params [all...] |
| dh_key.c | 11 * DH low level APIs are deprecated for public use, but still ok for 20 #include "crypto/dh.h" 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); [all...] |
| 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...] |
| /src/crypto/external/bsd/openssl/dist/crypto/dh/ |
| 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_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_rfc5114.c | 11 * DH low level APIs are deprecated for public use, but still ok for 23 * Macro to make a DH structure from BIGNUM data. NB: although just copying 29 DH *DH_get_##x(void) \ 31 DH *dh = DH_new(); \ 33 if (dh == NULL) \ 35 dh->params.p = BN_dup(&ossl_bignum_dh##x##_p); \ 36 dh->params.g = BN_dup(&ossl_bignum_dh##x##_g); \ 37 dh->params.q = BN_dup(&ossl_bignum_dh##x##_q); \ 38 if (dh->params.p == NULL || dh->params.q == NULL || dh->params.g == NULL) { [all...] |
| dh_check.c | 11 * DH low level APIs are deprecated for public use, but still ok for 20 #include "crypto/dh.h" 28 int DH_check_params_ex(const DH *dh) 32 if (!DH_check_params(dh, &errflags)) 48 int DH_check_params(const DH *dh, int *ret) 57 nid = DH_get_nid((DH *)dh); 65 return ossl_ffc_params_FIPS186_4_validate(dh->libctx, &dh->params [all...] |
| dh_key.c | 11 * DH low level APIs are deprecated for public use, but still ok for 20 #include "crypto/dh.h" 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); [all...] |
| 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...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/dh/ |
| 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_rfc7919.c | 17 static DH *dh_param_init(const BIGNUM *p, int32_t nbits) 19 DH *dh = DH_new(); local 20 if (dh == NULL) 22 dh->p = (BIGNUM *)p; 23 dh->g = (BIGNUM *)&_bignum_const_2; 24 dh->length = nbits; 25 return dh; 28 DH *DH_new_by_nid(int nid) 47 int DH_get_nid(const DH *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_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); [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| 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...] |
| dh-ltm.c | 1 /* $NetBSD: dh-ltm.c,v 1.2 2017/01/28 21:31:47 christos Exp $ */ 41 #include <dh.h> 84 ltm_dh_generate_key(DH *dh) 87 int have_private_key = (dh->priv_key != NULL); 91 if (dh->p == NULL || dh->g == NULL) 96 size_t bits = BN_num_bits(dh->p); 98 if (dh->priv_key) 99 BN_free(dh->priv_key) [all...] |
| dh-tfm.c | 1 /* $NetBSD: dh-tfm.c,v 1.2 2017/01/28 21:31:47 christos Exp $ */ 39 #include <dh.h> 84 tfm_dh_generate_key(DH *dh) 87 int have_private_key = (dh->priv_key != NULL); 91 if (dh->p == NULL || dh->g == NULL) 96 size_t bits = BN_num_bits(dh->p); 98 if (dh->priv_key) 99 BN_free(dh->priv_key) [all...] |
| /src/sys/ufs/lfs/ |
| ulfs_dirhash.c | 82 static int ulfsdirhash_hash(struct dirhash *dh, const char *name, int namelen); 83 static void ulfsdirhash_adjfree(struct dirhash *dh, doff_t offset, int diff, 85 static void ulfsdirhash_delslot(struct dirhash *dh, int slot); 86 static int ulfsdirhash_findslot(struct dirhash *dh, const char *name, 97 #define DIRHASH_LOCK(dh) mutex_enter(&(dh)->dh_lock) 98 #define DIRHASH_UNLOCK(dh) mutex_exit(&(dh)->dh_lock) 130 struct dirhash *dh; local 172 memreqd = sizeof(*dh) + narrays * sizeof(*dh->dh_hash) 295 struct dirhash *dh; local 343 struct dirhash *dh, *dh_next; local 518 struct dirhash *dh; local 605 struct dirhash *dh; local 640 struct dirhash *dh; local 688 struct dirhash *dh; local 724 struct dirhash *dh; local 752 struct dirhash *dh; local 788 struct dirhash *dh; local 846 struct dirhash *dh; local 1066 struct dirhash *dh; local [all...] |
| /src/sys/ufs/ufs/ |
| ufs_dirhash.c | 83 static int ufsdirhash_hash(struct dirhash *dh, const char *name, int namelen); 84 static void ufsdirhash_adjfree(struct dirhash *dh, doff_t offset, int diff, 86 static void ufsdirhash_delslot(struct dirhash *dh, int slot); 87 static int ufsdirhash_findslot(struct dirhash *dh, const char *name, 98 #define DIRHASH_LOCK(dh) mutex_enter(&(dh)->dh_lock) 99 #define DIRHASH_UNLOCK(dh) mutex_exit(&(dh)->dh_lock) 128 struct dirhash *dh; local 171 memreqd = sizeof(*dh) + narrays * sizeof(*dh->dh_hash) 293 struct dirhash *dh; local 338 struct dirhash *dh, *dh_next; local 513 struct dirhash *dh; local 601 struct dirhash *dh; local 635 struct dirhash *dh; local 682 struct dirhash *dh; local 717 struct dirhash *dh; local 744 struct dirhash *dh; local 780 struct dirhash *dh; local 837 struct dirhash *dh; local 1053 struct dirhash *dh; local [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/external/mpl/bind/dist/bin/tests/system/tsiggss/ |
| prereq.sh | 22 $FEATURETEST --have-fips-dh || {
|
| /src/tests/crypto/libcrypto/dh/ |
| Makefile | 5 HELPER_DIR= dh
|