| /src/external/mpl/bind/dist/lib/dns/ |
| openssl_shim.c | 72 RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) { 74 * If the fields dmp1, dmq1 and iqmp in r are NULL, the 79 (r->iqmp == NULL && iqmp == NULL)) 92 if (iqmp != NULL) { 93 BN_clear_free(r->iqmp); 94 r->iqmp = iqmp; 116 const BIGNUM **iqmp) { 119 SET_IF_NOT_NULL(iqmp, r->iqmp) [all...] |
| openssl_shim.h | 69 RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp); 80 const BIGNUM **iqmp);
|
| /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| rsa-gmp.c | 82 mpz_t dmp1, mpz_t dmq1, mpz_t iqmp, 95 /* C2 = 1/q mod p (iqmp) */ 102 mpz_mul(u, iqmp, u); 297 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 298 mpz_t p, q, dmp1, dmq1, iqmp; local 304 BN2mpz(iqmp, rsa->iqmp); 306 rsa_private_calculate(in, p, q, dmp1, dmq1, iqmp, out); 312 mpz_clear(iqmp); 365 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 366 mpz_t p, q, dmp1, dmq1, iqmp; local 447 mpz_t el, p, q, n, d, dmp1, dmq1, iqmp, t1, t2, t3; local [all...] |
| rsa-ltm.c | 106 mp_int * dmp1, mp_int * dmq1, mp_int * iqmp, 120 /* C2 = 1/q mod p (iqmp) */ 125 mp_mul(&u, iqmp, &u); 340 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 341 mp_int p, q, dmp1, dmq1, iqmp; local 343 mp_init_multi(&p, &q, &dmp1, &dmq1, &iqmp, NULL); 349 BN2mpz(&iqmp, rsa->iqmp); 351 res = ltm_rsa_private_calculate(&in, &p, &q, &dmp1, &dmq1, &iqmp, &out); 353 mp_clear_multi(&p, &q, &dmp1, &dmq1, &iqmp, NULL) 429 mp_int p, q, dmp1, dmq1, iqmp; local 520 mp_int el, p, q, n, d, dmp1, dmq1, iqmp, t1, t2, t3; local [all...] |
| rsa-tfm.c | 64 fp_int * dmp1, fp_int * dmq1, fp_int * iqmp, 78 /* C2 = 1/q mod p (iqmp) */ 83 fp_mul(&u, iqmp, &u); 273 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 274 fp_int p, q, dmp1, dmq1, iqmp; local 280 BN2mpz(&iqmp, rsa->iqmp); 282 res = tfm_rsa_private_calculate(&in, &p, &q, &dmp1, &dmq1, &iqmp, &out); 284 fp_zero_multi(&p, &q, &dmp1, &dmq1, &iqmp, NULL); 344 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 345 fp_int p, q, dmp1, dmq1, iqmp; local 449 fp_int el, p, q, n, d, dmp1, dmq1, iqmp, t1, t2, t3; local [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/rsa/ |
| rsa_lib.c | 135 BN_clear_free(r->iqmp); 230 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) 232 /* If the fields dmp1, dmq1 and iqmp in r are NULL, the corresponding input 237 || (r->iqmp == NULL && iqmp == NULL)) 250 if (iqmp != NULL) { 251 BN_clear_free(r->iqmp); 252 r->iqmp = iqmp; 253 BN_set_flags(r->iqmp, BN_FLG_CONSTTIME) [all...] |
| /src/crypto/external/bsd/openssl.old/dist/test/ |
| rsa_test.c | 44 BN_bin2bn(iqmp, sizeof(iqmp)-1, NULL)); \ 85 static unsigned char iqmp[] = local 130 static unsigned char iqmp[] = local 195 static unsigned char iqmp[] = local
|
| rsa_mp_test.c | 101 static const unsigned char iqmp[] = local 150 BN_bin2bn(iqmp, sizeof(iqmp) - 1,
|
| /src/crypto/external/apache2/openssl/dist/crypto/rsa/ |
| rsa_sp800_56b_gen.c | 312 BN_free(rsa->iqmp); 313 rsa->iqmp = BN_secure_new(); 314 if (rsa->iqmp == NULL) 316 BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME); 317 if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) 330 BN_free(rsa->iqmp); 331 rsa->iqmp = NULL;
|
| rsa_gen.c | 92 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; local 222 /* Calculate iqmp and additional coefficients */ 223 iqmp = BN_new(); 224 if (iqmp == NULL) 227 if (BN_mod_inverse(iqmp, sk_BIGNUM_value(factors, 1), 231 if (!sk_BIGNUM_insert(coeffs, iqmp, sk_BIGNUM_num(coeffs))) 233 iqmp = NULL; 261 BN_clear_free(iqmp); 569 * and the first coeff is in iqmp, so pop those off the stack 571 * assign dmp1/dmq1 and iqmp [all...] |
| rsa_lib.c | 174 BN_clear_free(r->iqmp); 451 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) 453 /* If the fields dmp1, dmq1 and iqmp in r are NULL, the corresponding input 458 || (r->iqmp == NULL && iqmp == NULL)) 471 if (iqmp != NULL) { 472 BN_clear_free(r->iqmp); 473 r->iqmp = iqmp; 474 BN_set_flags(r->iqmp, BN_FLG_CONSTTIME) [all...] |
| rsa_sp800_56b_check.c | 30 if (rsa->dmp1 == NULL || rsa->dmq1 == NULL || rsa->iqmp == NULL) { 31 if (rsa->dmp1 != NULL || rsa->dmq1 != NULL || rsa->iqmp != NULL) 62 && (BN_cmp(rsa->iqmp, BN_value_one()) > 0) 63 && (BN_cmp(rsa->iqmp, rsa->p) < 0) 71 && BN_mod_mul(r, rsa->iqmp, rsa->q, rsa->p, ctx)
|
| /src/crypto/external/bsd/openssl/dist/crypto/rsa/ |
| rsa_sp800_56b_gen.c | 303 BN_free(rsa->iqmp); 304 rsa->iqmp = BN_secure_new(); 305 if (rsa->iqmp == NULL) 307 BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME); 308 if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) 321 BN_free(rsa->iqmp); 322 rsa->iqmp = NULL;
|
| rsa_lib.c | 165 BN_clear_free(r->iqmp); 444 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) 446 /* If the fields dmp1, dmq1 and iqmp in r are NULL, the corresponding input 451 || (r->iqmp == NULL && iqmp == NULL)) 464 if (iqmp != NULL) { 465 BN_clear_free(r->iqmp); 466 r->iqmp = iqmp; 467 BN_set_flags(r->iqmp, BN_FLG_CONSTTIME) [all...] |
| rsa_gen.c | 145 if (!rsa->iqmp && ((rsa->iqmp = BN_secure_new()) == NULL)) 147 BN_set_flags(rsa->iqmp, BN_FLG_CONSTTIME); 393 if (!BN_mod_inverse(rsa->iqmp, rsa->q, p, ctx)) { 459 BN_clear_free(rsa->iqmp); 465 rsa->iqmp = NULL;
|
| rsa_sp800_56b_check.c | 30 if (rsa->dmp1 == NULL || rsa->dmq1 == NULL || rsa->iqmp == NULL) { 31 if (rsa->dmp1 != NULL || rsa->dmq1 != NULL || rsa->iqmp != NULL) 62 && (BN_cmp(rsa->iqmp, BN_value_one()) > 0) 63 && (BN_cmp(rsa->iqmp, rsa->p) < 0) 71 && BN_mod_mul(r, rsa->iqmp, rsa->q, rsa->p, ctx)
|
| /src/crypto/external/apache2/openssl/dist/test/ |
| rsa_mp_test.c | 101 static const unsigned char iqmp[] = "\x03\xa1\x8b\x80\xe4\xd8\x87\x25\x17\x5d\xcc\x8d\xa9\x8a\x22\x2b" variable 155 BN_bin2bn(iqmp, sizeof(iqmp) - 1, 219 if (!TEST_ptr(num = BN_bin2bn(iqmp, sizeof(iqmp) - 1, NULL))
|
| /src/crypto/external/bsd/openssl/dist/test/ |
| rsa_mp_test.c | 107 static const unsigned char iqmp[] = variable 164 BN_bin2bn(iqmp, sizeof(iqmp) - 1, 227 if (!TEST_ptr(num = BN_bin2bn(iqmp, sizeof(iqmp) - 1, NULL))
|
| /src/external/bsd/ntp/dist/libntp/ |
| libssl_compat.c | 205 BIGNUM * iqmp 211 (prsa->iqmp || iqmp) )) 216 replace_bn_nn(&prsa->iqmp, iqmp);
|
| /src/crypto/external/apache2/openssl/dist/crypto/bn/ |
| bn_s390x.c | 80 const BIGNUM *dmp, const BIGNUM *dmq, const BIGNUM *iqmp) 122 || BN_bn2binpad(iqmp, crt.u_mult_inv, size + 8) == -1) 156 const BIGNUM *dmp, const BIGNUM *dmq, const BIGNUM *iqmp)
|
| /src/external/bsd/wpa/dist/src/tls/ |
| rsa.c | 27 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */ member in struct:crypto_rsa_key 164 key->iqmp = bignum_init(); 168 key->dmq1 == NULL || key->iqmp == NULL) { 215 pos = crypto_rsa_parse_integer(pos, end, key->iqmp); 285 * iqmp = (1/q) mod p, where p > q 306 bignum_mulmod(tmp, key->iqmp, key->p, tmp) < 0) 363 bignum_deinit(key->iqmp);
|
| /src/external/mpl/dhcp/bind/dist/lib/dns/ |
| opensslrsa_link.c | 115 RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) { 117 * If the fields dmp1, dmq1 and iqmp in r are NULL, the 122 (r->iqmp == NULL && iqmp == NULL)) 135 if (iqmp != NULL) { 136 BN_free(r->iqmp); 137 r->iqmp = iqmp; 169 const BIGNUM **iqmp) { 176 if (iqmp != NULL) 721 const BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; local 906 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; local [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/pem/ |
| pvkfmt.c | 453 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; local 477 if (!read_lebn(&pin, hnbyte, &iqmp)) 484 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) 486 dmp1 = dmq1 = iqmp = NULL; 508 BN_free(iqmp); 651 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; local 662 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); 663 if ((BN_num_bytes(iqmp) > hnbyte) 679 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; local 689 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/pem/ |
| pvkfmt.c | 446 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; local 470 if (!read_lebn(&pin, hnbyte, &iqmp)) 477 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) 479 dmp1 = dmq1 = iqmp = NULL; 495 BN_free(iqmp); 639 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; local 650 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); 651 if ((BN_num_bytes(iqmp) > hnbyte) 667 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; local 677 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/pem/ |
| pvkfmt.c | 325 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; local 350 if (!read_lebn(&pin, hnbyte, &iqmp)) 357 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) 359 dmp1 = dmq1 = iqmp = NULL; 378 BN_free(iqmp); 533 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; local 544 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); 545 if ((BN_num_bytes(iqmp) > hnbyte) 561 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; local 571 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); [all...] |