Home
last modified time | relevance | path

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

12345678

/third_party/openssl/ohos_lite/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...]
/third_party/node/deps/openssl/openssl/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...]
/third_party/openssl/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...]
/third_party/node/deps/openssl/openssl/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...]
/third_party/openssl/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...]
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
H A Ddh.rs4 pub fn DH_new() -> *mut DH; in DH_new()
5 pub fn DH_free(dh: *mut DH); in DH_free()
6 pub fn DH_check(dh: *const DH, codes: *mut c_int) -> c_int; in DH_check()
13 ) -> *mut DH; in DH_generate_parameters()
16 dh: *mut DH, in DH_generate_parameters_ex()
22 pub fn DH_generate_key(dh: *mut DH) -> c_int; in DH_generate_key()
23 pub fn DH_compute_key(key: *mut c_uchar, pub_key: *const BIGNUM, dh: *mut DH) -> c_int; in DH_compute_key()
24 pub fn DH_size(dh: *const DH) -> c_int; in DH_size()
26 pub fn d2i_DHparams(k: *mut *mut DH, pp: *mut *const c_uchar, length: c_long) -> *mut DH; in d2i_DHparams()
[all...]
/third_party/node/deps/openssl/openssl/crypto/dh/
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) 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 *
[all...]
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 *) 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()
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()
157 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *) in DH_meth_get_finish()
[all...]
H A Ddh_asn1.c11 * DH low level APIs are deprecated for public use, but still ok for
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)
57 * Internal only structures for handling X9.42 DH
[all...]
H A Ddh_ameth.c11 * DH low level APIs are deprecated for public use, but still ok for
30 * i2d/d2i like DH parameter functions which use the appropriate routine for
31 * PKCS#3 DH or X9.42 DH.
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()
159 * PKCS#8 DH i
[all...]
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_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) 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 Ddh_backend.c11 * DH low level APIs are deprecated for public use, but still ok for
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 *dupke in ossl_dh_dup()
[all...]
H A Ddh_check.c11 * DH low level APIs are deprecated for public use, but still ok for
28 int DH_check_params_ex(const DH *dh) in DH_check_params_ex()
48 int DH_check_params(const DH *dh, int *ret) in DH_check_params()
57 nid = DH_get_nid((DH *)dh); in DH_check_params()
69 int DH_check_params(const DH *dh, int *ret) in DH_check_params()
111 int DH_check_ex(const DH *dh) in DH_check_ex()
141 int DH_check(const DH *dh, int *ret) in DH_check()
149 int nid = DH_get_nid((DH *)dh); in DH_check()
230 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) in DH_check_pub_key_ex()
250 int DH_check_pub_key(const DH *d
[all...]
H A Ddh_key.c11 * DH low level APIs are deprecated for public use, but still ok for
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);
38 * Finite Field Cryptography Diffie-Hellman (FFC DH) Primitive
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()
166 "OpenSSL DH Metho
[all...]
/third_party/openssl/crypto/dh/
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) 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()
131 void DH_free(DH *
[all...]
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 *) 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()
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()
157 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *) in DH_meth_get_finish()
[all...]
H A Ddh_asn1.c11 * DH low level APIs are deprecated for public use, but still ok for
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)
57 * Internal only structures for handling X9.42 DH
[all...]
H A Ddh_ameth.c11 * DH low level APIs are deprecated for public use, but still ok for
30 * i2d/d2i like DH parameter functions which use the appropriate routine for
31 * PKCS#3 DH or X9.42 DH.
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()
159 * PKCS#8 DH i
[all...]
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_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) 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 Ddh_backend.c11 * DH low level APIs are deprecated for public use, but still ok for
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 *dupke in ossl_dh_dup()
[all...]
H A Ddh_check.c11 * DH low level APIs are deprecated for public use, but still ok for
28 int DH_check_params_ex(const DH *dh) in DH_check_params_ex()
48 int DH_check_params(const DH *dh, int *ret) in DH_check_params()
57 nid = DH_get_nid((DH *)dh); in DH_check_params()
69 int DH_check_params(const DH *dh, int *ret) in DH_check_params()
111 int DH_check_ex(const DH *dh) in DH_check_ex()
141 int DH_check(const DH *dh, int *ret) in DH_check()
149 int nid = DH_get_nid((DH *)dh); in DH_check()
229 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) in DH_check_pub_key_ex()
249 int DH_check_pub_key(const DH *d
[all...]
H A Ddh_key.c11 * DH low level APIs are deprecated for public use, but still ok for
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);
38 * Finite Field Cryptography Diffie-Hellman (FFC DH) Primitive
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()
166 "OpenSSL DH Metho
[all...]
/third_party/node/deps/openssl/openssl/crypto/pem/
H A Dpem_all.c179 IMPLEMENT_PEM_write(DHparams, DH, PEM_STRING_DHPARAMS, DHparams) in IMPLEMENT_PEM_write()
180 IMPLEMENT_PEM_write(DHxparams, DH, PEM_STRING_DHXPARAMS, DHxparams) in IMPLEMENT_PEM_write()
182 /* Transparently read in PKCS#3 or X9.42 DH parameters */ in IMPLEMENT_PEM_write()
184 DH *PEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write()
190 DH *ret = NULL; in IMPLEMENT_PEM_write()
209 DH *PEM_read_DHparams(FILE *fp, DH **x, pem_password_cb *cb, void *u) in PEM_read_DHparams()
212 DH *ret; in PEM_read_DHparams()

Completed in 9 milliseconds

12345678