Home
last modified time | relevance | path

Searched refs:dmp1 (Results 1 – 19 of 19) sorted by relevance

/third_party/openssl/crypto/rsa/
Drsa_lib.c133 BN_clear_free(r->dmp1); in RSA_free()
230 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument
235 if ((r->dmp1 == NULL && dmp1 == NULL) in RSA_set0_crt_params()
240 if (dmp1 != NULL) { in RSA_set0_crt_params()
241 BN_clear_free(r->dmp1); in RSA_set0_crt_params()
242 r->dmp1 = dmp1; in RSA_set0_crt_params()
243 BN_set_flags(r->dmp1, BN_FLG_CONSTTIME); in RSA_set0_crt_params()
377 const BIGNUM **dmp1, const BIGNUM **dmq1, in RSA_get0_crt_params() argument
380 if (dmp1 != NULL) in RSA_get0_crt_params()
381 *dmp1 = r->dmp1; in RSA_get0_crt_params()
[all …]
Drsa_ossl.c315 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_encrypt()
437 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_decrypt()
686 || !BN_mod_exp_mont_consttime(r1, r1, rsa->dmp1, rsa->p, ctx, in rsa_ossl_mod_exp()
750 BIGNUM *dmp1 = BN_new(); in rsa_ossl_mod_exp() local
751 if (dmp1 == NULL) in rsa_ossl_mod_exp()
753 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp()
756 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rsa->p, ctx, in rsa_ossl_mod_exp()
758 BN_free(dmp1); in rsa_ossl_mod_exp()
762 BN_free(dmp1); in rsa_ossl_mod_exp()
Drsa_x931g.c116 rsa->dmp1 = BN_new(); in RSA_X931_derive_ex()
117 if (rsa->dmp1 == NULL) in RSA_X931_derive_ex()
119 if (!BN_mod(rsa->dmp1, rsa->d, r1, ctx)) in RSA_X931_derive_ex()
Drsa_gen.c116 if (!rsa->dmp1 && ((rsa->dmp1 = BN_secure_new()) == NULL)) in rsa_builtin_keygen()
337 if (!BN_mod(rsa->dmp1, d, r1, ctx) in rsa_builtin_keygen()
Drsa_chk.c154 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in RSA_check_key_ex()
164 if (BN_cmp(j, key->dmp1) != 0) { in RSA_check_key_ex()
Drsa_local.h43 BIGNUM *dmp1; member
Drsa_asn1.c58 ASN1_SIMPLE(RSA, dmp1, CBIGNUM),
Drsa_ameth.c368 if (!ASN1_bn_print(bp, "exponent1:", x->dmp1, NULL, off)) in pkey_rsa_print()
/third_party/openssl/test/
Drsa_test.c42 BN_bin2bn(dmp1, sizeof(dmp1)-1, NULL), \
76 static unsigned char dmp1[] = in key1() local
122 static unsigned char dmp1[] = in key2() local
183 static unsigned char dmp1[] = in key3() local
Drsa_mp_test.c85 static const unsigned char dmp1[] = in key2048p3() local
148 BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL), in key2048p3()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Drsa.c25 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */ member
162 key->dmp1 = bignum_init(); in crypto_rsa_import_private_key()
167 key->p == NULL || key->q == NULL || key->dmp1 == NULL || in crypto_rsa_import_private_key()
213 pos = crypto_rsa_parse_integer(pos, end, key->dmp1); in crypto_rsa_import_private_key()
297 if (bignum_exptmod(tmp, key->dmp1, key->p, a) < 0) in crypto_rsa_exptmod()
361 bignum_deinit(key->dmp1); in crypto_rsa_free()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Drsa.c25 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */ member
167 key->dmp1 = bignum_init(); in crypto_rsa_import_private_key()
172 key->p == NULL || key->q == NULL || key->dmp1 == NULL || in crypto_rsa_import_private_key()
222 pos = crypto_rsa_parse_integer(pos, end, key->dmp1); in crypto_rsa_import_private_key()
306 if (bignum_exptmod(tmp, key->dmp1, key->p, a) < 0) in crypto_rsa_exptmod()
370 bignum_deinit(key->dmp1); in crypto_rsa_free()
/third_party/openssl/crypto/pem/
Dpvkfmt.c325 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in b2i_rsa() local
346 if (!read_lebn(&pin, hnbyte, &dmp1)) in b2i_rsa()
357 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in b2i_rsa()
359 dmp1 = dmq1 = iqmp = NULL; in b2i_rsa()
376 BN_free(dmp1); in b2i_rsa()
533 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; in check_bitlen_rsa() local
544 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in check_bitlen_rsa()
548 || (BN_num_bytes(dmp1) > hnbyte) in check_bitlen_rsa()
561 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; in write_rsa() local
571 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in write_rsa()
[all …]
/third_party/openssl/doc/man3/
DRSA_get0_key.pod21 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
26 const BIGNUM **dmp1, const BIGNUM **dmq1,
52 B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1> and B<iqmp>. B<n> is
54 exponent and B<d> is the private exponent. B<p>, B<q>, B<dmp1>,
57 the first and second factor of B<n> and B<dmp1>, B<dmq1> and B<iqmp>
83 set with RSA_get0_factors() and RSA_set0_factors(), and the B<dmp1>,
97 Any of the values B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1>, and B<iqmp> can also be
DRSA_check_key.pod24 and that B<dmp1>, B<dmq1> and B<iqmp> are set correctly or are B<NULL>.
DRSA_set_method.pod117 * operations, even if p,q,dmp1,dmq1,iqmp
/third_party/openssl/include/openssl/
Drsa.h206 int RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
215 const BIGNUM **dmp1, const BIGNUM **dmq1,
/third_party/openssl/crypto/err/
Dopenssl.txt2531 RSA_R_DMP1_NOT_CONGRUENT_TO_D:124:dmp1 not congruent to d
/third_party/openssl/
DCHANGES12333 method only got called if p,q,dmp1,dmq1,iqmp components were present,