Home
last modified time | relevance | path

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

/third_party/openssl/crypto/rsa/
Drsa_lib.c134 BN_clear_free(r->dmq1); in RSA_free()
230 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument
236 || (r->dmq1 == NULL && dmq1 == NULL) in RSA_set0_crt_params()
245 if (dmq1 != NULL) { in RSA_set0_crt_params()
246 BN_clear_free(r->dmq1); in RSA_set0_crt_params()
247 r->dmq1 = dmq1; in RSA_set0_crt_params()
248 BN_set_flags(r->dmq1, BN_FLG_CONSTTIME); in RSA_set0_crt_params()
377 const BIGNUM **dmp1, const BIGNUM **dmq1, in RSA_get0_crt_params() argument
382 if (dmq1 != NULL) in RSA_get0_crt_params()
383 *dmq1 = r->dmq1; 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()
680 || !BN_mod_exp_mont_consttime(m1, m1, rsa->dmq1, rsa->q, ctx, in rsa_ossl_mod_exp()
722 BIGNUM *dmq1 = BN_new(); in rsa_ossl_mod_exp() local
723 if (dmq1 == NULL) { in rsa_ossl_mod_exp()
727 BN_with_flags(dmq1, rsa->dmq1, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp()
730 if (!rsa->meth->bn_mod_exp(m1, r1, dmq1, rsa->q, ctx, in rsa_ossl_mod_exp()
733 BN_free(dmq1); in rsa_ossl_mod_exp()
737 BN_free(dmq1); in rsa_ossl_mod_exp()
Drsa_x931g.c123 rsa->dmq1 = BN_new(); in RSA_X931_derive_ex()
124 if (rsa->dmq1 == NULL) in RSA_X931_derive_ex()
126 if (!BN_mod(rsa->dmq1, rsa->d, r2, ctx)) in RSA_X931_derive_ex()
Drsa_gen.c118 if (!rsa->dmq1 && ((rsa->dmq1 = BN_secure_new()) == NULL)) in rsa_builtin_keygen()
338 || !BN_mod(rsa->dmq1, d, r2, ctx)) { in rsa_builtin_keygen()
Drsa_chk.c154 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in RSA_check_key_ex()
178 if (BN_cmp(j, key->dmq1) != 0) { in RSA_check_key_ex()
Drsa_local.h44 BIGNUM *dmq1; member
Drsa_asn1.c59 ASN1_SIMPLE(RSA, dmq1, CBIGNUM),
Drsa_ameth.c370 if (!ASN1_bn_print(bp, "exponent2:", x->dmq1, NULL, off)) in pkey_rsa_print()
/third_party/openssl/test/
Drsa_test.c43 BN_bin2bn(dmq1, sizeof(dmq1)-1, NULL), \
80 static unsigned char dmq1[] = in key1() local
126 static unsigned char dmq1[] = in key2() local
189 static unsigned char dmq1[] = in key3() local
Drsa_mp_test.c93 static const unsigned char dmq1[] = in key2048p3() local
149 BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL), in key2048p3()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Drsa.c26 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */ member
163 key->dmq1 = bignum_init(); in crypto_rsa_import_private_key()
168 key->dmq1 == NULL || key->iqmp == NULL) { in crypto_rsa_import_private_key()
214 pos = crypto_rsa_parse_integer(pos, end, key->dmq1); in crypto_rsa_import_private_key()
301 if (bignum_exptmod(tmp, key->dmq1, key->q, b) < 0) in crypto_rsa_exptmod()
362 bignum_deinit(key->dmq1); in crypto_rsa_free()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Drsa.c26 struct bignum *dmq1; /* d mod (q - 1); CRT exponent */ member
168 key->dmq1 = bignum_init(); in crypto_rsa_import_private_key()
173 key->dmq1 == NULL || key->iqmp == NULL) { in crypto_rsa_import_private_key()
223 pos = crypto_rsa_parse_integer(pos, end, key->dmq1); in crypto_rsa_import_private_key()
310 if (bignum_exptmod(tmp, key->dmq1, key->q, b) < 0) in crypto_rsa_exptmod()
371 bignum_deinit(key->dmq1); 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
348 if (!read_lebn(&pin, hnbyte, &dmq1)) in b2i_rsa()
357 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in b2i_rsa()
359 dmp1 = dmq1 = iqmp = NULL; in b2i_rsa()
377 BN_free(dmq1); 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()
549 || (BN_num_bytes(dmq1) > 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
55 B<dmq1> and B<iqmp> are the factors for the second representation of a
57 the first and second factor of B<n> and B<dmp1>, B<dmq1> and B<iqmp>
84 B<dmq1> and B<iqmp> parameters can be obtained and set with
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_DMQ1_NOT_CONGRUENT_TO_D:125:dmq1 not congruent to d
/third_party/openssl/
DCHANGES12275 method only got called if p,q,dmp1,dmq1,iqmp components were present,