Home
last modified time | relevance | path

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

/openssl/test/
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_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_sp800_56b_test.c307 && TEST_BN_eq_word(key->iqmp, QINV) in test_check_crt_components()
322 && TEST_true(BN_set_word(key->iqmp, 1)) in test_check_crt_components()
324 && TEST_true(BN_set_word(key->iqmp, P)) in test_check_crt_components()
326 && TEST_true(BN_set_word(key->iqmp, QINV)) in test_check_crt_components()
336 && TEST_true(BN_set_word(key->iqmp, QINV+1)) in test_check_crt_components()
338 && TEST_true(BN_set_word(key->iqmp, QINV)) in test_check_crt_components()
/openssl/crypto/rsa/
H A Drsa_sp800_56b_gen.c303 BN_free(rsa->iqmp); in ossl_rsa_sp800_56b_derive_params_from_pq()
304 rsa->iqmp = BN_secure_new(); in ossl_rsa_sp800_56b_derive_params_from_pq()
305 if (rsa->iqmp == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
307 BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq()
308 if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
321 BN_free(rsa->iqmp); in ossl_rsa_sp800_56b_derive_params_from_pq()
322 rsa->iqmp = NULL; in ossl_rsa_sp800_56b_derive_params_from_pq()
H A Drsa_lib.c165 BN_clear_free(r->iqmp); in RSA_free()
444 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument
451 || (r->iqmp == NULL && iqmp == NULL)) in RSA_set0_crt_params()
464 if (iqmp != NULL) { in RSA_set0_crt_params()
465 BN_clear_free(r->iqmp); in RSA_set0_crt_params()
466 r->iqmp = iqmp; in RSA_set0_crt_params()
467 BN_set_flags(r->iqmp, BN_FLG_CONSTTIME); in RSA_set0_crt_params()
598 const BIGNUM **iqmp) in RSA_get0_crt_params() argument
604 if (iqmp != NULL) in RSA_get0_crt_params()
605 *iqmp = r->iqmp; in RSA_get0_crt_params()
[all …]
H A Drsa_gen.c145 if (!rsa->iqmp && ((rsa->iqmp = BN_secure_new()) == NULL)) in rsa_multiprime_keygen()
147 BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME); in rsa_multiprime_keygen()
393 if (!BN_mod_inverse(rsa->iqmp, rsa->q, p, ctx)) { in rsa_multiprime_keygen()
459 BN_clear_free(rsa->iqmp); in rsa_keygen()
465 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.c156 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime()
190 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.c321 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_encrypt()
441 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_decrypt()
718 || !bn_mul_mont_fixed_top(r1, r1, rsa->iqmp, rsa->_method_mod_p, in rsa_ossl_mod_exp()
836 if (!BN_mul(r1, r0, rsa->iqmp, ctx)) in rsa_ossl_mod_exp()
H A Drsa_local.h69 BIGNUM *iqmp; member
H A Drsa_backend.c384 if (!rsa_bn_dup_check(&dupkey->iqmp, rsa->iqmp)) in ossl_rsa_dup()
H A Drsa_ameth.c343 if (!ASN1_bn_print(bp, "coefficient:", x->iqmp, NULL, off)) in pkey_rsa_print()
/openssl/crypto/pem/
H A Dpvkfmt.c448 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in ossl_b2i_RSA_after_header() local
472 if (!read_lebn(&pin, hnbyte, &iqmp)) in ossl_b2i_RSA_after_header()
479 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in ossl_b2i_RSA_after_header()
481 dmp1 = dmq1 = iqmp = NULL; in ossl_b2i_RSA_after_header()
497 BN_free(iqmp); in ossl_b2i_RSA_after_header()
641 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; in check_bitlen_rsa() local
652 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in check_bitlen_rsa()
653 if ((BN_num_bytes(iqmp) > hnbyte) in check_bitlen_rsa()
669 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; in write_rsa() local
679 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 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/openssl/
H A Drsa.h214 BIGNUM *iqmp);
231 const BIGNUM **iqmp);
/openssl/crypto/err/
H A Dopenssl.txt1193 RSA_R_IQMP_NOT_INVERSE_OF_Q:126:iqmp not inverse of q
/openssl/
H A DCHANGES.md17495 method only got called if p,q,dmp1,dmq1,iqmp components were present,

Completed in 112 milliseconds