/external/python/cryptography/tests/hazmat/primitives/ |
D | fixtures_rsa.py | 28 dmq1=int( 59 dmq1=int( 92 dmq1=int( 132 dmq1=int( 175 dmq1=int( 218 dmq1=int( 262 dmq1=int( 307 dmq1=int( 352 dmq1=int( 397 dmq1=int( [all …]
|
D | test_rsa.py | 240 dmq1=secret["dmq1"], 417 dmq1=private["dmq1"], 457 dmq1=private["dmq1"], 1518 dmq1=private["dmq1"], 1599 dmq1=private["dmq1"], 1635 dmq1=private["dmq1"], 1935 dmq1=1, 1944 assert private_numbers.dmq1 == 1 1979 self, p, q, d, dmp1, dmq1, iqmp, public_numbers argument 1987 dmq1=dmq1, [all …]
|
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/ |
D | rsa.py | 143 p, q, private_exponent, dmp1, dmq1, iqmp, public_exponent, modulus argument 157 if dmq1 >= modulus: 175 if dmq1 & 1 == 0: 279 def __init__(self, p, q, d, dmp1, dmq1, iqmp, public_numbers): argument 285 or not isinstance(dmq1, six.integer_types) 303 self._dmq1 = dmq1 311 dmq1 = utils.read_only_property("_dmq1") variable in RSAPrivateNumbers 328 and self.dmq1 == other.dmq1 343 self.dmq1,
|
/external/tpm2-tss/test/helper/ |
D | tpm_getek.c | 120 BIGNUM *dmq1 = BN_new(); in main() local 128 BN_set_word(dmq1, 0); in main() 144 rsa->dmq1 = dmq1; in main() 149 RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); in main()
|
/external/rust/crates/openssl/src/ |
D | rsa.rs | 217 pub fn dmq1(&self) -> Option<&BigNumRef> { in dmq1() function 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() 514 dmq1: BigNum, in from_private_components() 519 .set_crt_params(dmp1, dmq1, iqmp)? in from_private_components() 626 dmq1: *mut *const ffi::BIGNUM, 632 if !dmq1.is_null() { 633 *dmq1 = (*r).dmq1; 668 dmq1: *mut ffi::BIGNUM, [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/ |
D | rsa.c | 145 BN_free(rsa->dmq1); in RSA_free() 182 const BIGNUM *RSA_get0_dmq1(const RSA *rsa) { return rsa->dmq1; } in RSA_get0_dmq1() 215 *out_dmq1 = rsa->dmq1; in RSA_get0_crt_params() 262 int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) { in RSA_set0_crt_params() argument 264 (rsa->dmq1 == NULL && dmq1 == NULL) || in RSA_set0_crt_params() 273 if (dmq1 != NULL) { in RSA_set0_crt_params() 274 BN_free(rsa->dmq1); in RSA_set0_crt_params() 275 rsa->dmq1 = dmq1; in RSA_set0_crt_params() 723 BIGNUM tmp, de, pm1, qm1, dmp1, dmq1; in RSA_check_key() local 730 BN_init(&dmq1); in RSA_check_key() [all …]
|
D | rsa_impl.c | 201 if (rsa->dmp1 != NULL && rsa->dmq1 != NULL) { in freeze_private_key() 218 !ensure_fixed_copy(&rsa->dmq1_fixed, rsa->dmq1, q_fixed->width)) { in freeze_private_key() 753 rsa->dmq1 != NULL && rsa->iqmp != NULL && in rsa_default_private_transform() 858 assert(rsa->dmq1 != NULL); in mod_exp() 878 const BIGNUM *dmp1 = rsa->dmp1_fixed, *dmq1 = rsa->dmq1_fixed; in mod_exp() local 884 dmq1 = rsa->dmp1_fixed; in mod_exp() 900 !BN_mod_exp_mont_consttime(m1, r1, dmq1, q, ctx, mont_q) || in mod_exp() 1195 !ensure_bignum(&rsa->dmq1)) { in rsa_generate_key_impl() 1272 !bn_div_consttime(NULL, rsa->dmq1, rsa->d, qm1, prime_bits, ctx)) { in rsa_generate_key_impl() 1368 replace_bignum(&rsa->dmq1, &tmp->dmq1); in RSA_generate_key_ex_maybe_fips()
|
/external/boringssl/src/crypto/fipsmodule/rsa/ |
D | rsa.c | 145 BN_free(rsa->dmq1); in RSA_free() 182 const BIGNUM *RSA_get0_dmq1(const RSA *rsa) { return rsa->dmq1; } in RSA_get0_dmq1() 221 *out_dmq1 = rsa->dmq1; in RSA_get0_crt_params() 268 int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) { in RSA_set0_crt_params() argument 270 (rsa->dmq1 == NULL && dmq1 == NULL) || in RSA_set0_crt_params() 279 if (dmq1 != NULL) { in RSA_set0_crt_params() 280 BN_free(rsa->dmq1); in RSA_set0_crt_params() 281 rsa->dmq1 = dmq1; in RSA_set0_crt_params() 706 BIGNUM tmp, de, pm1, qm1, dmp1, dmq1; in RSA_check_key() local 713 BN_init(&dmq1); in RSA_check_key() [all …]
|
D | rsa_impl.c | 208 if (rsa->dmp1 != NULL && rsa->dmq1 != NULL) { in freeze_private_key() 225 !ensure_fixed_copy(&rsa->dmq1_fixed, rsa->dmq1, q_fixed->width)) { in freeze_private_key() 613 rsa->dmq1 != NULL && rsa->iqmp != NULL && in rsa_default_private_transform() 719 assert(rsa->dmq1 != NULL); in mod_exp() 739 const BIGNUM *dmp1 = rsa->dmp1_fixed, *dmq1 = rsa->dmq1_fixed; in mod_exp() local 745 dmq1 = rsa->dmp1_fixed; in mod_exp() 761 !BN_mod_exp_mont_consttime(m1, r1, dmq1, q, ctx, mont_q) || in mod_exp() 1063 !ensure_bignum(&rsa->dmq1)) { in rsa_generate_key_impl() 1140 !bn_div_consttime(NULL, rsa->dmq1, rsa->d, qm1, prime_bits, ctx)) { in rsa_generate_key_impl() 1238 replace_bignum(&rsa->dmq1, &tmp->dmq1); in RSA_generate_key_ex_maybe_fips()
|
/external/cronet/third_party/boringssl/src/crypto/fipsmodule/rsa/ |
D | rsa.c | 145 BN_free(rsa->dmq1); in RSA_free() 182 const BIGNUM *RSA_get0_dmq1(const RSA *rsa) { return rsa->dmq1; } in RSA_get0_dmq1() 221 *out_dmq1 = rsa->dmq1; in RSA_get0_crt_params() 268 int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) { in RSA_set0_crt_params() argument 270 (rsa->dmq1 == NULL && dmq1 == NULL) || in RSA_set0_crt_params() 279 if (dmq1 != NULL) { in RSA_set0_crt_params() 280 BN_free(rsa->dmq1); in RSA_set0_crt_params() 281 rsa->dmq1 = dmq1; in RSA_set0_crt_params() 706 BIGNUM tmp, de, pm1, qm1, dmp1, dmq1; in RSA_check_key() local 713 BN_init(&dmq1); in RSA_check_key() [all …]
|
D | rsa_impl.c | 208 if (rsa->dmp1 != NULL && rsa->dmq1 != NULL) { in freeze_private_key() 225 !ensure_fixed_copy(&rsa->dmq1_fixed, rsa->dmq1, q_fixed->width)) { in freeze_private_key() 613 rsa->dmq1 != NULL && rsa->iqmp != NULL && in rsa_default_private_transform() 719 assert(rsa->dmq1 != NULL); in mod_exp() 739 const BIGNUM *dmp1 = rsa->dmp1_fixed, *dmq1 = rsa->dmq1_fixed; in mod_exp() local 745 dmq1 = rsa->dmp1_fixed; in mod_exp() 761 !BN_mod_exp_mont_consttime(m1, r1, dmq1, q, ctx, mont_q) || in mod_exp() 1063 !ensure_bignum(&rsa->dmq1)) { in rsa_generate_key_impl() 1140 !bn_div_consttime(NULL, rsa->dmq1, rsa->d, qm1, prime_bits, ctx)) { in rsa_generate_key_impl() 1238 replace_bignum(&rsa->dmq1, &tmp->dmq1); in RSA_generate_key_ex_maybe_fips()
|
/external/ipsec-tools/src/racoon/ |
D | prsa_par.y | 190 || !rsa_cur->dmq1 || !rsa_cur->iqmp) { 194 if (rsa_cur->dmq1) BN_clear_free(rsa_cur->dmq1); 200 rsa_cur->dmq1 = NULL; 303 …{ if (!rsa_cur->dmq1) rsa_cur->dmq1 = $3; else { prsaerror ("Exponent2 already defined\n"); YYABOR…
|
D | plainrsa-gen.c | 146 fprintf(fp, "\tExponent2: 0x%s\n", lowercase(BN_bn2hex(key->dmq1))); in gen_rsa_key()
|
/external/wpa_supplicant_8/src/tls/ |
D | rsa.c | 26 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()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/rsa_extra/ |
D | rsa_test.cc | 859 ASSERT_TRUE(BN_hex2bn(&rsa->dmq1, kDMQ1)); in TEST() 862 BN_free(rsa->dmq1); in TEST() 863 rsa->dmq1 = nullptr; in TEST() 871 ASSERT_TRUE(BN_hex2bn(&rsa->dmq1, kDMQ1)); in TEST() 880 ASSERT_TRUE(BN_add_word(rsa->dmq1, 1)); in TEST() 883 ASSERT_TRUE(BN_sub_word(rsa->dmq1, 1)); in TEST() 896 ASSERT_TRUE(BN_add(rsa->dmq1, rsa->dmq1, rsa->q)); in TEST() 899 ASSERT_TRUE(BN_sub(rsa->dmq1, rsa->dmq1, rsa->q)); in TEST() 932 EXPECT_FALSE(rsa->dmq1); in TEST() 1082 rsa->dmq1 = BN_dup(rsa_template->dmq1); in TEST() [all …]
|
D | rsa_asn1.c | 181 !parse_integer(&child, &ret->dmq1) || in RSA_parse_private_key() 225 !marshal_integer(&child, rsa->dmq1) || in RSA_marshal_private_key()
|
/external/cronet/third_party/boringssl/src/crypto/rsa_extra/ |
D | rsa_test.cc | 860 ASSERT_TRUE(BN_hex2bn(&rsa->dmq1, kDMQ1)); in TEST() 863 BN_free(rsa->dmq1); in TEST() 864 rsa->dmq1 = nullptr; in TEST() 872 ASSERT_TRUE(BN_hex2bn(&rsa->dmq1, kDMQ1)); in TEST() 881 ASSERT_TRUE(BN_add_word(rsa->dmq1, 1)); in TEST() 884 ASSERT_TRUE(BN_sub_word(rsa->dmq1, 1)); in TEST() 897 ASSERT_TRUE(BN_add(rsa->dmq1, rsa->dmq1, rsa->q)); in TEST() 900 ASSERT_TRUE(BN_sub(rsa->dmq1, rsa->dmq1, rsa->q)); in TEST() 933 EXPECT_FALSE(rsa->dmq1); in TEST() 1083 rsa->dmq1 = BN_dup(rsa_template->dmq1); in TEST() [all …]
|
D | rsa_asn1.c | 181 !parse_integer(&child, &ret->dmq1) || in RSA_parse_private_key() 225 !marshal_integer(&child, rsa->dmq1) || in RSA_marshal_private_key()
|
/external/boringssl/src/crypto/rsa_extra/ |
D | rsa_test.cc | 860 ASSERT_TRUE(BN_hex2bn(&rsa->dmq1, kDMQ1)); in TEST() 863 BN_free(rsa->dmq1); in TEST() 864 rsa->dmq1 = nullptr; in TEST() 872 ASSERT_TRUE(BN_hex2bn(&rsa->dmq1, kDMQ1)); in TEST() 881 ASSERT_TRUE(BN_add_word(rsa->dmq1, 1)); in TEST() 884 ASSERT_TRUE(BN_sub_word(rsa->dmq1, 1)); in TEST() 897 ASSERT_TRUE(BN_add(rsa->dmq1, rsa->dmq1, rsa->q)); in TEST() 900 ASSERT_TRUE(BN_sub(rsa->dmq1, rsa->dmq1, rsa->q)); in TEST() 933 EXPECT_FALSE(rsa->dmq1); in TEST() 1083 rsa->dmq1 = BN_dup(rsa_template->dmq1); in TEST() [all …]
|
D | rsa_asn1.c | 181 !parse_integer(&child, &ret->dmq1) || in RSA_parse_private_key() 225 !marshal_integer(&child, rsa->dmq1) || in RSA_marshal_private_key()
|
/external/python/cryptography/docs/development/custom-vectors/rsa-oaep-sha2/ |
D | generate_rsa_oaep_sha2.py | 53 output.append(format(pn.dmq1, "x")) 62 dmq1=private["dmq1"],
|
/external/rust/crates/ring/src/rsa/ |
D | convert_nist_rsa_test_vectors.py | 89 dmq1 = rsa.rsa_crt_dmq1(d, q) 95 priv = rsa.RSAPrivateNumbers(p, q, d, dmp1, dmq1, iqmp, pub)
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | rsa.py | 410 dmq1 = self._backend._ffi.new("BIGNUM **") 420 self._rsa_cdata, dmp1, dmq1, iqmp 423 self._backend.openssl_assert(dmq1[0] != self._backend._ffi.NULL) 430 dmq1=self._backend._bn_to_int(dmq1[0]),
|
/external/tpm2-tss/src/tss2-fapi/ |
D | fapi_crypto.c | 387 BIGNUM *dmq1 = BN_new(); in ossl_rsa_pub_from_tpm() local 392 if (!n || !e || !d || !p || !q || !dmp1 || !dmq1 || !iqmp || !rsa) { in ossl_rsa_pub_from_tpm() 400 BN_set_word(dmq1, 0); in ossl_rsa_pub_from_tpm() 419 rsa->dmq1 = dmq1; in ossl_rsa_pub_from_tpm() 424 RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); in ossl_rsa_pub_from_tpm() 442 OSSL_FREE(dmq1, BN); in ossl_rsa_pub_from_tpm()
|
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/ |
D | rsa.h | 180 OPENSSL_EXPORT int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1, 743 BIGNUM *dmq1; member
|