Searched refs:iqmp (Results 1 - 19 of 19) sorted by relevance

/freebsd-13-stable/crypto/openssl/crypto/rsa/
H A Drsa_lib.c135 BN_clear_free(r->iqmp);
230 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) argument
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_CONSTTIM
376 RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) argument
[all...]
H A Drsa_gen.c120 if (!rsa->iqmp && ((rsa->iqmp = BN_secure_new()) == NULL))
365 if (!BN_mod_inverse(rsa->iqmp, rsa->q, p, ctx)) {
H A Drsa_asn1.c60 ASN1_SIMPLE(RSA, iqmp, CBIGNUM),
H A Drsa_local.h45 BIGNUM *iqmp; member in struct:rsa_st
H A Drsa_chk.c154 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) {
183 /* iqmp = q^-1 mod p? */
188 if (BN_cmp(i, key->iqmp) != 0) {
H A Drsa_x931g.c130 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2);
131 if (rsa->iqmp == NULL)
H A Drsa_ossl.c315 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
437 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
688 /* r1 = r1 * iqmp mod p */
690 || !bn_mul_mont_fixed_top(r1, r1, rsa->iqmp, rsa->_method_mod_p,
816 if (!BN_mul(r1, r0, rsa->iqmp, ctx))
H A Drsa_ameth.c372 if (!ASN1_bn_print(bp, "coefficient:", x->iqmp, NULL, off))
/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Dlibressl-api-compat.c267 const BIGNUM **iqmp)
273 if (iqmp != NULL)
274 *iqmp = r->iqmp;
280 RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) argument
284 (r->iqmp == NULL && iqmp == NULL))
295 if (iqmp != NULL) {
296 BN_free(r->iqmp);
297 r->iqmp
266 RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) argument
[all...]
H A Dopenssl-compat.h141 const BIGNUM **iqmp);
145 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
/freebsd-13-stable/contrib/ntp/libntp/
H A Dlibssl_compat.c203 BIGNUM * iqmp
209 (prsa->iqmp || iqmp) ))
214 replace_bn_nn(&prsa->iqmp, iqmp);
/freebsd-13-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-13-stable/crypto/openssl/crypto/pem/
H A Dpvkfmt.c325 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...]
/freebsd-13-stable/contrib/ntp/include/
H A Dlibssl_compat.h67 BIGNUM *dmq1, BIGNUM *iqmp);
/freebsd-13-stable/crypto/openssh/
H A Dssh-rsa.c109 ssh_rsa_complete_crt_parameters(struct sshkey *key, const BIGNUM *iqmp) argument
131 (rsa_iqmp = BN_dup(iqmp)) == NULL) {
/freebsd-13-stable/contrib/ldns/
H A Dkeys.c797 * BIGNUM *iqmp; // q^-1 mod p
806 *dmp1=NULL, *dmq1=NULL, *iqmp=NULL; local
890 /* Coefficient, rsa->iqmp */
895 iqmp = BN_bin2bn((const char unsigned*)buf, i, NULL);
896 if (!iqmp) {
910 rsa->iqmp = iqmp;
922 if(!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp))
941 BN_free(iqmp);
H A Dhost2str.c2042 *dmq1=NULL, *iqmp=NULL; local
2051 iqmp = rsa->iqmp;
2056 &dmq1, &iqmp);
2072 if(!ldns_print_bignum_b64_line(output, "Coefficient", iqmp))
/freebsd-13-stable/crypto/openssl/include/openssl/
H A Drsa.h206 int RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
216 const BIGNUM **iqmp);
/freebsd-13-stable/crypto/heimdal/lib/hx509/
H A Dcrypto.c2984 const BIGNUM *d, *p, *q, *dmp1, *dmq1, *iqmp; local
2995 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp);
3023 new_iqmp = BN_dup(iqmp);

Completed in 302 milliseconds