Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c145 BN_free(rsa->dmq1); in RSA_free()
199 *out_dmq1 = rsa->dmq1; in RSA_get0_crt_params()
246 int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) { in RSA_set0_crt_params() argument
248 (rsa->dmq1 == NULL && dmq1 == NULL) || in RSA_set0_crt_params()
257 if (dmq1 != NULL) { in RSA_set0_crt_params()
258 BN_free(rsa->dmq1); in RSA_set0_crt_params()
259 rsa->dmq1 = dmq1; in RSA_set0_crt_params()
659 BIGNUM n, pm1, qm1, lcm, dmp1, dmq1, iqmp_times_q; in RSA_check_key() local
695 BN_init(&dmq1); in RSA_check_key()
728 if (has_crt_values != (key->dmq1 != NULL) || in RSA_check_key()
[all …]
Drsa_impl.c192 if (rsa->dmp1 != NULL && rsa->dmq1 != NULL) { in freeze_private_key()
209 !ensure_fixed_copy(&rsa->dmq1_fixed, rsa->dmq1, q_fixed->width)) { in freeze_private_key()
732 rsa->dmq1 != NULL && rsa->iqmp != NULL && in rsa_default_private_transform()
837 assert(rsa->dmq1 != NULL); in mod_exp()
857 const BIGNUM *dmp1 = rsa->dmp1_fixed, *dmq1 = rsa->dmq1_fixed; in mod_exp() local
863 dmq1 = rsa->dmp1_fixed; in mod_exp()
879 !BN_mod_exp_mont_consttime(m1, r1, dmq1, q, ctx, mont_q) || in mod_exp()
1137 !ensure_bignum(&rsa->dmq1)) { in rsa_generate_key_impl()
1212 !bn_div_consttime(NULL, rsa->dmq1, rsa->d, qm1, ctx)) { in rsa_generate_key_impl()
1284 replace_bignum(&rsa->dmq1, &tmp->dmq1); in RSA_generate_key_ex()
/external/ipsec-tools/src/racoon/
Dprsa_par.y190 || !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…
Dplainrsa-gen.c146 fprintf(fp, "\tExponent2: 0x%s\n", lowercase(BN_bn2hex(key->dmq1))); in gen_rsa_key()
/external/wpa_supplicant_8/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()
/external/boringssl/src/crypto/rsa_extra/
Drsa_test.cc856 ASSERT_TRUE(BN_hex2bn(&rsa->dmq1, kDMQ1)); in TEST()
859 BN_free(rsa->dmq1); in TEST()
860 rsa->dmq1 = nullptr; in TEST()
868 ASSERT_TRUE(BN_hex2bn(&rsa->dmq1, kDMQ1)); in TEST()
877 ASSERT_TRUE(BN_add_word(rsa->dmq1, 1)); in TEST()
880 ASSERT_TRUE(BN_sub_word(rsa->dmq1, 1)); in TEST()
893 ASSERT_TRUE(BN_add(rsa->dmq1, rsa->dmq1, rsa->q)); in TEST()
896 ASSERT_TRUE(BN_sub(rsa->dmq1, rsa->dmq1, rsa->q)); in TEST()
929 EXPECT_FALSE(rsa->dmq1); in TEST()
1079 rsa->dmq1 = BN_dup(rsa_template->dmq1); in TEST()
[all …]
Drsa_asn1.c182 !parse_integer(&child, &ret->dmq1) || in RSA_parse_private_key()
226 !marshal_integer(&child, rsa->dmq1) || in RSA_marshal_private_key()
/external/boringssl/src/include/openssl/
Drsa.h150 OPENSSL_EXPORT int RSA_set0_crt_params(RSA *rsa, BIGNUM *dmp1, BIGNUM *dmq1,
677 BIGNUM *dmq1; member
/external/openssh/
Drsa.c176 (BN_mod(rsa->dmq1, rsa->d, aux, ctx) == 0) || in rsa_generate_additional_parameters()
Dsshkey.c544 bn_maybe_alloc_failed(k->rsa->dmq1) || in sshkey_add_private()
/external/boringssl/src/crypto/evp/
Dprint.c151 update_buflen(rsa->dmq1, &buf_len); in do_rsa_print()
192 !bn_print(out, "exponent2:", rsa->dmq1, m, off) || in do_rsa_print()
/external/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c187 !set_bignum(&rsa->dmq1, kDModQMinusOne, sizeof(kDModQMinusOne)) || in self_test_rsa_key()
/external/v8/benchmarks/
Dcrypto.js1506 this.dmq1 = null;
1586 this.dmq1 = parseBigInt(DQ,16);
1620 this.dmq1 = this.d.mod(q1);
1634 var xq = x.mod(this.q).modPow(this.dmq1, this.q);
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc893 jbyteArray dmp1, jbyteArray dmq1, jbyteArray iqmp) { in NativeCrypto_EVP_PKEY_new_RSA() argument
896 p, q, dmp1, dmq1, iqmp); in NativeCrypto_EVP_PKEY_new_RSA()
935 if (dmq1 != nullptr && !arrayToBignum(env, dmq1, &rsa->dmq1)) { in NativeCrypto_EVP_PKEY_new_RSA()
980 e, d, p, q, dmp1, dmq1, iqmp, pkey.get()); in NativeCrypto_EVP_PKEY_new_RSA()
1615 if (rsa->dmq1 != nullptr) { in NativeCrypto_get_RSA_private_params()
1616 jbyteArray dmq1 = bignumToArray(env, rsa->dmq1, "dmq1"); in NativeCrypto_get_RSA_private_params() local
1620 env->SetObjectArrayElement(joa, 6, dmq1); in NativeCrypto_get_RSA_private_params()
/external/scapy/test/
Dcert.uts117 assert(x_privNum.dmq1 == 58077388505079936284685944662039782610415160654764308528562806086690474868…
/external/scapy/scapy/layers/tls/
Dcert.py468 dmp1=exponent1, dmq1=exponent2,
/external/conscrypt/common/src/main/java/org/conscrypt/
DNativeCrypto.java88 byte[] dmp1, byte[] dmq1, byte[] iqmp); in EVP_PKEY_new_RSA() argument
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DNativeCrypto.java91 byte[] dmp1, byte[] dmq1, byte[] iqmp); in EVP_PKEY_new_RSA() argument