HomeSort by: relevance | last modified time | path
    Searched defs:dh (Results 1 - 25 of 109) sorted by relevancy

1 2 3 4 5

  /src/crypto/external/bsd/openssl.old/dist/crypto/dh/
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_asn1.c 27 DH_free((DH *)*pval);
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)
43 * Internal only structures for handling X9.42 DH: this gets translated to or
44 * from a DH structure straight away.
79 /* Application public function: read in X9.42 DH parameters into DH structure *
84 DH *dh = NULL; local
    [all...]
dh_pmeth.c 21 /* DH pkey context structure */
36 /* KDF (if any) to use for DH */
329 DH *dh = NULL; local
336 dh = DH_get_1024_160();
340 dh = DH_get_2048_224();
344 dh = DH_get_2048_256();
350 EVP_PKEY_assign(pkey, EVP_PKEY_DHX, dh);
355 if ((dh = DH_new_by_nid(dctx->param_nid)) == NULL)
357 EVP_PKEY_assign(pkey, EVP_PKEY_DH, dh);
401 DH *dh = NULL; local
424 DH *dh; local
    [all...]
  /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_gen.c 16 * DH low level APIs are deprecated for public use, but still ok for
21 * specified in SP800-56A) when generating keys. Hence DH pairwise tests are
30 #include "crypto/dh.h"
35 static int dh_builtin_genparams(DH *ret, int prime_len, int generator,
39 int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits,
46 ret = ossl_ffc_params_FIPS186_2_generate(dh->libctx, &dh->params,
51 ret = ossl_ffc_params_FIPS186_4_generate(dh->libctx, &dh->params
97 DH *dh; local
    [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_backend.c 11 * DH low level APIs are deprecated for public use, but still ok for
22 #include "crypto/dh.h"
31 static int dh_ffc_params_fromdata(DH *dh, const OSSL_PARAM params[])
34 FFC_PARAMS *ffc = ossl_dh_get0_params(dh);
38 ossl_dh_cache_named_group(dh); /* This increments dh->dirty_cnt */
42 int ossl_dh_params_fromdata(DH *dh, const OSSL_PARAM params[])
47 if (!dh_ffc_params_fromdata(dh, params)
191 DH *dh = NULL; local
    [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_gen.c 16 * DH low level APIs are deprecated for public use, but still ok for
21 * specified in SP800-56A) when generating keys. Hence DH pairwise tests are
30 #include "crypto/dh.h"
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,
45 ret = ossl_ffc_params_FIPS186_2_generate(dh->libctx, &dh->params,
50 ret = ossl_ffc_params_FIPS186_4_generate(dh->libctx, &dh->params
96 DH *dh; local
    [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_backend.c 11 * DH low level APIs are deprecated for public use, but still ok for
22 #include "crypto/dh.h"
31 static int dh_ffc_params_fromdata(DH *dh, const OSSL_PARAM params[])
36 if (dh == NULL)
38 ffc = ossl_dh_get0_params(dh);
44 ossl_dh_cache_named_group(dh); /* This increments dh->dirty_cnt */
48 int ossl_dh_params_fromdata(DH *dh, const OSSL_PARAM params[]
198 DH *dh = NULL; local
    [all...]
  /src/external/cddl/osnet/dist/lib/libdtrace/common/
drti.c 106 dof_helper_t dh; local
149 dh.dofhp_dof = (uintptr_t)dof;
150 dh.dofhp_addr = elf && elf->e_type == ET_DYN ? (uintptr_t) lmp->l_addr : 0;
152 dh.dofhp_pid = getpid();
156 (void) snprintf(dh.dofhp_mod, sizeof (dh.dofhp_mod),
159 (void) snprintf(dh.dofhp_mod, sizeof (dh.dofhp_mod),
186 if ((gen = ioctl(fd, DTRACEHIOC_ADDDOF, &dh)) == -1)
191 gen = dh.dofhp_gen
    [all...]
  /src/external/lgpl3/gmp/dist/mpn/sparc64/
mode1o.c 155 mp_limb_t dh = HIGH32 (d); local
165 umul_ppmm_lowequal (h, q, d, dh, dl, l);
189 umul_ppmm_lowequal (h, q, d, dh, dl, l);
  /src/crypto/external/apache2/openssl/dist/test/
pem_read_depr_test.c 18 #include <openssl/dh.h>
45 DH *dh = NULL; local
50 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL);
51 if (!TEST_ptr(dh))
58 DH_free(dh);
66 DH *dh = NULL; local
71 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL);
72 if (!TEST_ptr(dh))
    [all...]
ffc_internal_test.c 329 /* Bad L/N for FIPS DH */
439 extern FFC_PARAMS *ossl_dh_get0_params(DH *dh);
446 DH *dh = NULL; local
451 if (!TEST_ptr(dh = DH_new_by_nid(NID_ffdhe2048)))
453 params = ossl_dh_get0_params(dh);
534 DH_free(dh);
544 DH *dh = NULL local
611 DH *dh = NULL; local
666 DH *dh = NULL; local
    [all...]
  /src/crypto/external/bsd/openssl/dist/test/
pem_read_depr_test.c 18 #include <openssl/dh.h>
45 DH *dh = NULL; local
50 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL);
51 if (!TEST_ptr(dh))
58 DH_free(dh);
66 DH *dh = NULL; local
71 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL);
72 if (!TEST_ptr(dh))
    [all...]
ffc_internal_test.c 330 /* Bad L/N for FIPS DH */
439 extern FFC_PARAMS *ossl_dh_get0_params(DH *dh);
446 DH *dh = NULL; local
451 if (!TEST_ptr(dh = DH_new_by_nid(NID_ffdhe2048)))
453 params = ossl_dh_get0_params(dh);
534 DH_free(dh);
544 DH *dh = NULL local
611 DH *dh = NULL; local
666 DH *dh = NULL; local
    [all...]
  /src/sys/arch/sun3/dev/
si.c 262 struct si_dma_handle *dh; local
305 dh = &sc->sc_dma[i];
306 dh->dh_flags = SIDH_BUSY;
311 dh->dh_dmaaddr = sc->sc_dmap->dm_segs[0].ds_addr;
312 dh->dh_dmalen = xlen;
316 dh->dh_flags |= SIDH_OUT;
318 bus_dmamap_sync(sc->sc_dmat, sc->sc_dmap, 0, dh->dh_dmalen,
319 (dh->dh_flags & SIDH_OUT) == 0 ?
331 dh->dh_flags |= SIDH_PHYS;
335 sr->sr_dma_hand = dh;
346 struct si_dma_handle *dh = sr->sr_dma_hand; local
    [all...]
si_obio.c 280 struct si_dma_handle *dh = sr->sr_dma_hand; local
290 data_pa = dh->dh_dmaaddr;
293 xlen = dh->dh_dmalen;
298 printf("%s: dh=%p, pa=0x%lx, xlen=0x%x\n",
299 __func__, dh, data_pa, xlen);
311 if (dh->dh_flags & SIDH_OUT) {
349 if (dh->dh_flags & SIDH_OUT) {
379 struct si_dma_handle *dh = sr->sr_dma_hand; local
399 if (dh->dh_flags & SIDH_OUT) {
438 struct si_dma_handle *dh = sr->sr_dma_hand local
    [all...]
si_vme.c 321 struct si_dma_handle *dh = sr->sr_dma_hand; local
330 data_pa = dh->dh_dmaaddr;
333 xlen = dh->dh_dmalen;
339 printf("%s: dh=%p, pa=0x%lx, xlen=0x%x\n",
340 __func__, dh, data_pa, xlen);
345 if (dh->dh_flags & SIDH_OUT) {
384 struct si_dma_handle *dh = sr->sr_dma_hand; local
404 if (dh->dh_flags & SIDH_OUT) {
446 struct si_dma_handle *dh = sr->sr_dma_hand; local
492 if (dh->dh_flags & SIDH_OUT
    [all...]
  /src/external/lgpl3/gmp/dist/mpn/generic/
div_q.c 105 mp_limb_t cy, dh, qh; local
121 dh = dp[dn - 1];
124 mpn_divrem_1 (qp, 0L, np, nn, dh);
136 if (LIKELY ((dh & GMP_NUMB_HIGHBIT) == 0))
138 count_leading_zeros (cnt, dh);
188 invert_pi1 (dinv, dh, dp[dn - 2]);
196 invert_pi1 (dinv, dh, dp[dn - 2]);
222 if (LIKELY ((dh & GMP_NUMB_HIGHBIT) == 0))
224 count_leading_zeros (cnt, dh);
280 invert_pi1 (dinv, dh, new_dp[qn - 1])
    [all...]
  /src/usr.bin/cvslatest/
cvslatest.c 175 FTS *dh; local
181 dh = fts_open(pathv, FTS_PHYSICAL, NULL);
182 if (dh == NULL)
185 while ((entry = fts_read(dh)) != NULL) {
196 (void)fts_close(dh);
  /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...]
engine.c 54 const DH_METHOD *dh; member in struct:hc_engine
131 engine->dh = method;
163 return engine->dh;
197 SG_default_engine(DH)
  /src/external/bsd/wpa/dist/src/eap_server/
ikev2.h 19 int dh; member in struct:ikev2_proposal_data
34 const struct dh_group *dh; member in struct:ikev2_initiator_data

Completed in 65 milliseconds

1 2 3 4 5