Home
last modified time | relevance | path

Searched refs:dmp1 (Results 1 – 23 of 23) sorted by relevance

/openssl/crypto/rsa/
H A Drsa_sp800_56b_gen.c294 if (rsa->dmp1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
295 rsa->dmp1 = BN_secure_new(); in ossl_rsa_sp800_56b_derive_params_from_pq()
296 if (rsa->dmp1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
298 BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq()
299 if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq()
334 BN_free(rsa->dmp1); in ossl_rsa_sp800_56b_derive_params_from_pq()
335 rsa->dmp1 = NULL; in ossl_rsa_sp800_56b_derive_params_from_pq()
H A Drsa_lib.c172 BN_clear_free(r->dmp1); in RSA_free()
453 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument
458 if ((r->dmp1 == NULL && dmp1 == NULL) in RSA_set0_crt_params()
463 if (dmp1 != NULL) { in RSA_set0_crt_params()
464 BN_clear_free(r->dmp1); in RSA_set0_crt_params()
465 r->dmp1 = dmp1; in RSA_set0_crt_params()
466 BN_set_flags(r->dmp1, BN_FLG_CONSTTIME); in RSA_set0_crt_params()
606 const BIGNUM **dmp1, const BIGNUM **dmq1, in RSA_get0_crt_params() argument
609 if (dmp1 != NULL) in RSA_get0_crt_params()
610 *dmp1 = r->dmp1; in RSA_get0_crt_params()
[all …]
H A Drsa_gen.c92 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in DEFINE_STACK_OF() local
188 dmp1 = BN_secure_new(); in DEFINE_STACK_OF()
189 if (dmp1 == NULL) in DEFINE_STACK_OF()
195 if (!BN_mod(dmp1, rsa->d, r1, ctx)) in DEFINE_STACK_OF()
197 if (!sk_BIGNUM_insert(exps, dmp1, sk_BIGNUM_num(exps))) in DEFINE_STACK_OF()
199 dmp1 = NULL; in DEFINE_STACK_OF()
252 BN_clear_free(dmp1); in DEFINE_STACK_OF()
570 rsa->dmp1 = sk_BIGNUM_delete(exps, 0); in rsa_multiprime_keygen()
637 BN_clear_free(rsa->dmp1); in rsa_keygen()
643 rsa->dmp1 = 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()
56 && (BN_cmp(rsa->dmp1, BN_value_one()) > 0) in ossl_rsa_check_crt_components()
57 && (BN_cmp(rsa->dmp1, p1) < 0) in ossl_rsa_check_crt_components()
65 && BN_mod_mul(r, rsa->dmp1, rsa->e, p1, ctx) in ossl_rsa_check_crt_components()
H A Drsa_x931g.c122 rsa->dmp1 = BN_new(); in RSA_X931_derive_ex()
123 if (rsa->dmp1 == NULL) in RSA_X931_derive_ex()
125 if (!BN_mod(rsa->dmp1, rsa->d, r1, ctx)) in RSA_X931_derive_ex()
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()
901 r1, r1, rsa->dmp1, rsa->p, in rsa_ossl_mod_exp()
966 BIGNUM *dmp1 = BN_new(); in rsa_ossl_mod_exp() local
967 if (dmp1 == NULL) in rsa_ossl_mod_exp()
969 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp()
972 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rsa->p, ctx, in rsa_ossl_mod_exp()
974 BN_free(dmp1); in rsa_ossl_mod_exp()
978 BN_free(dmp1); 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_chk.c160 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in rsa_validate_keypair_multiprime()
170 if (BN_cmp(j, key->dmp1) != 0) { in rsa_validate_keypair_multiprime()
H A Drsa_asn1.c64 ASN1_SIMPLE(RSA, dmp1, CBIGNUM),
H A Drsa_local.h67 BIGNUM *dmp1; member
H A Drsa_backend.c504 if (!rsa_bn_dup_check(&dupkey->dmp1, rsa->dmp1)) in ossl_rsa_dup()
H A Drsa_ameth.c342 if (!ASN1_bn_print(bp, "exponent1:", x->dmp1, NULL, off)) in pkey_rsa_print()
/openssl/test/
H A Drsa_mp_test.c91 static const unsigned char dmp1[] = variable
162 BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL), in key2048p3_v1()
219 if (!TEST_ptr(num = BN_bin2bn(dmp1, sizeof(dmp1) - 1, NULL)) in key2048p3_v2()
H A Drsa_test.c41 BN_bin2bn(dmp1, sizeof(dmp1)-1, NULL), \
75 static unsigned char dmp1[] = in key1() local
121 static unsigned char dmp1[] = in key2() local
182 static unsigned char dmp1[] = in key3() local
H A Drsa_sp800_56b_test.c306 && TEST_BN_eq_word(key->dmp1, DP) in test_check_crt_components()
311 && TEST_true(BN_set_word(key->dmp1, 1)) in test_check_crt_components()
313 && TEST_true(BN_set_word(key->dmp1, P-1)) in test_check_crt_components()
315 && TEST_true(BN_set_word(key->dmp1, DP)) in test_check_crt_components()
329 && TEST_true(BN_set_word(key->dmp1, DP+1)) in test_check_crt_components()
331 && TEST_true(BN_set_word(key->dmp1, DP)) 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
599 || !TEST_ptr(dmp1 = BN_bin2bn(dmp1_data, sizeof(dmp1_data), NULL)) in test_fromdata_rsa_derive_from_pq_sp800()
615 cdata[0].comparebn = dmp1; in test_fromdata_rsa_derive_from_pq_sp800()
631 BN_free(dmp1); 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
784 || !TEST_ptr(dmp1 = BN_bin2bn(dmp1_data, sizeof(dmp1_data), NULL)) in test_fromdata_rsa_derive_from_pq_multiprime()
802 cdata[0].comparebn = dmp1; in test_fromdata_rsa_derive_from_pq_multiprime()
835 BN_free(dmp1); in test_fromdata_rsa_derive_from_pq_multiprime()
/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
473 if (!read_lebn(&pin, hnbyte, &dmp1)) 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()
506 BN_free(dmp1); 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()
666 || (BN_num_bytes(dmp1) > 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);
30 const BIGNUM **dmp1, const BIGNUM **dmq1,
60 B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1> and B<iqmp>. B<n> is
62 exponent and B<d> is the private exponent. B<p>, B<q>, B<dmp1>,
65 the first and second factor of B<n> and B<dmp1>, B<dmq1> and B<iqmp>
91 set with RSA_get0_factors() and RSA_set0_factors(), and the B<dmp1>,
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.pod155 BIGNUM *dmp1, *dmq1; /* first two CRT exponents */
172 || !OSSL_PARAM_BLD_push_BN(bld, "rsa-exponent1", dmp1)
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.h221 BIGNUM *dmp1, BIGNUM *dmq1,
237 const BIGNUM **dmp1,
/openssl/crypto/err/
H A Dopenssl.txt1237 RSA_R_DMP1_NOT_CONGRUENT_TO_D:124:dmp1 not congruent to d
/openssl/
H A DCHANGES.md19043 method only got called if p,q,dmp1,dmq1,iqmp components were present,

Completed in 100 milliseconds