Home
last modified time | relevance | path

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

12

/external/python/cryptography/tests/hazmat/primitives/
Dfixtures_rsa.py29 iqmp=int(
58 iqmp=int(
86 iqmp=int(
115 iqmp=int(
146 iqmp=int(
175 iqmp=int(
206 iqmp=int(
238 iqmp=int(
270 iqmp=int(
302 iqmp=int(
[all …]
Dtest_rsa.py202 iqmp=secret["iqmp"],
381 iqmp=private["iqmp"],
419 iqmp=private["iqmp"],
1424 iqmp=private["iqmp"],
1512 iqmp=private["iqmp"],
1550 iqmp=private["iqmp"],
1829 iqmp=2,
1838 assert private_numbers.iqmp == 2
1868 def test_private_numbers_invalid_types(self, p, q, d, dmp1, dmq1, iqmp, argument
1876 iqmp=iqmp,
[all …]
/external/openssh/openbsd-compat/
Dlibressl-api-compat.c269 const BIGNUM **iqmp) in RSA_get0_crt_params() argument
275 if (iqmp != NULL) in RSA_get0_crt_params()
276 *iqmp = r->iqmp; in RSA_get0_crt_params()
282 RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument
286 (r->iqmp == NULL && iqmp == NULL)) in RSA_set0_crt_params()
297 if (iqmp != NULL) { in RSA_set0_crt_params()
298 BN_free(r->iqmp); in RSA_set0_crt_params()
299 r->iqmp = iqmp; in RSA_set0_crt_params()
Dopenssl-compat.h136 const BIGNUM **iqmp);
140 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/
Drsa.py133 def _check_private_key_components(p, q, private_exponent, dmp1, dmq1, iqmp, argument
150 if iqmp >= modulus:
269 def __init__(self, p, q, d, dmp1, dmq1, iqmp, argument
277 not isinstance(iqmp, six.integer_types)
295 self._iqmp = iqmp
303 iqmp = utils.read_only_property("_iqmp") variable in RSAPrivateNumbers
319 self.iqmp == other.iqmp and
333 self.iqmp,
/external/tpm2-tss/test/helper/
Dtpm_getek.c121 BIGNUM *iqmp = BN_new(); in main() local
129 BN_set_word(iqmp, 0); in main()
145 rsa->iqmp = iqmp; in main()
149 RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); in main()
/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()
184 const BIGNUM *RSA_get0_iqmp(const RSA *rsa) { return rsa->iqmp; } in RSA_get0_iqmp()
218 *out_iqmp = rsa->iqmp; 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
265 (rsa->iqmp == NULL && iqmp == NULL)) { in RSA_set0_crt_params()
277 if (iqmp != NULL) { in RSA_set0_crt_params()
278 BN_free(rsa->iqmp); in RSA_set0_crt_params()
279 rsa->iqmp = iqmp; in RSA_set0_crt_params()
766 has_crt_values != (key->iqmp != NULL)) { in RSA_check_key()
775 !check_mod_inverse(&iqmp_ok, key->q, key->iqmp, key->p, ctx)) { in RSA_check_key()
Drsa_impl.c200 if (rsa->iqmp == NULL) { in freeze_private_key()
201 BIGNUM *iqmp = BN_new(); in freeze_private_key() local
202 if (iqmp == NULL || in freeze_private_key()
203 !bn_mod_inverse_secret_prime(iqmp, rsa->q, rsa->p, ctx, in freeze_private_key()
205 BN_free(iqmp); in freeze_private_key()
208 rsa->iqmp = iqmp; in freeze_private_key()
232 BN_to_montgomery(inv_small_mod_large_mont, rsa->iqmp, in freeze_private_key()
750 rsa->dmq1 != NULL && rsa->iqmp != NULL && in rsa_default_private_transform()
856 assert(rsa->iqmp != NULL); in mod_exp()
1364 replace_bignum(&rsa->iqmp, &tmp->iqmp); in RSA_generate_key_ex_maybe_fips()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c146 BN_free(rsa->iqmp); in RSA_free()
184 const BIGNUM *RSA_get0_iqmp(const RSA *rsa) { return rsa->iqmp; } in RSA_get0_iqmp()
218 *out_iqmp = rsa->iqmp; 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
265 (rsa->iqmp == NULL && iqmp == NULL)) { in RSA_set0_crt_params()
277 if (iqmp != NULL) { in RSA_set0_crt_params()
278 BN_free(rsa->iqmp); in RSA_set0_crt_params()
279 rsa->iqmp = iqmp; in RSA_set0_crt_params()
746 has_crt_values != (key->iqmp != NULL)) { in RSA_check_key()
755 !check_mod_inverse(&iqmp_ok, key->q, key->iqmp, key->p, ctx)) { in RSA_check_key()
Drsa_impl.c195 if (rsa->iqmp == NULL) { in freeze_private_key()
196 BIGNUM *iqmp = BN_new(); in freeze_private_key() local
197 if (iqmp == NULL || in freeze_private_key()
198 !bn_mod_inverse_secret_prime(iqmp, rsa->q, rsa->p, ctx, in freeze_private_key()
200 BN_free(iqmp); in freeze_private_key()
203 rsa->iqmp = iqmp; in freeze_private_key()
227 BN_to_montgomery(inv_small_mod_large_mont, rsa->iqmp, in freeze_private_key()
755 rsa->dmq1 != NULL && rsa->iqmp != NULL && in rsa_default_private_transform()
861 assert(rsa->iqmp != NULL); in mod_exp()
1308 replace_bignum(&rsa->iqmp, &tmp->iqmp); in RSA_generate_key_ex()
/external/rust/crates/quiche/deps/boringssl/src/crypto/rsa_extra/
Drsa_test.cc863 ASSERT_TRUE(BN_hex2bn(&rsa->iqmp, kIQMP)); in TEST()
883 ASSERT_TRUE(BN_add_word(rsa->iqmp, 1)); in TEST()
886 ASSERT_TRUE(BN_sub_word(rsa->iqmp, 1)); in TEST()
899 ASSERT_TRUE(BN_add(rsa->iqmp, rsa->iqmp, rsa->p)); in TEST()
902 ASSERT_TRUE(BN_sub(rsa->iqmp, rsa->iqmp, rsa->p)); in TEST()
931 EXPECT_FALSE(rsa->iqmp); in TEST()
1082 rsa->iqmp = BN_dup(rsa_template->iqmp); in TEST()
1083 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/crypto/rsa_extra/
Drsa_test.cc865 ASSERT_TRUE(BN_hex2bn(&rsa->iqmp, kIQMP)); in TEST()
885 ASSERT_TRUE(BN_add_word(rsa->iqmp, 1)); in TEST()
888 ASSERT_TRUE(BN_sub_word(rsa->iqmp, 1)); in TEST()
901 ASSERT_TRUE(BN_add(rsa->iqmp, rsa->iqmp, rsa->p)); in TEST()
904 ASSERT_TRUE(BN_sub(rsa->iqmp, rsa->iqmp, rsa->p)); in TEST()
933 EXPECT_FALSE(rsa->iqmp); in TEST()
1084 rsa->iqmp = BN_dup(rsa_template->iqmp); in TEST()
1085 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/python/cryptography/docs/development/custom-vectors/rsa-oaep-sha2/
Dgenerate_rsa_oaep_sha2.py55 output.append(format(pn.iqmp, "x"))
63 iqmp=private["iqmp"],
/external/rust/crates/ring/src/rsa/
Dconvert_nist_rsa_test_vectors.py90 iqmp = rsa.rsa_crt_iqmp(p, q)
95 priv = rsa.RSAPrivateNumbers(p, q, d, dmp1, dmq1, iqmp, pub)
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Drsa.py378 iqmp = self._backend._ffi.new("BIGNUM **")
387 self._rsa_cdata, dmp1, dmq1, iqmp
391 self._backend.openssl_assert(iqmp[0] != self._backend._ffi.NULL)
398 iqmp=self._backend._bn_to_int(iqmp[0]),
/external/tpm2-tss/src/tss2-fapi/
Dfapi_crypto.c388 BIGNUM *iqmp = 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()
401 BN_set_word(iqmp, 0); in ossl_rsa_pub_from_tpm()
420 rsa->iqmp = iqmp; in ossl_rsa_pub_from_tpm()
424 RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp); in ossl_rsa_pub_from_tpm()
443 OSSL_FREE(iqmp, BN); in ossl_rsa_pub_from_tpm()
/external/openssh/
Dssh-rsa.c109 ssh_rsa_complete_crt_parameters(struct sshkey *key, const BIGNUM *iqmp) in ssh_rsa_complete_crt_parameters() argument
131 (rsa_iqmp = BN_dup(iqmp)) == NULL) { in ssh_rsa_complete_crt_parameters()
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Drsa.h181 BIGNUM *iqmp);
708 BIGNUM *iqmp; member
/external/boringssl/src/include/openssl/
Drsa.h181 BIGNUM *iqmp);
708 BIGNUM *iqmp; member
/external/rust/crates/quiche/deps/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()

12