Home
last modified time | relevance | path

Searched refs:dmq1 (Results 1 - 25 of 35) sorted by relevance

12

/third_party/node/deps/openssl/openssl/crypto/rsa/
H A Drsa_lib.c164 BN_clear_free(r->dmq1); 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()
450 || (r->dmq1 == NULL && dmq1 == NULL) in RSA_set0_crt_params()
459 if (dmq1 != NULL) { in RSA_set0_crt_params()
460 BN_clear_free(r->dmq1); in RSA_set0_crt_params()
461 r->dmq1 = dmq1; in RSA_set0_crt_params()
462 BN_set_flags(r->dmq1, 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 Drsa_sp800_56b_gen.c294 if (rsa->dmq1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
295 rsa->dmq1 = BN_secure_new(); in ossl_rsa_sp800_56b_derive_params_from_pq()
296 if (rsa->dmq1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
298 BN_set_flags(rsa->dmq1, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq()
299 if (!BN_mod(rsa->dmq1, rsa->d, q1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq()
323 BN_free(rsa->dmq1); in ossl_rsa_sp800_56b_derive_params_from_pq()
324 rsa->dmq1 = NULL; in ossl_rsa_sp800_56b_derive_params_from_pq()
H A Drsa_ossl.c322 (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()
698 * m1 = m1^dmq1 mod q in rsa_ossl_mod_exp()
701 || !BN_mod_exp_mont_consttime_x2(m1, m1, rsa->dmq1, rsa->q, in rsa_ossl_mod_exp()
740 BIGNUM *dmq1 = BN_new(); in rsa_ossl_mod_exp() local
741 if (dmq1 == NULL) { in rsa_ossl_mod_exp()
745 BN_with_flags(dmq1, rsa->dmq1, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp()
747 /* compute r1^dmq1 mod q */ in rsa_ossl_mod_exp()
748 if (!rsa->meth->bn_mod_exp(m1, r1, dmq1, rs in rsa_ossl_mod_exp()
[all...]
H A Drsa_gen.c142 if (!rsa->dmq1 && ((rsa->dmq1 = BN_secure_new()) == NULL)) in rsa_multiprime_keygen()
144 BN_set_flags(rsa->dmq1, BN_FLG_CONSTTIME); in rsa_multiprime_keygen()
366 || !BN_mod(rsa->dmq1, d, r2, ctx)) { in rsa_multiprime_keygen()
458 BN_clear_free(rsa->dmq1); in rsa_keygen()
464 rsa->dmq1 = NULL; in rsa_keygen()
H A Drsa_x931g.c129 rsa->dmq1 = BN_new(); in RSA_X931_derive_ex()
130 if (rsa->dmq1 == NULL) in RSA_X931_derive_ex()
132 if (!BN_mod(rsa->dmq1, rsa->d, r2, ctx)) in RSA_X931_derive_ex()
H A Drsa_sp800_56b_check.c30 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()
59 && (BN_cmp(rsa->dmq1, BN_value_one()) > 0) in ossl_rsa_check_crt_components()
60 && (BN_cmp(rsa->dmq1, q1) < 0) in ossl_rsa_check_crt_components()
68 && BN_mod_mul(r, rsa->dmq1, rsa->e, q1, ctx) in ossl_rsa_check_crt_components()
H A Drsa_chk.c160 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime()
175 /* dmq1 = d mod (q-1)? */ in rsa_validate_keypair_multiprime()
184 if (BN_cmp(j, key->dmq1) != 0) { in rsa_validate_keypair_multiprime()
H A Drsa_asn1.c65 ASN1_SIMPLE(RSA, dmq1, CBIGNUM),
/third_party/openssl/crypto/rsa/
H A Drsa_lib.c164 BN_clear_free(r->dmq1); 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()
450 || (r->dmq1 == NULL && dmq1 == NULL) in RSA_set0_crt_params()
459 if (dmq1 != NULL) { in RSA_set0_crt_params()
460 BN_clear_free(r->dmq1); in RSA_set0_crt_params()
461 r->dmq1 = dmq1; in RSA_set0_crt_params()
462 BN_set_flags(r->dmq1, 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 Drsa_sp800_56b_gen.c294 if (rsa->dmq1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
295 rsa->dmq1 = BN_secure_new(); in ossl_rsa_sp800_56b_derive_params_from_pq()
296 if (rsa->dmq1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
298 BN_set_flags(rsa->dmq1, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq()
299 if (!BN_mod(rsa->dmq1, rsa->d, q1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq()
323 BN_free(rsa->dmq1); in ossl_rsa_sp800_56b_derive_params_from_pq()
324 rsa->dmq1 = NULL; in ossl_rsa_sp800_56b_derive_params_from_pq()
H A Drsa_ossl.c322 (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()
698 * m1 = m1^dmq1 mod q in rsa_ossl_mod_exp()
701 || !BN_mod_exp_mont_consttime_x2(m1, m1, rsa->dmq1, rsa->q, in rsa_ossl_mod_exp()
740 BIGNUM *dmq1 = BN_new(); in rsa_ossl_mod_exp() local
741 if (dmq1 == NULL) { in rsa_ossl_mod_exp()
745 BN_with_flags(dmq1, rsa->dmq1, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp()
747 /* compute r1^dmq1 mod q */ in rsa_ossl_mod_exp()
748 if (!rsa->meth->bn_mod_exp(m1, r1, dmq1, rs in rsa_ossl_mod_exp()
[all...]
H A Drsa_gen.c142 if (!rsa->dmq1 && ((rsa->dmq1 = BN_secure_new()) == NULL)) in rsa_multiprime_keygen()
144 BN_set_flags(rsa->dmq1, BN_FLG_CONSTTIME); in rsa_multiprime_keygen()
366 || !BN_mod(rsa->dmq1, d, r2, ctx)) { in rsa_multiprime_keygen()
458 BN_clear_free(rsa->dmq1); in rsa_keygen()
464 rsa->dmq1 = NULL; in rsa_keygen()
H A Drsa_x931g.c129 rsa->dmq1 = BN_new(); in RSA_X931_derive_ex()
130 if (rsa->dmq1 == NULL) in RSA_X931_derive_ex()
132 if (!BN_mod(rsa->dmq1, rsa->d, r2, ctx)) in RSA_X931_derive_ex()
H A Drsa_sp800_56b_check.c30 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()
59 && (BN_cmp(rsa->dmq1, BN_value_one()) > 0) in ossl_rsa_check_crt_components()
60 && (BN_cmp(rsa->dmq1, q1) < 0) in ossl_rsa_check_crt_components()
68 && BN_mod_mul(r, rsa->dmq1, rsa->e, q1, ctx) in ossl_rsa_check_crt_components()
H A Drsa_chk.c160 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime()
175 /* dmq1 = d mod (q-1)? */ in rsa_validate_keypair_multiprime()
184 if (BN_cmp(j, key->dmq1) != 0) { in rsa_validate_keypair_multiprime()
H A Drsa_asn1.c65 ASN1_SIMPLE(RSA, dmq1, CBIGNUM),
/third_party/openssl/test/
H A Drsa_test.c42 BN_bin2bn(dmq1, sizeof(dmq1)-1, NULL), \
79 static unsigned char dmq1[] = in key1() local
125 static unsigned char dmq1[] = in key2() local
188 static unsigned char dmq1[] = in key3() local
H A Drsa_mp_test.c99 static const unsigned char dmq1[] = variable
163 BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL), in key2048p3_v1()
221 || !TEST_ptr(num = BN_bin2bn(dmq1, sizeof(dmq1) - 1, NULL)) in key2048p3_v2()
H A Drsa_sp800_56b_test.c306 && TEST_BN_eq_word(key->dmq1, DQ) in test_check_crt_components()
316 && TEST_true(BN_set_word(key->dmq1, 1)) in test_check_crt_components()
318 && TEST_true(BN_set_word(key->dmq1, Q-1)) in test_check_crt_components()
320 && TEST_true(BN_set_word(key->dmq1, DQ)) in test_check_crt_components()
332 && TEST_true(BN_set_word(key->dmq1, DQ-1)) in test_check_crt_components()
334 && TEST_true(BN_set_word(key->dmq1, DQ)) in test_check_crt_components()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
H A 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()
293 * dmq1 = (1/e) mod (q-1) in crypto_rsa_exptmod()
296 * m2 = c^dmq1 mod q in crypto_rsa_exptmod()
309 /* b = tmp^dmq1 mod q */ in crypto_rsa_exptmod()
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/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
H A 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()
284 * dmq1 = (1/e) mod (q-1) in crypto_rsa_exptmod()
287 * m2 = c^dmq1 mod q in crypto_rsa_exptmod()
300 /* b = tmp^dmq1 mod q */ in crypto_rsa_exptmod()
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/node/deps/openssl/openssl/crypto/pem/
H A Dpvkfmt.c446 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in ossl_b2i_RSA_after_header() local
468 if (!read_lebn(&pin, hnbyte, &dmq1)) 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()
494 BN_free(dmq1); 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()
655 || (BN_num_bytes(dmq1) > 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, in write_rsa()
[all...]
/third_party/openssl/crypto/pem/
H A Dpvkfmt.c446 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in ossl_b2i_RSA_after_header() local
468 if (!read_lebn(&pin, hnbyte, &dmq1)) 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()
494 BN_free(dmq1); 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()
655 || (BN_num_bytes(dmq1) > 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, in write_rsa()
[all...]
/third_party/rust/crates/rust-openssl/openssl/src/
H A Drsa.rs217 pub fn dmq1(&self) -> Option<&BigNumRef> { in dmq1() functions
463 /// `dmp1`, `dmq1`, and `iqmp` are the exponents and coefficient for
470 dmq1: BigNum, in set_crt_params()
477 dmq1.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)?
514 dmq1: BigNum, in from_private_components()
519 .set_crt_params(dmp1, dmq1, iqmp)? in from_private_components()
626 dmq1 in fmt()
[all...]
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
H A Drsa.rs28 dmq1: *mut BIGNUM, in RSA_set0_crt_params()
44 dmq1: *mut *const BIGNUM, in RSA_get0_crt_params()

Completed in 17 milliseconds

12