Home
last modified time | relevance | path

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

/crypto/dh/
A Ddh_lib.c57 DH *DH_new(void) in DH_new()
63 DH *DH_new_method(ENGINE *engine) in DH_new_method()
136 void DH_free(DH *r) in DH_free()
167 int DH_up_ref(DH *r) in DH_up_ref()
196 int DH_bits(const DH *dh) in DH_bits()
203 int DH_size(const DH *dh) in DH_size()
210 int DH_security_bits(const DH *dh) in DH_security_bits()
225 void DH_get0_pqg(const DH *dh, in DH_get0_pqg()
247 long DH_get_length(const DH *dh) in DH_get_length()
323 ENGINE *DH_get0_engine(DH *dh) in DH_get0_engine()
[all …]
A Ddh_meth.c102 int (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *) in DH_meth_get_generate_key()
107 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *)) in DH_meth_set_generate_key() argument
114 (unsigned char *key, const BIGNUM *pub_key, DH *dh) in DH_meth_get_compute_key()
128 (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *, in DH_meth_get_bn_mod_exp()
135 int (*bn_mod_exp) (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, in DH_meth_set_bn_mod_exp()
142 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *) in DH_meth_get_init()
147 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *)) in DH_meth_set_init() argument
153 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *) in DH_meth_get_finish()
158 int DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *)) in DH_meth_set_finish() argument
165 (DH *, int, int, BN_GENCB *) in DH_meth_get_generate_params()
[all …]
A Ddh_asn1.c34 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)
93 DH *d2i_DHxparams(DH **a, const unsigned char **pp, long length) in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname()
97 DH *dh = NULL; in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname()
135 int i2d_DHxparams(const DH *dh, unsigned char **pp) in i2d_DHxparams()
A Ddh_backend.c31 static int dh_ffc_params_fromdata(DH *dh, const OSSL_PARAM params[]) in dh_ffc_params_fromdata()
42 int ossl_dh_params_fromdata(DH *dh, const OSSL_PARAM params[]) in ossl_dh_params_fromdata()
60 int ossl_dh_key_fromdata(DH *dh, const OSSL_PARAM params[], int include_private) in ossl_dh_key_fromdata()
91 int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_dh_params_todata()
103 int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in ossl_dh_key_todata()
123 int ossl_dh_is_foreign(const DH *dh) in ossl_dh_is_foreign()
139 DH *ossl_dh_dup(const DH *dh, int selection) in ossl_dh_dup()
141 DH *dupkey = NULL; in ossl_dh_dup()
181 DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_dh_key_from_pkcs8()
192 DH *dh = NULL; in ossl_dh_key_from_pkcs8()
A Ddh_group_params.c27 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()
A Ddh_ameth.c37 DH *dh = NULL; in d2i_dhp()
70 DH *dh = NULL; in dh_pub_decode()
113 DH *dh; in dh_pub_encode()
230 DH *dh; in dh_param_decode()
321 static int int_dh_param_copy(DH *to, const DH *from, int is_x942) in int_dh_param_copy()
333 DH *DHparams_dup(const DH *dh) in DHparams_dup()
335 DH *ret; in DHparams_dup()
399 DH *dh; in dh_pkey_ctrl()
430 DH *dh = pkey->pkey.dh; in dh_pkey_public_check()
442 DH *dh = pkey->pkey.dh; in dh_pkey_param_check()
[all …]
A Ddh_local.h46 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,
A Ddh_key.c29 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);
189 static int dh_bn_mod_exp(const DH *dh, BIGNUM *r, in dh_bn_mod_exp()
200 static int dh_init(DH *dh) in dh_init()
207 static int dh_finish(DH *dh) in dh_finish()
220 int DH_generate_key(DH *dh) in DH_generate_key()
229 int ossl_dh_generate_public_key(BN_CTX *ctx, const DH *dh, in ossl_dh_generate_public_key()
265 static int generate_key(DH *dh) in generate_key()
[all …]
A Ddh_check.c29 int DH_check_params_ex(const DH *dh) in DH_check_params_ex()
49 int DH_check_params(const DH *dh, int *ret) in DH_check_params()
58 nid = DH_get_nid((DH *)dh); in DH_check_params()
70 int DH_check_params(const DH *dh, int *ret) in DH_check_params()
112 int DH_check_ex(const DH *dh) in DH_check_ex()
142 int DH_check(const DH *dh, int *ret) in DH_check()
150 int nid = DH_get_nid((DH *)dh); in DH_check()
231 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key) in DH_check_pub_key_ex()
251 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *ret) in DH_check_pub_key()
314 if (DH_get_nid((DH *)dh) != NID_undef && dh->length != 0) { in ossl_dh_check_priv_key()
[all …]
A Ddh_gen.c35 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, in ossl_dh_generate_ffc_parameters()
95 static int dh_gen_named_group(OSSL_LIB_CTX *libctx, DH *ret, int prime_len) in dh_gen_named_group()
97 DH *dh; in dh_gen_named_group()
115 int DH_generate_parameters_ex(DH *ret, int prime_len, int generator, in DH_generate_parameters_ex()
156 static int dh_builtin_genparams(DH *ret, int prime_len, int generator, in dh_builtin_genparams()
A Ddh_pmeth.c274 static DH *ffc_params_generate(OSSL_LIB_CTX *libctx, DH_PKEY_CTX *dctx, in ffc_params_generate()
277 DH *ret; in ffc_params_generate()
323 DH *dh = NULL; in pkey_dh_paramgen()
377 DH *dh = NULL; in pkey_dh_keygen()
393 return DH_generate_key((DH *)EVP_PKEY_get0_DH(pkey)); in pkey_dh_keygen()
400 DH *dh; in pkey_dh_derive()
401 const DH *dhpub; in pkey_dh_derive()
409 dh = (DH *)EVP_PKEY_get0_DH(ctx->pkey); in pkey_dh_derive()
A Ddh_depr.c25 DH *DH_generate_parameters(int prime_len, int generator, in DH_generate_parameters()
29 DH *ret = NULL; in DH_generate_parameters()
A Ddh_rfc5114.c29 DH *DH_get_##x(void) \
31 DH *dh = DH_new(); \
A Ddh_prn.c22 int DHparams_print_fp(FILE *fp, const DH *x) in DHparams_print_fp()
/crypto/pem/
A Dpem_all.c179 IMPLEMENT_PEM_write(DHparams, DH, PEM_STRING_DHPARAMS, DHparams) in IMPLEMENT_PEM_write() argument
180 IMPLEMENT_PEM_write(DHxparams, DH, PEM_STRING_DHXPARAMS, DHxparams) 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()
/crypto/x509/
A Dx_pubkey.c646 DH *ossl_d2i_DH_PUBKEY(DH **a, const unsigned char **pp, long length) in ossl_d2i_DH_PUBKEY()
649 DH *key = NULL; in ossl_d2i_DH_PUBKEY()
669 int ossl_i2d_DH_PUBKEY(const DH *a, unsigned char **pp) in ossl_i2d_DH_PUBKEY()
680 (void)EVP_PKEY_assign_DH(pktmp, (DH *)a); in ossl_i2d_DH_PUBKEY()
687 DH *ossl_d2i_DHx_PUBKEY(DH **a, const unsigned char **pp, long length) in ossl_d2i_DHx_PUBKEY()
690 DH *key = NULL; in ossl_d2i_DHx_PUBKEY()
710 int ossl_i2d_DHx_PUBKEY(const DH *a, unsigned char **pp) in ossl_i2d_DHx_PUBKEY()
721 (void)EVP_PKEY_assign(pktmp, EVP_PKEY_DHX, (DH *)a); in ossl_i2d_DHx_PUBKEY()
/crypto/err/
A Derr_all_legacy.c77 IMPLEMENT_LEGACY_ERR_LOAD(DH)
A Dopenssl.ec9 L DH include/openssl/dherr.h crypto/dh/dh_err.c include/cry…
/crypto/dsa/
A Ddsa_lib.c41 DH *DSA_dup_DH(const DSA *r) in DSA_dup_DH()
48 DH *ret = NULL; in DSA_dup_DH()
/crypto/engine/
A DREADME.md66 ENGINE code being linked in *and* because of that DSA, DH, and RAND also. If we
72 hooking to ENGINE works from RSA, DSA, DH, RAND, as well as adding new hooking
158 RSA, DSA, DH, and RAND all have their own ENGINE_TABLE code as well, and the
205 RSA, DSA, DH, and RAND functions that were fiddled during the original ENGINE
/crypto/bn/asm/
A Dmips.pl942 $DH=$v1;
945 $SRL $DH,$a2,4*$BNSZ # bits
956 beq $DH,$HH,.L_bn_div_words_skip_div1
957 $DIVU ($a0,$DH)
958 mfqt ($QT,$a0,$DH)
989 beq $DH,$HH,.L_bn_div_words_skip_div2
990 $DIVU ($a0,$DH)
991 mfqt ($QT,$a0,$DH)
1036 undef $HH; undef $QT; undef $DH;
A Dia64.S1397 #define DH r22 macro
1444 shr.u DH=r34,32
1446 { .mii; setf.sig f7=DH
1467 cmp.eq p6,p7=HH,DH };;
1497 cmp.eq p6,p7=HH,DH };;
/crypto/evp/
A Dp_lib.c961 int EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *dhkey) in IMPLEMENT_ECX_VARIANT()
1000 DH *evp_pkey_get0_DH_int(const EVP_PKEY *pkey) in evp_pkey_get0_DH_int()
1009 const DH *EVP_PKEY_get0_DH(const EVP_PKEY *pkey) in EVP_PKEY_get0_DH()
1014 DH *EVP_PKEY_get1_DH(EVP_PKEY *pkey) in EVP_PKEY_get1_DH()
1016 DH *ret = evp_pkey_get0_DH_int(pkey); in EVP_PKEY_get1_DH()
A Dctrl_params_translate.c1527 const DH *dh = EVP_PKEY_get0_DH(pkey); in get_payload_group_name()
1583 const DH *dh = EVP_PKEY_get0_DH(pkey); in get_payload_private_key()
/crypto/objects/
A Dobjects.txt1448 cryptopro 98 : id-GostR3410-2001DH : GOST R 34.10-2001 DH
1449 cryptopro 99 : id-GostR3410-94DH : GOST R 34.10-94 DH
1741 ISO-US 10046 2 1 : dhpublicnumber : X9.42 DH
1861 # NIDs for RFC7919 DH parameters
1867 # NIDs for RFC3526 DH parameters

Completed in 54 milliseconds