/third_party/rust/crates/rust-openssl/openssl/src/ |
D | rsa.rs | 207 pub fn dmp1(&self) -> Option<&BigNumRef> { in dmp1() function 469 dmp1: BigNum, in set_crt_params() 476 dmp1.as_ptr(), in set_crt_params() 480 mem::forget((dmp1, dmq1, iqmp)); in set_crt_params() 513 dmp1: BigNum, in from_private_components() 519 .set_crt_params(dmp1, dmq1, iqmp)? in from_private_components() 625 dmp1: *mut *const ffi::BIGNUM, 629 if !dmp1.is_null() { 630 *dmp1 = (*r).dmp1; 667 dmp1: *mut ffi::BIGNUM, [all …]
|
/third_party/openssl/test/ |
D | rsa_test.c | 41 BN_bin2bn(dmp1, sizeof(dmp1)-1, NULL), \ 75 static unsigned char dmp1[] = in key1() local 121 static unsigned char dmp1[] = in key2() local 182 static unsigned char dmp1[] = in key3() local
|
D | rsa_mp_test.c | 91 static const unsigned char dmp1[] = variable 162 BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL), in key2048p3_v1() 219 if (!TEST_ptr(num = BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL)) in key2048p3_v2()
|
D | rsa_sp800_56b_test.c | 305 && TEST_BN_eq_word(key->dmp1, DP) in test_check_crt_components() 310 && TEST_true(BN_set_word(key->dmp1, 1)) in test_check_crt_components() 312 && TEST_true(BN_set_word(key->dmp1, P-1)) in test_check_crt_components() 314 && TEST_true(BN_set_word(key->dmp1, DP)) in test_check_crt_components() 328 && TEST_true(BN_set_word(key->dmp1, DP+1)) in test_check_crt_components() 330 && TEST_true(BN_set_word(key->dmp1, DP)) in test_check_crt_components()
|
/third_party/openssl/crypto/rsa/ |
D | rsa_sp800_56b_gen.c | 285 if (rsa->dmp1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 286 rsa->dmp1 = BN_secure_new(); in ossl_rsa_sp800_56b_derive_params_from_pq() 287 if (rsa->dmp1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 289 BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq() 290 if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq() 325 BN_free(rsa->dmp1); in ossl_rsa_sp800_56b_derive_params_from_pq() 326 rsa->dmp1 = NULL; in ossl_rsa_sp800_56b_derive_params_from_pq()
|
D | rsa_lib.c | 163 BN_clear_free(r->dmp1); in RSA_free() 444 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument 449 if ((r->dmp1 == NULL && dmp1 == NULL) in RSA_set0_crt_params() 454 if (dmp1 != NULL) { in RSA_set0_crt_params() 455 BN_clear_free(r->dmp1); in RSA_set0_crt_params() 456 r->dmp1 = dmp1; in RSA_set0_crt_params() 457 BN_set_flags(r->dmp1, BN_FLG_CONSTTIME); in RSA_set0_crt_params() 597 const BIGNUM **dmp1, const BIGNUM **dmq1, in RSA_get0_crt_params() argument 600 if (dmp1 != NULL) in RSA_get0_crt_params() 601 *dmp1 = r->dmp1; in RSA_get0_crt_params() [all …]
|
D | rsa_gen.c | 139 if (!rsa->dmp1 && ((rsa->dmp1 = BN_secure_new()) == NULL)) in rsa_multiprime_keygen() 141 BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME); in rsa_multiprime_keygen() 365 if (!BN_mod(rsa->dmp1, d, r1, ctx) in rsa_multiprime_keygen() 457 BN_clear_free(rsa->dmp1); in rsa_keygen() 463 rsa->dmp1 = NULL; in rsa_keygen()
|
D | rsa_ossl.c | 322 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_encrypt() 447 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_decrypt() 703 r1, r1, rsa->dmp1, rsa->p, in rsa_ossl_mod_exp() 768 BIGNUM *dmp1 = BN_new(); in rsa_ossl_mod_exp() local 769 if (dmp1 == NULL) in rsa_ossl_mod_exp() 771 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp() 774 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rsa->p, ctx, in rsa_ossl_mod_exp() 776 BN_free(dmp1); in rsa_ossl_mod_exp() 780 BN_free(dmp1); in rsa_ossl_mod_exp()
|
D | rsa_sp800_56b_check.c | 30 if (rsa->dmp1 == NULL || rsa->dmq1 == NULL || rsa->iqmp == NULL) { in ossl_rsa_check_crt_components() 31 if (rsa->dmp1 != NULL || rsa->dmq1 != NULL || rsa->iqmp != NULL) in ossl_rsa_check_crt_components() 56 && (BN_cmp(rsa->dmp1, BN_value_one()) > 0) in ossl_rsa_check_crt_components() 57 && (BN_cmp(rsa->dmp1, p1) < 0) in ossl_rsa_check_crt_components() 65 && BN_mod_mul(r, rsa->dmp1, rsa->e, p1, ctx) in ossl_rsa_check_crt_components()
|
D | rsa_x931g.c | 122 rsa->dmp1 = BN_new(); in RSA_X931_derive_ex() 123 if (rsa->dmp1 == NULL) in RSA_X931_derive_ex() 125 if (!BN_mod(rsa->dmp1, rsa->d, r1, ctx)) in RSA_X931_derive_ex()
|
D | rsa_chk.c | 160 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime() 170 if (BN_cmp(j, key->dmp1) != 0) { in rsa_validate_keypair_multiprime()
|
D | rsa_asn1.c | 64 ASN1_SIMPLE(RSA, dmp1, CBIGNUM),
|
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
D | rsa_sp800_56b_gen.c | 285 if (rsa->dmp1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 286 rsa->dmp1 = BN_secure_new(); in ossl_rsa_sp800_56b_derive_params_from_pq() 287 if (rsa->dmp1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 289 BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq() 290 if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq() 325 BN_free(rsa->dmp1); in ossl_rsa_sp800_56b_derive_params_from_pq() 326 rsa->dmp1 = NULL; in ossl_rsa_sp800_56b_derive_params_from_pq()
|
D | rsa_lib.c | 163 BN_clear_free(r->dmp1); in RSA_free() 444 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument 449 if ((r->dmp1 == NULL && dmp1 == NULL) in RSA_set0_crt_params() 454 if (dmp1 != NULL) { in RSA_set0_crt_params() 455 BN_clear_free(r->dmp1); in RSA_set0_crt_params() 456 r->dmp1 = dmp1; in RSA_set0_crt_params() 457 BN_set_flags(r->dmp1, BN_FLG_CONSTTIME); in RSA_set0_crt_params() 597 const BIGNUM **dmp1, const BIGNUM **dmq1, in RSA_get0_crt_params() argument 600 if (dmp1 != NULL) in RSA_get0_crt_params() 601 *dmp1 = r->dmp1; in RSA_get0_crt_params() [all …]
|
D | rsa_gen.c | 139 if (!rsa->dmp1 && ((rsa->dmp1 = BN_secure_new()) == NULL)) in rsa_multiprime_keygen() 141 BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME); in rsa_multiprime_keygen() 365 if (!BN_mod(rsa->dmp1, d, r1, ctx) in rsa_multiprime_keygen() 457 BN_clear_free(rsa->dmp1); in rsa_keygen() 463 rsa->dmp1 = NULL; in rsa_keygen()
|
D | rsa_ossl.c | 322 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_encrypt() 447 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_decrypt() 703 r1, r1, rsa->dmp1, rsa->p, in rsa_ossl_mod_exp() 768 BIGNUM *dmp1 = BN_new(); in rsa_ossl_mod_exp() local 769 if (dmp1 == NULL) in rsa_ossl_mod_exp() 771 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp() 774 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rsa->p, ctx, in rsa_ossl_mod_exp() 776 BN_free(dmp1); in rsa_ossl_mod_exp() 780 BN_free(dmp1); in rsa_ossl_mod_exp()
|
D | rsa_sp800_56b_check.c | 30 if (rsa->dmp1 == NULL || rsa->dmq1 == NULL || rsa->iqmp == NULL) { in ossl_rsa_check_crt_components() 31 if (rsa->dmp1 != NULL || rsa->dmq1 != NULL || rsa->iqmp != NULL) in ossl_rsa_check_crt_components() 56 && (BN_cmp(rsa->dmp1, BN_value_one()) > 0) in ossl_rsa_check_crt_components() 57 && (BN_cmp(rsa->dmp1, p1) < 0) in ossl_rsa_check_crt_components() 65 && BN_mod_mul(r, rsa->dmp1, rsa->e, p1, ctx) in ossl_rsa_check_crt_components()
|
D | rsa_x931g.c | 122 rsa->dmp1 = BN_new(); in RSA_X931_derive_ex() 123 if (rsa->dmp1 == NULL) in RSA_X931_derive_ex() 125 if (!BN_mod(rsa->dmp1, rsa->d, r1, ctx)) in RSA_X931_derive_ex()
|
D | rsa_chk.c | 160 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime() 170 if (BN_cmp(j, key->dmp1) != 0) { in rsa_validate_keypair_multiprime()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
D | rsa.c | 25 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/ |
D | rsa.c | 25 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/ |
D | pvkfmt.c | 446 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in ossl_b2i_RSA_after_header() local 466 if (!read_lebn(&pin, hnbyte, &dmp1)) in ossl_b2i_RSA_after_header() 477 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in ossl_b2i_RSA_after_header() 479 dmp1 = dmq1 = iqmp = NULL; in ossl_b2i_RSA_after_header() 493 BN_free(dmp1); in ossl_b2i_RSA_after_header() 639 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; in check_bitlen_rsa() local 650 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in check_bitlen_rsa() 654 || (BN_num_bytes(dmp1) > hnbyte) in check_bitlen_rsa() 667 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; in write_rsa() local 677 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in write_rsa() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/pem/ |
D | pvkfmt.c | 446 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in ossl_b2i_RSA_after_header() local 466 if (!read_lebn(&pin, hnbyte, &dmp1)) in ossl_b2i_RSA_after_header() 477 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in ossl_b2i_RSA_after_header() 479 dmp1 = dmq1 = iqmp = NULL; in ossl_b2i_RSA_after_header() 493 BN_free(dmp1); in ossl_b2i_RSA_after_header() 639 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; in check_bitlen_rsa() local 650 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in check_bitlen_rsa() 654 || (BN_num_bytes(dmp1) > hnbyte) in check_bitlen_rsa() 667 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; in write_rsa() local 677 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in write_rsa() [all …]
|
/third_party/openssl/doc/man3/ |
D | RSA_get0_key.pod | 25 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp); 30 const BIGNUM **dmp1, const BIGNUM **dmq1, 60 B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1> and B<iqmp>. B<n> is 62 exponent and B<d> is the private exponent. B<p>, B<q>, B<dmp1>, 65 the first and second factor of B<n> and B<dmp1>, B<dmq1> and B<iqmp> 91 set with RSA_get0_factors() and RSA_set0_factors(), and the B<dmp1>, 105 Any of the values B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1>, and B<iqmp> can also be
|
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/ |
D | rsa.rs | 27 dmp1: *mut BIGNUM, in RSA_set0_crt_params() 43 dmp1: *mut *const BIGNUM, in RSA_get0_crt_params()
|