Searched refs:DH (Results 1 - 25 of 160) sorted by relevance

1234567

/netbsd-current/crypto/external/bsd/openssh/dist/
H A Ddh.h38 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 *, cons
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/include/crypto/
H A Ddh.h19 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 *d
[all...]
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Ddh.h44 #define DH hc_DH macro
70 typedef struct DH DH; typedef in typeref:struct: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 *);
90 struct DH { struct
[all...]
H A Ddh.c47 * @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.
82 DH *
85 DH *d
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Ddh.h45 * 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...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/dh/
H A Ddh_local.h15 * 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);
51 int (*finish) (DH *dh);
55 int (*generate_params) (DH *dh, int prime_len, int generator,
H A Ddh_meth.c100 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 *))
151 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *)
156 int DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *))
[all...]
H A Ddh_lib.c17 int DH_set_method(DH *dh, const DH_METHOD *meth)
37 DH *DH_new(void)
42 DH *DH_new_method(ENGINE *engine)
44 DH *ret = OPENSSL_zalloc(sizeof(*ret));
96 void DH_free(DH *r)
104 REF_PRINT_COUNT("DH", r);
130 int DH_up_ref(DH *r)
137 REF_PRINT_COUNT("DH", r);
142 int DH_set_ex_data(DH *d, int idx, void *arg)
147 void *DH_get_ex_data(DH *
[all...]
H A Ddh_rfc5114.c17 * Macro to make a DH structure from BIGNUM data. NB: although just copying
23 DH *DH_get_##x(void) \
25 DH *dh = DH_new(); \
H A Ddh_rfc7919.c17 static DH *dh_param_init(const BIGNUM *p, int32_t nbits)
19 DH *dh = DH_new();
28 DH *DH_new_by_nid(int nid)
47 int DH_get_nid(const DH *dh)
H A Ddh_depr.c22 DH *DH_generate_parameters(int prime_len, int generator,
26 DH *ret = NULL;
H A Ddh_asn1.c27 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 structur
[all...]
H A Ddh_key.c15 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)
32 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
57 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh)
75 "OpenSSL DH Method",
103 static int generate_key(DH *d
[all...]
H A Ddh_prn.c16 int DHparams_print_fp(FILE *fp, const DH *x)
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/dh/
H A Ddh_local.h18 * 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);
54 int (*finish) (DH *dh);
58 int (*generate_params) (DH *dh, int prime_len, int generator,
H A Ddh_lib.c11 * DH low level APIs are deprecated for public use, but still ok for
29 static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx);
32 int DH_set_method(DH *dh, const DH_METHOD *meth)
52 const DH_METHOD *ossl_dh_get_method(const DH *dh)
57 DH *DH_new(void)
63 DH *DH_new_method(ENGINE *engine)
69 DH *ossl_dh_new_ex(OSSL_LIB_CTX *libctx)
74 static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx)
76 DH *ret = OPENSSL_zalloc(sizeof(*ret));
133 void DH_free(DH *
[all...]
H A Ddh_group_params.c10 /* DH parameters from RFC7919 and RFC3526 */
13 * DH low level APIs are deprecated for public use, but still ok for
27 static DH *dh_param_init(OSSL_LIB_CTX *libctx, const DH_NAMED_GROUP *group)
29 DH *dh = ossl_dh_new_ex(libctx);
40 DH *ossl_dh_new_by_nid_ex(OSSL_LIB_CTX *libctx, int nid)
51 DH *DH_new_by_nid(int nid)
56 void ossl_dh_cache_named_group(DH *dh)
82 int ossl_dh_is_named_safe_prime_group(const DH *dh)
93 int DH_get_nid(const DH *dh)
H A Ddh_meth.c11 * 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 *)
151 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *))
157 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *)
[all...]
H A Ddh_asn1.c11 * DH low level APIs are deprecated for public use, but still ok for
34 DH_free((DH *)*pval);
38 DH *dh = (DH *)*pval;
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)
57 * Internal only structures for handling X9.42 DH
[all...]
H A Ddh_depr.c13 * DH low level APIs are deprecated for public use, but still ok for
25 DH *DH_generate_parameters(int prime_len, int generator,
29 DH *ret = NULL;
H A Ddh_rfc5114.c11 * 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(); \
H A Ddh_prn.c11 * DH low level APIs are deprecated for public use, but still ok for
22 int DHparams_print_fp(FILE *fp, const DH *x)
/netbsd-current/crypto/external/bsd/openssl/dist/include/openssl/
H A Ddh.h28 /* 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, DHparam
[all...]
/netbsd-current/external/mpl/bind/dist/bin/tests/system/tkey/ns1/
H A Dsetup.sh18 keyname=$($KEYGEN -T KEY -a DH -b 768 -n host server)
/netbsd-current/external/mpl/bind/dist/lib/dns/
H A Dopenssl_shim.h67 DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key);
70 DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
73 DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);
76 DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);

Completed in 179 milliseconds

1234567