/freebsd/contrib/ntp/libntp/ |
H A D | libssl_compat.c | 201 BIGNUM * dmp1, in sslshim_RSA_set0_crt_params() argument 207 if (!((prsa->dmp1 || dmp1) && in sslshim_RSA_set0_crt_params() 212 replace_bn_nn(&prsa->dmp1, dmp1); in sslshim_RSA_set0_crt_params()
|
/freebsd/crypto/openssl/test/ |
H A D | rsa_mp_test.c | 91 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 D | rsa_test.c | 41 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 D | rsa_sp800_56b_test.c | 305 && TEST_BN_eq_word(key->dmp1, DP) in test_check_crt_components() 310 && TEST_true(BN_set_word(key->dmp1, 1)) in test_check_crt_components() 312 && TEST_true(BN_set_word(key->dmp1, P-1)) in test_check_crt_components() 314 && TEST_true(BN_set_word(key->dmp1, DP)) in test_check_crt_components() 328 && TEST_true(BN_set_word(key->dmp1, DP+1)) in test_check_crt_components() 330 && TEST_true(BN_set_word(key->dmp1, DP)) in test_check_crt_components()
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_sp800_56b_gen.c | 285 if (rsa->dmp1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 286 rsa->dmp1 = BN_secure_new(); in ossl_rsa_sp800_56b_derive_params_from_pq() 287 if (rsa->dmp1 == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 289 BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq() 290 if (!BN_mod(rsa->dmp1, rsa->d, p1, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq() 325 BN_free(rsa->dmp1); in ossl_rsa_sp800_56b_derive_params_from_pq() 326 rsa->dmp1 = NULL; in ossl_rsa_sp800_56b_derive_params_from_pq()
|
H A D | rsa_lib.c | 163 BN_clear_free(r->dmp1); in RSA_free() 444 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument 449 if ((r->dmp1 == NULL && dmp1 == NULL) in RSA_set0_crt_params() 454 if (dmp1 != NULL) { in RSA_set0_crt_params() 455 BN_clear_free(r->dmp1); in RSA_set0_crt_params() 456 r->dmp1 = dmp1; in RSA_set0_crt_params() 457 BN_set_flags(r->dmp1, BN_FLG_CONSTTIME); in RSA_set0_crt_params() 597 const BIGNUM **dmp1, const BIGNUM **dmq1, in RSA_get0_crt_params() argument 600 if (dmp1 != NULL) in RSA_get0_crt_params() 601 *dmp1 = r->dmp1; in RSA_get0_crt_params() [all …]
|
H A D | rsa_gen.c | 139 if (!rsa->dmp1 && ((rsa->dmp1 = BN_secure_new()) == NULL)) in rsa_multiprime_keygen() 141 BN_set_flags(rsa->dmp1, BN_FLG_CONSTTIME); in rsa_multiprime_keygen() 365 if (!BN_mod(rsa->dmp1, d, r1, ctx) in rsa_multiprime_keygen() 457 BN_clear_free(rsa->dmp1); in rsa_keygen() 463 rsa->dmp1 = NULL; in rsa_keygen()
|
H A D | rsa_ossl.c | 322 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_encrypt() 447 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_decrypt() 703 r1, r1, rsa->dmp1, rsa->p, in rsa_ossl_mod_exp() 768 BIGNUM *dmp1 = BN_new(); in rsa_ossl_mod_exp() local 769 if (dmp1 == NULL) in rsa_ossl_mod_exp() 771 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp() 774 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rsa->p, ctx, in rsa_ossl_mod_exp() 776 BN_free(dmp1); in rsa_ossl_mod_exp() 780 BN_free(dmp1); in rsa_ossl_mod_exp()
|
H A D | rsa_sp800_56b_check.c | 30 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 D | rsa_x931g.c | 122 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 D | rsa_chk.c | 160 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 D | rsa_asn1.c | 64 ASN1_SIMPLE(RSA, dmp1, CBIGNUM),
|
H A D | rsa_local.h | 67 BIGNUM *dmp1; member
|
H A D | rsa_backend.c | 368 if (!rsa_bn_dup_check(&dupkey->dmp1, rsa->dmp1)) in ossl_rsa_dup()
|
/freebsd/contrib/wpa/src/tls/ |
H A D | rsa.c | 25 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */ member 162 key->dmp1 = bignum_init(); in crypto_rsa_import_private_key() 167 key->p == NULL || key->q == NULL || key->dmp1 == NULL || in crypto_rsa_import_private_key() 213 pos = crypto_rsa_parse_integer(pos, end, key->dmp1); in crypto_rsa_import_private_key() 297 if (bignum_exptmod(tmp, key->dmp1, key->p, a) < 0) in crypto_rsa_exptmod() 361 bignum_deinit(key->dmp1); in crypto_rsa_free()
|
/freebsd/crypto/openssl/crypto/pem/ |
H A D | pvkfmt.c | 446 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in ossl_b2i_RSA_after_header() local 466 if (!read_lebn(&pin, hnbyte, &dmp1)) in ossl_b2i_RSA_after_header() 477 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in ossl_b2i_RSA_after_header() 479 dmp1 = dmq1 = iqmp = NULL; in ossl_b2i_RSA_after_header() 493 BN_free(dmp1); in ossl_b2i_RSA_after_header() 639 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; in check_bitlen_rsa() local 650 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in check_bitlen_rsa() 654 || (BN_num_bytes(dmp1) > hnbyte) in check_bitlen_rsa() 667 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; in write_rsa() local 677 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in write_rsa() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | RSA_get0_key.pod | 25 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 D | OSSL_PARAM_BLD.pod | 142 BIGNUM *dmp1, *dmq1; /* first two CRT exponents */ 159 || !OSSL_PARAM_BLD_push_BN(bld, "rsa-exponent1", dmp1)
|
H A D | RSA_check_key.pod | 32 and that B<dmp1>, B<dmq1> and B<iqmp> are set correctly or are B<NULL>.
|
H A D | RSA_set_method.pod | 124 * operations, even if p,q,dmp1,dmq1,iqmp
|
/freebsd/contrib/ntp/include/ |
H A D | libssl_compat.h | 66 extern int sslshim_RSA_set0_crt_params(RSA *prsa, BIGNUM *dmp1,
|
/freebsd/contrib/ldns/ |
H A D | keys.c | 769 *dmp1=NULL, *dmq1=NULL, *iqmp=NULL; in ldns_key_new_frm_fp_rsa_l() local 838 dmp1 = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 839 if (!dmp1) { in ldns_key_new_frm_fp_rsa_l() 871 rsa->dmp1 = dmp1; in ldns_key_new_frm_fp_rsa_l() 885 if(!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in ldns_key_new_frm_fp_rsa_l() 902 BN_free(dmp1); in ldns_key_new_frm_fp_rsa_l()
|
H A D | host2str.c | 3030 *p=NULL, *q=NULL, *dmp1=NULL, in ldns_key2buffer_str() local 3038 dmp1 = rsa->dmp1; in ldns_key2buffer_str() 3044 RSA_get0_crt_params(rsa, &dmp1, in ldns_key2buffer_str() 3057 if(!ldns_print_bignum_b64_line(output, "Exponent1", dmp1)) in ldns_key2buffer_str()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | rsa.h | 210 BIGNUM *dmp1, BIGNUM *dmq1, 226 const BIGNUM **dmp1,
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | crypto.c | 2984 const BIGNUM *d, *p, *q, *dmp1, *dmq1, *iqmp; in match_keys_rsa() local 2995 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in match_keys_rsa() 3021 new_dmp1 = BN_dup(dmp1); in match_keys_rsa()
|