/freebsd-13-stable/crypto/openssl/crypto/rsa/ |
H A D | rsa_lib.c | 135 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 D | rsa_gen.c | 120 if (!rsa->iqmp && ((rsa->iqmp = BN_secure_new()) == NULL)) 365 if (!BN_mod_inverse(rsa->iqmp, rsa->q, p, ctx)) {
|
H A D | rsa_asn1.c | 60 ASN1_SIMPLE(RSA, iqmp, CBIGNUM),
|
H A D | rsa_local.h | 45 BIGNUM *iqmp; member in struct:rsa_st
|
H A D | rsa_chk.c | 154 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 D | rsa_x931g.c | 130 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); 131 if (rsa->iqmp == NULL)
|
H A D | rsa_ossl.c | 315 (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 D | rsa_ameth.c | 372 if (!ASN1_bn_print(bp, "coefficient:", x->iqmp, NULL, off))
|
/freebsd-13-stable/crypto/openssh/openbsd-compat/ |
H A D | libressl-api-compat.c | 267 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 D | openssl-compat.h | 141 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 D | libssl_compat.c | 203 BIGNUM * iqmp 209 (prsa->iqmp || iqmp) )) 214 replace_bn_nn(&prsa->iqmp, iqmp);
|
/freebsd-13-stable/contrib/wpa/src/tls/ |
H A D | rsa.c | 27 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 D | 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...] |
/freebsd-13-stable/contrib/ntp/include/ |
H A D | libssl_compat.h | 67 BIGNUM *dmq1, BIGNUM *iqmp);
|
/freebsd-13-stable/crypto/openssh/ |
H A D | ssh-rsa.c | 109 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 D | keys.c | 797 * 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 D | host2str.c | 2042 *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 D | rsa.h | 206 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 D | crypto.c | 2984 const BIGNUM *d, *p, *q, *dmp1, *dmq1, *iqmp; local 2995 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); 3023 new_iqmp = BN_dup(iqmp);
|