/third_party/node/deps/openssl/openssl/crypto/rsa/ |
H A 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 446 /* If the fields dmp1, dmq1 and iqmp in r are NULL, the corresponding input in RSA_set0_crt_params() 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_CONSTTIM in RSA_set0_crt_params() 596 RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) RSA_get0_crt_params() argument [all...] |
H A 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()
|
H A 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() 699 * r1 = r1^dmp1 mod p in rsa_ossl_mod_exp() 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() 773 /* compute r1^dmp1 mod p */ in rsa_ossl_mod_exp() 774 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rs in rsa_ossl_mod_exp() [all...] |
H A 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()
|
H A 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()
|
H A 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()
|
H A D | rsa_chk.c | 160 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime() 161 /* dmp1 = d mod (p-1)? */ in rsa_validate_keypair_multiprime() 170 if (BN_cmp(j, key->dmp1) != 0) { in rsa_validate_keypair_multiprime()
|
H A D | rsa_asn1.c | 64 ASN1_SIMPLE(RSA, dmp1, CBIGNUM),
|
/third_party/openssl/crypto/rsa/ |
H A 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 446 /* If the fields dmp1, dmq1 and iqmp in r are NULL, the corresponding input in RSA_set0_crt_params() 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_CONSTTIM in RSA_set0_crt_params() 596 RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) RSA_get0_crt_params() argument [all...] |
H A 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()
|
H A 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() 699 * r1 = r1^dmp1 mod p in rsa_ossl_mod_exp() 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() 773 /* compute r1^dmp1 mod p */ in rsa_ossl_mod_exp() 774 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rs in rsa_ossl_mod_exp() [all...] |
H A 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()
|
H A 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()
|
H A 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()
|
H A D | rsa_chk.c | 160 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime() 161 /* dmp1 = d mod (p-1)? */ in rsa_validate_keypair_multiprime() 170 if (BN_cmp(j, key->dmp1) != 0) { in rsa_validate_keypair_multiprime()
|
H A D | rsa_asn1.c | 64 ASN1_SIMPLE(RSA, dmp1, CBIGNUM),
|
/third_party/openssl/test/ |
H A 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
|
H A 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()
|
H A 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/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A 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() 292 * dmp1 = (1/e) mod (p-1) in crypto_rsa_exptmod() 295 * m1 = c^dmp1 mod p in crypto_rsa_exptmod() 305 /* a = tmp^dmp1 mod p */ in crypto_rsa_exptmod() 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/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A 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() 283 * dmp1 = (1/e) mod (p-1) in crypto_rsa_exptmod() 286 * m1 = c^dmp1 mod p in crypto_rsa_exptmod() 296 /* a = tmp^dmp1 mod p */ in crypto_rsa_exptmod() 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/node/deps/openssl/openssl/crypto/pem/ |
H A 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, in write_rsa() [all...] |
/third_party/openssl/crypto/pem/ |
H A 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, in write_rsa() [all...] |
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | rsa.rs | 207 pub fn dmp1(&self) -> Option<&BigNumRef> { in dmp1() functions 463 /// `dmp1`, `dmq1`, and `iqmp` are the exponents and coefficient for 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() 499 /// # let (n, e, d, p, q, dmp1, dmq1, iqmp) = (bn(), bn(), bn(), bn(), bn(), bn(), bn(), bn()); 502 /// .set_crt_params(dmp1, dmq1, iqmp)? 513 dmp1: BigNum, in from_private_components() 519 .set_crt_params(dmp1, dmq1, iqmp)? in from_private_components() 625 dmp1 in fmt() [all...] |
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/ |
H A D | rsa.rs | 27 dmp1: *mut BIGNUM, in RSA_set0_crt_params() 43 dmp1: *mut *const BIGNUM, in RSA_get0_crt_params()
|