Home
last modified time | relevance | path

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

/external/ipsec-tools/src/racoon/
Dprsa_par.y190 || !rsa_cur->dmq1 || !rsa_cur->iqmp) {
195 if (rsa_cur->iqmp) BN_clear_free(rsa_cur->iqmp);
201 rsa_cur->iqmp = NULL;
305 …{ if (!rsa_cur->iqmp) rsa_cur->iqmp = $3; else { prsaerror ("Coefficient already defined\n"); YYAB…
Dplainrsa-gen.c147 fprintf(fp, "\tCoefficient: 0x%s\n", lowercase(BN_bn2hex(key->iqmp))); in gen_rsa_key()
/external/wpa_supplicant_8/src/tls/
Drsa.c27 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */ member
169 key->iqmp = bignum_init(); in crypto_rsa_import_private_key()
173 key->dmq1 == NULL || key->iqmp == NULL) { in crypto_rsa_import_private_key()
224 pos = crypto_rsa_parse_integer(pos, end, key->iqmp); in crypto_rsa_import_private_key()
315 bignum_mulmod(tmp, key->iqmp, key->p, tmp) < 0) in crypto_rsa_exptmod()
372 bignum_deinit(key->iqmp); in crypto_rsa_free()
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c146 BN_free(rsa->iqmp); in RSA_free()
202 *out_iqmp = rsa->iqmp; 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
249 (rsa->iqmp == NULL && iqmp == NULL)) { in RSA_set0_crt_params()
261 if (iqmp != NULL) { in RSA_set0_crt_params()
262 BN_free(rsa->iqmp); in RSA_set0_crt_params()
263 rsa->iqmp = iqmp; in RSA_set0_crt_params()
729 has_crt_values != (key->iqmp != NULL)) { in RSA_check_key()
740 !check_mod_inverse(&iqmp_ok, key->q, key->iqmp, key->p, in RSA_check_key()
Drsa_impl.c194 if (rsa->iqmp == NULL) { in freeze_private_key()
195 BIGNUM *iqmp = BN_new(); in freeze_private_key() local
196 if (iqmp == NULL || in freeze_private_key()
197 !bn_mod_inverse_secret_prime(iqmp, rsa->q, rsa->p, ctx, in freeze_private_key()
199 BN_free(iqmp); in freeze_private_key()
202 rsa->iqmp = iqmp; in freeze_private_key()
226 BN_to_montgomery(inv_small_mod_large_mont, rsa->iqmp, in freeze_private_key()
732 rsa->dmq1 != NULL && rsa->iqmp != NULL && in rsa_default_private_transform()
838 assert(rsa->iqmp != NULL); in mod_exp()
1285 replace_bignum(&rsa->iqmp, &tmp->iqmp); in RSA_generate_key_ex()
/external/boringssl/src/crypto/rsa_extra/
Drsa_test.cc862 ASSERT_TRUE(BN_hex2bn(&rsa->iqmp, kIQMP)); in TEST()
882 ASSERT_TRUE(BN_add_word(rsa->iqmp, 1)); in TEST()
885 ASSERT_TRUE(BN_sub_word(rsa->iqmp, 1)); in TEST()
898 ASSERT_TRUE(BN_add(rsa->iqmp, rsa->iqmp, rsa->p)); in TEST()
901 ASSERT_TRUE(BN_sub(rsa->iqmp, rsa->iqmp, rsa->p)); in TEST()
930 EXPECT_FALSE(rsa->iqmp); in TEST()
1081 rsa->iqmp = BN_dup(rsa_template->iqmp); in TEST()
1082 ASSERT_TRUE(rsa->iqmp); in TEST()
Drsa_asn1.c183 !parse_integer(&child, &ret->iqmp)) { in RSA_parse_private_key()
227 !marshal_integer(&child, rsa->iqmp) || in RSA_marshal_private_key()
/external/boringssl/src/include/openssl/
Drsa.h151 BIGNUM *iqmp);
678 BIGNUM *iqmp; member
/external/boringssl/src/crypto/evp/
Dprint.c152 update_buflen(rsa->iqmp, &buf_len); in do_rsa_print()
193 !bn_print(out, "coefficient:", rsa->iqmp, m, off)) { in do_rsa_print()
/external/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c188 !set_bignum(&rsa->iqmp, kQInverseModP, sizeof(kQInverseModP))) { in self_test_rsa_key()
/external/openssh/
Dsshkey.c541 bn_maybe_alloc_failed(k->rsa->iqmp) || in sshkey_add_private()
2594 (r = sshbuf_put_bignum2(b, key->rsa->iqmp)) != 0 || in sshkey_private_serialize()
2606 (r = sshbuf_put_bignum2(b, key->rsa->iqmp)) != 0 || in sshkey_private_serialize()
2775 (r = sshbuf_get_bignum2(buf, k->rsa->iqmp)) != 0 || in sshkey_private_deserialize()
2785 (r = sshbuf_get_bignum2(buf, k->rsa->iqmp)) != 0 || in sshkey_private_deserialize()
3451 (r = sshbuf_put_bignum1(buffer, key->rsa->iqmp)) != 0 || in sshkey_private_rsa1_to_blob()
3740 (r = sshbuf_get_bignum1(decrypted, prv->rsa->iqmp)) != 0 || in sshkey_parse_private_rsa1()
Dauthfd.c508 (r = sshbuf_put_bignum1(b, key->iqmp)) != 0 || in ssh_encode_identity_rsa1()
Dssh-agent.c577 (r = sshbuf_get_bignum1(m, k->rsa->iqmp)) != 0 || in agent_decode_rsa1()
Dssh-keygen.c514 buffer_get_bignum_bits(b, key->rsa->iqmp); in do_convert_private_ssh2_from_blob()
/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()
939 if (iqmp != nullptr && !arrayToBignum(env, iqmp, &rsa->iqmp)) { in NativeCrypto_EVP_PKEY_new_RSA()
980 e, d, p, q, dmp1, dmq1, iqmp, pkey.get()); in NativeCrypto_EVP_PKEY_new_RSA()
1623 if (rsa->iqmp != nullptr) { in NativeCrypto_get_RSA_private_params()
1624 jbyteArray iqmp = bignumToArray(env, rsa->iqmp, "iqmp"); in NativeCrypto_get_RSA_private_params() local
1628 env->SetObjectArrayElement(joa, 7, iqmp); in NativeCrypto_get_RSA_private_params()
/external/scapy/scapy/layers/tls/
Dcert.py469 iqmp=coefficient, d=privExp,
/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