/macosx-10.10/Heimdal-398.1.2/lib/hcrypto/ |
H A D | rsa-gmp.c | 84 mpz_t dmp1, mpz_t dmq1, mpz_t iqmp, 97 /* C2 = 1/q mod p (iqmp) */ 104 mpz_mul(u, iqmp, u); 299 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 300 mpz_t p, q, dmp1, dmq1, iqmp; local 306 BN2mpz(iqmp, rsa->iqmp); 308 rsa_private_calculate(in, p, q, dmp1, dmq1, iqmp, out); 314 mpz_clear(iqmp); 367 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 83 rsa_private_calculate(mpz_t in, mpz_t p, mpz_t q, mpz_t dmp1, mpz_t dmq1, mpz_t iqmp, mpz_t out) argument 368 mpz_t p, q, dmp1, dmq1, iqmp; local 449 mpz_t el, p, q, n, d, dmp1, dmq1, iqmp, t1, t2, t3; local [all...] |
H A D | rsa-ltm.c | 112 mp_int * dmp1, mp_int * dmq1, mp_int * iqmp, 126 /* C2 = 1/q mod p (iqmp) */ 131 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, NUL 111 ltm_rsa_private_calculate(mp_int * in, mp_int * p, mp_int * q, mp_int * dmp1, mp_int * dmq1, mp_int * iqmp, mp_int * out) argument 424 mp_int p, q, dmp1, dmq1, iqmp; local 533 mp_int el, p, q, n, d, dmp1, dmq1, iqmp, t1, t2, t3; local [all...] |
H A D | rsa-tfm.c | 66 fp_int * dmp1, fp_int * dmq1, fp_int * iqmp, 80 /* C2 = 1/q mod p (iqmp) */ 85 fp_mul(&u, iqmp, &u); 275 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 276 fp_int p, q, dmp1, dmq1, iqmp; local 282 BN2mpz(&iqmp, rsa->iqmp); 284 res = tfm_rsa_private_calculate(&in, &p, &q, &dmp1, &dmq1, &iqmp, &out); 286 fp_zero_multi(&p, &q, &dmp1, &dmq1, &iqmp, NULL); 346 if (rsa->p && rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) { 65 tfm_rsa_private_calculate(fp_int * in, fp_int * p, fp_int * q, fp_int * dmp1, fp_int * dmq1, fp_int * iqmp, fp_int * out) argument 347 fp_int p, q, dmp1, dmq1, iqmp; local 451 fp_int el, p, q, n, d, dmp1, dmq1, iqmp, t1, t2, t3; local [all...] |
H A D | rsa.c | 164 free_if(rsa->iqmp); 280 (rsa->p == NULL || rsa->q || rsa->dmp1 == NULL || rsa->dmq1 == NULL || rsa->iqmp == NULL)) 593 k->iqmp = _hc_integer_to_BN(&data.coefficient, NULL); 597 k->q == NULL || k->dmp1 == NULL || k->dmq1 == NULL || k->iqmp == NULL) 615 rsa->iqmp == NULL) 627 ret |= _hc_BN_to_integer(rsa->iqmp, &data.coefficient);
|
H A D | rsa.h | 115 BIGNUM *iqmp; member in struct:RSA
|
/macosx-10.10/OpenSSL098-52/src/crypto/rsa/ |
H A D | rsa_test.c | 29 key->iqmp = BN_bin2bn(iqmp, sizeof(iqmp)-1, key->iqmp); \ 69 static unsigned char iqmp[] = local 114 static unsigned char iqmp[] = local 179 static unsigned char iqmp[] = local
|
H A D | rsa_asn1.c | 100 ASN1_SIMPLE(RSA, iqmp, BIGNUM)
|
H A D | rsa_chk.c | 131 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) 161 /* iqmp = q^-1 mod p? */ 168 if (BN_cmp(i, key->iqmp) != 0)
|
H A D | rsa_eng.c | 202 ret->iqmp=NULL; 269 if (r->iqmp != NULL) BN_clear_free(r->iqmp); 327 t[5]= &r->iqmp;
|
H A D | rsa_gen.c | 115 if(!rsa->iqmp && ((rsa->iqmp=BN_new()) == NULL)) goto err; 204 if (!BN_mod_inverse(rsa->iqmp,rsa->q,p,ctx)) goto err;
|
/macosx-10.10/OpenSSL098-52/src/test/ |
H A D | rsa_test.c | 29 key->iqmp = BN_bin2bn(iqmp, sizeof(iqmp)-1, key->iqmp); \ 69 static unsigned char iqmp[] = local 114 static unsigned char iqmp[] = local 179 static unsigned char iqmp[] = local
|
/macosx-10.10/OpenSSL098-52/src/fips/rsa/ |
H A D | fips_rsa_lib.c | 95 if (r->iqmp != NULL) BN_clear_free(r->iqmp);
|
H A D | fips_rsa_gen.c | 197 if(!rsa->iqmp && ((rsa->iqmp=BN_new()) == NULL)) goto err; 286 if (!BN_mod_inverse(rsa->iqmp,rsa->q,p,ctx)) goto err;
|
/macosx-10.10/OpenSSL098-52/src/engines/ |
H A D | e_gmp.c | 324 mpz_t iqmp; member in struct:st_e_gmp_rsa_ctx 343 mpz_init(hptr->iqmp); 350 if(!rsa->p || !rsa->q || !rsa->d || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) 357 !bn2gmp(rsa->dmq1, hptr->dmq1) || !bn2gmp(rsa->iqmp, hptr->iqmp)) 370 mpz_clear(hptr->iqmp); 390 mpz_clear(hptr->iqmp); 438 mpz_mul(hptr->r1, hptr->r0, hptr->iqmp);
|
H A D | e_cswift.c | 117 const BIGNUM *iqmp, BN_CTX *ctx); 611 const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) 626 sw_param.up.crt.iqmp.value = NULL; 671 if(!cswift_bn_32copy(&sw_param.up.crt.iqmp, iqmp)) 729 if(sw_param.up.crt.iqmp.value) 730 OPENSSL_free(sw_param.up.crt.iqmp.value); 747 if(!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) 758 BN_num_bytes(rsa->iqmp) > 128) 774 rsa->dmq1, rsa->iqmp, ct 609 cswift_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) argument [all...] |
/macosx-10.10/OpenSSL098-52/src/demos/engines/cluster_labs/ |
H A D | cluster_labs.h | 6 const BIGNUM *iqmp, BN_CTX *ctx);
|
/macosx-10.10/OpenSSL098-52/src/demos/engines/ibmca/ |
H A D | hw_ibmca.c | 97 const BIGNUM *iqmp, BN_CTX *ctx);
606 if(!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp)
619 rsa->dmq1, rsa->iqmp, ctx);
631 const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx)
652 unsigned int iqmpbytes = BN_num_bytes(iqmp);
712 privKey->qInvLength = CORRECT_ENDIANNESS(BN_num_bytes(iqmp)+8);
774 pkey += pSize - BN_num_bytes(iqmp); /* Adjust for padding */
775 BN_bn2bin(iqmp, pkey);
629 ibmca_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) argument
|
/macosx-10.10/OpenSSL098-52/src/engines/vendor_defns/ |
H A D | hwcryptohook.h | 390 HWCryptoHook_MPI iqmp, 402 HWCryptoHook_MPI iqmp,
|
H A D | cswift.h | 185 SW_LARGENUMBER iqmp; /* CRT coefficient */ member in struct:_SW_CRT
|
/macosx-10.10/Security-57031.1.35/Security/libsecurity_apple_csp/open_ssl/rsa/ |
H A D | rsa_chk.c | 149 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) 179 /* iqmp = q^-1 mod p? */ 186 if (BN_cmp(i, key->iqmp) != 0)
|
H A D | rsa_gen.c | 194 rsa->iqmp=BN_mod_inverse(NULL,rsa->q,rsa->p,ctx2); 195 if (rsa->iqmp == NULL) goto err;
|
H A D | rsa_lib.c | 158 ret->iqmp=NULL; 212 if (r->iqmp != NULL) BN_clear_free(r->iqmp); 321 t[5]= &r->iqmp;
|
/macosx-10.10/OpenSSH-189/osslshim/ossl/ |
H A D | ossl-rsa-cc.c | 310 der_length_int(rsakey->iqmp); 363 if (der_encode_int(rsakey->iqmp, derbuf + offset, &outlen) != 0) { 821 (rsa->iqmp != NULL))) { 1125 if (!BN_mul(r1, r0, rsa->iqmp, ctx)) { 1301 if (!rsa->iqmp && ((rsa->iqmp = BN_new()) == NULL)) { 1377 if (!BN_mod_inverse(rsa->iqmp, rsa->q, pbn, ctx)) { 1427 if (rsa->iqmp != NULL) { 1428 BN_clear_free(rsa->iqmp); 1504 if (!rsa->iqmp [all...] |
H A D | ossl-rsa.c | 184 free_if(rsa->iqmp); 370 if ((key->dmp1 != NULL) && (key->dmq1 != NULL) && (key->iqmp != NULL)) { 411 /* iqmp = q^-1 mod p? */ 417 if (BN_cmp(i, key->iqmp) != 0) { 787 k->iqmp = _cs_integer_to_BN(&data.coefficient, NULL); 791 (k->q == NULL) || (k->dmp1 == NULL) || (k->dmq1 == NULL) || (k->iqmp == NULL)) { 813 (rsa->iqmp == NULL)) { 826 ret |= _cs_BN_to_integer(rsa->iqmp, &data.coefficient); 997 ASN1_SIMPLE(RSA, iqmp, BIGNUM)
|
/macosx-10.10/OpenSSH-189/ |
H A D | test_encrypt.c | 318 rsa_key_ptr->iqmp = BN_new(); 327 BN_set_word(rsa_key_ptr->iqmp, 8);
|