Home
last modified time | relevance | path

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

/openssl/crypto/rsa/
H A Drsa_sp800_56b_gen.c312 BN_free(rsa->iqmp); in ossl_rsa_sp800_56b_derive_params_from_pq()
313 rsa->iqmp = BN_secure_new(); in ossl_rsa_sp800_56b_derive_params_from_pq()
314 if (rsa->iqmp == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
316 BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq()
317 if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
330 BN_free(rsa->iqmp); in ossl_rsa_sp800_56b_derive_params_from_pq()
331 rsa->iqmp = NULL; in ossl_rsa_sp800_56b_derive_params_from_pq()
H A Drsa_lib.c174 BN_clear_free(r->iqmp); in RSA_free()
453 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument
460 || (r->iqmp == NULL && iqmp == NULL)) in RSA_set0_crt_params()
473 if (iqmp != NULL) { in RSA_set0_crt_params()
474 BN_clear_free(r->iqmp); in RSA_set0_crt_params()
475 r->iqmp = iqmp; in RSA_set0_crt_params()
476 BN_set_flags(r->iqmp, BN_FLG_CONSTTIME); in RSA_set0_crt_params()
607 const BIGNUM **iqmp) in RSA_get0_crt_params() argument
613 if (iqmp != NULL) in RSA_get0_crt_params()
614 *iqmp = r->iqmp; in RSA_get0_crt_params()
[all …]
H A Drsa_gen.c92 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in DEFINE_STACK_OF() local
221 iqmp = BN_new(); in DEFINE_STACK_OF()
222 if (iqmp == NULL) in DEFINE_STACK_OF()
225 if (BN_mod_inverse(iqmp, sk_BIGNUM_value(factors, 1), in DEFINE_STACK_OF()
228 if (!sk_BIGNUM_insert(coeffs, iqmp, sk_BIGNUM_num(coeffs))) in DEFINE_STACK_OF()
230 iqmp = NULL; in DEFINE_STACK_OF()
254 BN_clear_free(iqmp); in DEFINE_STACK_OF()
572 rsa->iqmp = sk_BIGNUM_delete(coeffs, 0); in rsa_multiprime_keygen()
639 BN_clear_free(rsa->iqmp); in rsa_keygen()
645 rsa->iqmp = NULL; in rsa_keygen()
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()
62 && (BN_cmp(rsa->iqmp, BN_value_one()) > 0) in ossl_rsa_check_crt_components()
63 && (BN_cmp(rsa->iqmp, rsa->p) < 0) in ossl_rsa_check_crt_components()
71 && BN_mod_mul(r, rsa->iqmp, rsa->q, rsa->p, ctx) in ossl_rsa_check_crt_components()
H A Drsa_x931g.c136 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
137 if (rsa->iqmp == NULL) in RSA_X931_derive_ex()
H A Drsa_chk.c160 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime()
194 if (BN_cmp(i, key->iqmp) != 0) { in rsa_validate_keypair_multiprime()
H A Drsa_asn1.c66 ASN1_SIMPLE(RSA, iqmp, CBIGNUM),
H A Drsa_ossl.c382 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_encrypt()
630 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_decrypt()
915 || !bn_mul_mont_fixed_top(r1, r1, rsa->iqmp, rsa->_method_mod_p, in rsa_ossl_mod_exp()
1033 if (!BN_mul(r1, r0, rsa->iqmp, ctx)) in rsa_ossl_mod_exp()
1205 if (s390x_crt(r0, i, rsa->p, rsa->q, rsa->dmp1, rsa->dmq1, rsa->iqmp) == 1) in rsa_ossl_s390x_mod_exp()
H A Drsa_local.h69 BIGNUM *iqmp; member
H A Drsa_backend.c508 if (!rsa_bn_dup_check(&dupkey->iqmp, rsa->iqmp)) in ossl_rsa_dup()
H A Drsa_ameth.c346 if (!ASN1_bn_print(bp, "coefficient:", x->iqmp, NULL, off)) in pkey_rsa_print()
/openssl/test/
H A Drsa_mp_test.c107 static const unsigned char iqmp[] = variable
164 BN_bin2bn(iqmp, sizeof(iqmp) - 1, in key2048p3_v1()
227 if (!TEST_ptr(num = BN_bin2bn(iqmp, sizeof(iqmp) - 1, NULL)) in key2048p3_v2()
H A Drsa_test.c43 BN_bin2bn(iqmp, sizeof(iqmp)-1, NULL)); \
84 static unsigned char iqmp[] = in key1() local
129 static unsigned char iqmp[] = in key2() local
194 static unsigned char iqmp[] = in key3() local
H A Drsa_sp800_56b_test.c308 && TEST_BN_eq_word(key->iqmp, QINV) in test_check_crt_components()
323 && TEST_true(BN_set_word(key->iqmp, 1)) in test_check_crt_components()
325 && TEST_true(BN_set_word(key->iqmp, P)) in test_check_crt_components()
327 && TEST_true(BN_set_word(key->iqmp, QINV)) in test_check_crt_components()
337 && TEST_true(BN_set_word(key->iqmp, QINV+1)) in test_check_crt_components()
339 && TEST_true(BN_set_word(key->iqmp, QINV)) in test_check_crt_components()
H A Devp_pkey_provided_test.c546 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in test_fromdata_rsa_derive_from_pq_sp800() local
601 || !TEST_ptr(iqmp = BN_bin2bn(iqmp_data, sizeof(iqmp_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
619 cdata[2].comparebn = iqmp; in test_fromdata_rsa_derive_from_pq_sp800()
633 BN_free(iqmp); in test_fromdata_rsa_derive_from_pq_sp800()
643 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in test_fromdata_rsa_derive_from_pq_multiprime() local
786 || !TEST_ptr(iqmp = BN_bin2bn(iqmp_data, sizeof(iqmp_data), NULL)) in test_fromdata_rsa_derive_from_pq_multiprime()
806 cdata[2].comparebn = iqmp; in test_fromdata_rsa_derive_from_pq_multiprime()
837 BN_free(iqmp); in test_fromdata_rsa_derive_from_pq_multiprime()
/openssl/crypto/bn/
H A Dbn_s390x.c80 const BIGNUM *dmp, const BIGNUM *dmq, const BIGNUM *iqmp) in s390x_crt() argument
122 || BN_bn2binpad(iqmp, crt.u_mult_inv, size + 8) == -1) in s390x_crt()
156 const BIGNUM *dmp, const BIGNUM *dmq, const BIGNUM *iqmp) in s390x_crt() argument
/openssl/crypto/pem/
H A Dpvkfmt.c453 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in ossl_b2i_RSA_after_header() local
477 if (!read_lebn(&pin, hnbyte, &iqmp)) in ossl_b2i_RSA_after_header()
484 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in ossl_b2i_RSA_after_header()
486 dmp1 = dmq1 = iqmp = NULL; in ossl_b2i_RSA_after_header()
508 BN_free(iqmp); in ossl_b2i_RSA_after_header()
651 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; in check_bitlen_rsa() local
662 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in check_bitlen_rsa()
663 if ((BN_num_bytes(iqmp) > hnbyte) in check_bitlen_rsa()
679 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; in write_rsa() local
689 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in write_rsa()
[all …]
/openssl/doc/man3/
H A DRSA_get0_key.pod25 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
31 const BIGNUM **iqmp);
60 B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1> and B<iqmp>. B<n> is
63 B<dmq1> and B<iqmp> are the factors for the second representation of a
65 the first and second factor of B<n> and B<dmp1>, B<dmq1> and B<iqmp>
92 B<dmq1> and B<iqmp> parameters can be obtained and set with
105 Any of the values B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1>, and B<iqmp> can also be
H A DOSSL_PARAM_BLD.pod156 BIGNUM *iqmp; /* first CRT coefficient */
174 || !OSSL_PARAM_BLD_push_BN(bld, "rsa-coefficient1", iqmp)
H A DRSA_check_key.pod32 and that B<dmp1>, B<dmq1> and B<iqmp> are set correctly or are B<NULL>.
H A DRSA_set_method.pod124 * operations, even if p,q,dmp1,dmq1,iqmp
/openssl/include/crypto/
H A Dbn.h135 const BIGNUM *dmp, const BIGNUM *dmq, const BIGNUM *iqmp);
/openssl/include/openssl/
H A Drsa.h222 BIGNUM *iqmp);
239 const BIGNUM **iqmp);
/openssl/crypto/err/
H A Dopenssl.txt1264 RSA_R_IQMP_NOT_INVERSE_OF_Q:126:iqmp not inverse of q
/openssl/
H A DCHANGES.md19043 method only got called if p,q,dmp1,dmq1,iqmp components were present,

Completed in 90 milliseconds