/freebsd/contrib/ntp/libntp/ |
H A D | libssl_compat.c | 203 BIGNUM * iqmp in sslshim_RSA_set0_crt_params() argument 209 (prsa->iqmp || iqmp) )) in sslshim_RSA_set0_crt_params() 214 replace_bn_nn(&prsa->iqmp, iqmp); in sslshim_RSA_set0_crt_params()
|
/freebsd/crypto/openssl/test/ |
H A D | rsa_mp_test.c | 107 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 D | rsa_test.c | 43 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 D | rsa_sp800_56b_test.c | 307 && 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()
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_sp800_56b_gen.c | 303 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 D | rsa_lib.c | 165 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 D | rsa_gen.c | 145 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 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() 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 D | rsa_x931g.c | 136 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 D | rsa_chk.c | 160 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 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() 717 || !bn_mul_mont_fixed_top(r1, r1, rsa->iqmp, rsa->_method_mod_p, in rsa_ossl_mod_exp() 835 if (!BN_mul(r1, r0, rsa->iqmp, ctx)) in rsa_ossl_mod_exp()
|
H A D | rsa_asn1.c | 66 ASN1_SIMPLE(RSA, iqmp, CBIGNUM),
|
H A D | rsa_local.h | 69 BIGNUM *iqmp; member
|
H A D | rsa_backend.c | 372 if (!rsa_bn_dup_check(&dupkey->iqmp, rsa->iqmp)) in ossl_rsa_dup()
|
/freebsd/contrib/wpa/src/tls/ |
H A D | rsa.c | 27 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */ member 164 key->iqmp = bignum_init(); in crypto_rsa_import_private_key() 168 key->dmq1 == NULL || key->iqmp == NULL) { in crypto_rsa_import_private_key() 215 pos = crypto_rsa_parse_integer(pos, end, key->iqmp); in crypto_rsa_import_private_key() 306 bignum_mulmod(tmp, key->iqmp, key->p, tmp) < 0) in crypto_rsa_exptmod() 363 bignum_deinit(key->iqmp); 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 470 if (!read_lebn(&pin, hnbyte, &iqmp)) 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() 495 BN_free(iqmp); 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() 651 if ((BN_num_bytes(iqmp) > 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); 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 D | OSSL_PARAM_BLD.pod | 143 BIGNUM *iqmp; /* first CRT coefficient */ 161 || !OSSL_PARAM_BLD_push_BN(bld, "rsa-coefficient1", iqmp)
|
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 | 67 BIGNUM *dmq1, BIGNUM *iqmp);
|
/freebsd/contrib/ldns/ |
H A D | keys.c | 769 *dmp1=NULL, *dmq1=NULL, *iqmp=NULL; in ldns_key_new_frm_fp_rsa_l() local 858 iqmp = BN_bin2bn((const char unsigned*)buf, i, NULL); in ldns_key_new_frm_fp_rsa_l() 859 if (!iqmp) { in ldns_key_new_frm_fp_rsa_l() 873 rsa->iqmp = iqmp; 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() 904 BN_free(iqmp); in ldns_key_new_frm_fp_rsa_l()
|
H A D | host2str.c | 3031 *dmq1=NULL, *iqmp=NULL; in ldns_key2buffer_str() local 3040 iqmp = rsa->iqmp; in ldns_key2buffer_str() 3045 &dmq1, &iqmp); in ldns_key2buffer_str() 3061 if(!ldns_print_bignum_b64_line(output, "Coefficient", iqmp)) in ldns_key2buffer_str()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | rsa.h | 211 BIGNUM *iqmp); 228 const BIGNUM **iqmp);
|
/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() 3023 new_iqmp = BN_dup(iqmp); in match_keys_rsa()
|