Home
last modified time | relevance | path

Searched refs:iqmp (Results 1 – 22 of 22) sorted by relevance

/third_party/openssl/crypto/rsa/
Drsa_lib.c135 BN_clear_free(r->iqmp); in RSA_free()
230 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) in RSA_set0_crt_params() argument
237 || (r->iqmp == NULL && iqmp == NULL)) in RSA_set0_crt_params()
250 if (iqmp != NULL) { in RSA_set0_crt_params()
251 BN_clear_free(r->iqmp); in RSA_set0_crt_params()
252 r->iqmp = iqmp; in RSA_set0_crt_params()
253 BN_set_flags(r->iqmp, BN_FLG_CONSTTIME); in RSA_set0_crt_params()
378 const BIGNUM **iqmp) in RSA_get0_crt_params() argument
384 if (iqmp != NULL) in RSA_get0_crt_params()
385 *iqmp = r->iqmp; in RSA_get0_crt_params()
[all …]
Drsa_gen.c120 if (!rsa->iqmp && ((rsa->iqmp = BN_secure_new()) == NULL)) in rsa_builtin_keygen()
365 if (!BN_mod_inverse(rsa->iqmp, rsa->q, p, ctx)) { in rsa_builtin_keygen()
Drsa_x931g.c130 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
131 if (rsa->iqmp == NULL) in RSA_X931_derive_ex()
Drsa_chk.c154 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) { in RSA_check_key_ex()
188 if (BN_cmp(i, key->iqmp) != 0) { in RSA_check_key_ex()
Drsa_local.h45 BIGNUM *iqmp; member
Drsa_asn1.c60 ASN1_SIMPLE(RSA, iqmp, CBIGNUM),
Drsa_ossl.c315 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_encrypt()
437 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) { in rsa_ossl_private_decrypt()
699 || !bn_mul_mont_fixed_top(r1, r1, rsa->iqmp, rsa->_method_mod_p, in rsa_ossl_mod_exp()
825 if (!BN_mul(r1, r0, rsa->iqmp, ctx)) in rsa_ossl_mod_exp()
Drsa_ameth.c372 if (!ASN1_bn_print(bp, "coefficient:", x->iqmp, NULL, off)) in pkey_rsa_print()
/third_party/openssl/test/
Drsa_test.c44 BN_bin2bn(iqmp, sizeof(iqmp)-1, NULL)); \
85 static unsigned char iqmp[] = in key1() local
130 static unsigned char iqmp[] = in key2() local
195 static unsigned char iqmp[] = in key3() local
Drsa_mp_test.c101 static const unsigned char iqmp[] = in key2048p3() local
150 BN_bin2bn(iqmp, sizeof(iqmp) - 1, in key2048p3()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Drsa.c27 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Drsa.c27 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */ member
169 key->iqmp = bignum_init(); in crypto_rsa_import_private_key()
173 key->dmq1 == NULL || key->iqmp == NULL) { in crypto_rsa_import_private_key()
224 pos = crypto_rsa_parse_integer(pos, end, key->iqmp); in crypto_rsa_import_private_key()
315 bignum_mulmod(tmp, key->iqmp, key->p, tmp) < 0) in crypto_rsa_exptmod()
372 bignum_deinit(key->iqmp); in crypto_rsa_free()
/third_party/openssl/crypto/pem/
Dpvkfmt.c325 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in b2i_rsa() local
350 if (!read_lebn(&pin, hnbyte, &iqmp)) in b2i_rsa()
357 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) in b2i_rsa()
359 dmp1 = dmq1 = iqmp = NULL; in b2i_rsa()
378 BN_free(iqmp); in b2i_rsa()
533 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; in check_bitlen_rsa() local
544 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in check_bitlen_rsa()
545 if ((BN_num_bytes(iqmp) > hnbyte) in check_bitlen_rsa()
561 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; in write_rsa() local
571 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in write_rsa()
[all …]
/third_party/openssl/doc/man3/
DRSA_get0_key.pod21 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
27 const BIGNUM **iqmp);
52 B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1> and B<iqmp>. B<n> is
55 B<dmq1> and B<iqmp> are the factors for the second representation of a
57 the first and second factor of B<n> and B<dmp1>, B<dmq1> and B<iqmp>
84 B<dmq1> and B<iqmp> parameters can be obtained and set with
97 Any of the values B<n>, B<e>, B<d>, B<p>, B<q>, B<dmp1>, B<dmq1>, and B<iqmp> can also be
DRSA_check_key.pod24 and that B<dmp1>, B<dmq1> and B<iqmp> are set correctly or are B<NULL>.
DRSA_set_method.pod117 * operations, even if p,q,dmp1,dmq1,iqmp
/third_party/node/deps/npm/node_modules/sshpk/lib/formats/
Dpkcs1.js98 var iqmp = readMPInt(der, 'iqmp');
107 { name: 'iqmp', data: iqmp },
301 der.writeBuffer(key.part.iqmp.data, asn1.Ber.Integer);
Ddnssec.js234 var iqmp = utils.mpDenormalize(key.part['iqmp'].data);
235 out += 'Coefficient: ' + iqmp.toString('base64') + '\n';
Dpkcs8.js121 var iqmp = readMPInt(der, 'iqmp');
130 { name: 'iqmp', data: iqmp },
479 der.writeBuffer(key.part.iqmp.data, asn1.Ber.Integer);
/third_party/openssl/include/openssl/
Drsa.h206 int RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
216 const BIGNUM **iqmp);
/third_party/openssl/crypto/err/
Dopenssl.txt2551 RSA_R_IQMP_NOT_INVERSE_OF_Q:126:iqmp not inverse of q
/third_party/openssl/
DCHANGES12275 method only got called if p,q,dmp1,dmq1,iqmp components were present,