Searched refs:iqmp (Results 1 - 25 of 27) sorted by last modified time

12

/freebsd-11-stable/contrib/wpa/src/tls/
H A Drsa.c27 struct bignum *iqmp; /* 1 / q mod p; CRT coefficient */ member in struct:crypto_rsa_key
169 key->iqmp = bignum_init();
173 key->dmq1 == NULL || key->iqmp == NULL) {
224 pos = crypto_rsa_parse_integer(pos, end, key->iqmp);
294 * iqmp = (1/q) mod p, where p > q
315 bignum_mulmod(tmp, key->iqmp, key->p, tmp) < 0)
372 bignum_deinit(key->iqmp);
/freebsd-11-stable/crypto/openssl/crypto/rsa/
H A Drsa_eay.c426 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
544 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
787 /* r1 = r1 * iqmp mod p */
789 || !bn_mul_mont_fixed_top(r1, r1, rsa->iqmp, rsa->_method_mod_p,
849 if (!BN_mul(r1, r0, rsa->iqmp, ctx))
H A Drsa_chk.c147 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) {
151 BN_set_flags(key->iqmp, BN_FLG_CONSTTIME);
180 /* iqmp = q^-1 mod p? */
185 if (BN_cmp(i, key->iqmp) != 0) {
H A Drsa_gen.c153 if (!rsa->iqmp && ((rsa->iqmp = BN_new()) == NULL))
257 if (!BN_mod_inverse(rsa->iqmp, rsa->q, p, ctx))
H A Drsa_test.c29 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 Drsa_ameth.c203 update_buflen(x->iqmp, &buf_len);
246 if (!ASN1_bn_print(bp, "coefficient:", x->iqmp, m, off))
H A Drsa_lib.c179 ret->iqmp = NULL;
252 if (r->iqmp != NULL)
253 BN_clear_free(r->iqmp);
309 t[5] = &r->iqmp;
H A Drsa.h149 BIGNUM *iqmp; member in struct:rsa_st
H A Drsa_asn1.c93 ASN1_SIMPLE(RSA, iqmp, BIGNUM)
/freebsd-11-stable/crypto/openssl/crypto/pem/
H A Dpvkfmt.c389 if (!read_lebn(&p, hnbyte, &rsa->iqmp))
570 if ((BN_num_bytes(rsa->iqmp) > hnbyte)
596 write_lebn(out, rsa->iqmp, hnbyte);
/freebsd-11-stable/crypto/openssl/crypto/engine/
H A Deng_cryptodev.c1182 if (!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) {
1189 /* inputs: rsa->p rsa->q I rsa->dmp1 rsa->dmq1 rsa->iqmp */
1200 if (bn2crparam(rsa->iqmp, &kop.crk_param[5]))
/freebsd-11-stable/contrib/ntp/libntp/
H A Dlibssl_compat.c203 BIGNUM * iqmp
209 (prsa->iqmp || iqmp) ))
214 replace_bn_nn(&prsa->iqmp, iqmp);
/freebsd-11-stable/crypto/openssh/
H A Dsshkey.c541 bn_maybe_alloc_failed(k->rsa->iqmp) ||
2594 (r = sshbuf_put_bignum2(b, key->rsa->iqmp)) != 0 ||
2606 (r = sshbuf_put_bignum2(b, key->rsa->iqmp)) != 0 ||
2775 (r = sshbuf_get_bignum2(buf, k->rsa->iqmp)) != 0 ||
2785 (r = sshbuf_get_bignum2(buf, k->rsa->iqmp)) != 0 ||
3451 (r = sshbuf_put_bignum1(buffer, key->rsa->iqmp)) != 0 ||
3740 (r = sshbuf_get_bignum1(decrypted, prv->rsa->iqmp)) != 0 ||
H A Dssh-keygen.c514 buffer_get_bignum_bits(b, key->rsa->iqmp);
H A Dssh-agent.c597 (r = sshbuf_get_bignum1(m, k->rsa->iqmp)) != 0 ||
H A Dauthfd.c508 (r = sshbuf_put_bignum1(b, key->iqmp)) != 0 ||
/freebsd-11-stable/contrib/ntp/include/
H A Dlibssl_compat.h67 BIGNUM *dmq1, BIGNUM *iqmp);
/freebsd-11-stable/crypto/openssl/engines/
H A De_chil.c1042 if (!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) {
1058 BN2MPI(m_iqmp, rsa->iqmp);
H A De_aep.c119 const BIGNUM *dmq1, const BIGNUM *iqmp,
655 const BIGNUM *dmq1, const BIGNUM *iqmp,
674 (void *)dmp1, (void *)dmq1, (void *)iqmp, (void *)r,
784 if (rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) {
786 rsa->iqmp, ctx);
653 aep_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
H A De_cswift.c117 const BIGNUM *dmq1, const BIGNUM *iqmp,
605 const BIGNUM *dmq1, const BIGNUM *iqmp,
621 sw_param.up.crt.iqmp.value = NULL;
665 if (!cswift_bn_32copy(&sw_param.up.crt.iqmp, iqmp)) {
718 if (sw_param.up.crt.iqmp.value)
719 OPENSSL_free(sw_param.up.crt.iqmp.value);
737 if (!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) {
747 BN_num_bytes(rsa->dmq1) > 128 || BN_num_bytes(rsa->iqmp) > 128) {
762 rsa->dmq1, rsa->iqmp, ct
603 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...]
H A De_gmp.c328 mpz_t iqmp; member in struct:st_e_gmp_rsa_ctx
351 mpz_init(hptr->iqmp);
359 || !rsa->iqmp) {
365 !bn2gmp(rsa->dmq1, hptr->dmq1) || !bn2gmp(rsa->iqmp, hptr->iqmp))
378 mpz_clear(hptr->iqmp);
399 mpz_clear(hptr->iqmp);
446 mpz_mul(hptr->r1, hptr->r0, hptr->iqmp);
H A De_ubsec.c617 if (!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) {
623 rsa->dmq1, rsa->iqmp, ctx);
/freebsd-11-stable/crypto/openssl/engines/vendor_defns/
H A Dcswift.h184 SW_LARGENUMBER iqmp; /* CRT coefficient */ member in struct:_SW_CRT
H A Dhwcryptohook.h403 HWCryptoHook_MPI iqmp,
415 HWCryptoHook_MPI iqmp,
/freebsd-11-stable/crypto/heimdal/lib/hx509/
H A Dcrypto.c2986 rsa->iqmp = BN_dup(private_key->private_key.rsa->iqmp);

Completed in 212 milliseconds

12