Searched refs:dmp1 (Results 1 - 18 of 18) sorted by relevance

/freebsd-12-stable/crypto/openssl/crypto/rsa/
H A Drsa_lib.c133 BN_clear_free(r->dmp1);
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
235 if ((r->dmp1 == NULL && dmp1 == NULL)
240 if (dmp1 != NULL) {
241 BN_clear_free(r->dmp1);
242 r->dmp1 = dmp1;
243 BN_set_flags(r->dmp1, 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_x931g.c116 rsa->dmp1 = BN_new();
117 if (rsa->dmp1 == NULL)
119 if (!BN_mod(rsa->dmp1, rsa->d, r1, ctx))
H A Drsa_ossl.c315 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
437 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
676 /* r1 = r1^dmp1 mod p */
677 || !BN_mod_exp_mont_consttime(r1, r1, rsa->dmp1, rsa->p, ctx,
741 BIGNUM *dmp1 = BN_new(); local
742 if (dmp1 == NULL)
744 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME);
746 /* compute r1^dmp1 mod p */
747 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rs
[all...]
H A Drsa_gen.c116 if (!rsa->dmp1 && ((rsa->dmp1 = BN_secure_new()) == NULL))
337 if (!BN_mod(rsa->dmp1, d, r1, ctx)
H A Drsa_asn1.c58 ASN1_SIMPLE(RSA, dmp1, CBIGNUM),
H A Drsa_local.h43 BIGNUM *dmp1; member in struct:rsa_st
H A Drsa_chk.c154 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) {
155 /* dmp1 = d mod (p-1)? */
164 if (BN_cmp(j, key->dmp1) != 0) {
H A Drsa_ameth.c368 if (!ASN1_bn_print(bp, "exponent1:", x->dmp1, NULL, off))
/freebsd-12-stable/crypto/openssh/openbsd-compat/
H A Dlibressl-api-compat.c266 RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, argument
269 if (dmp1 != NULL)
270 *dmp1 = r->dmp1;
280 RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp) argument
282 if ((r->dmp1 == NULL && dmp1 == NULL) ||
287 if (dmp1 != NULL) {
288 BN_free(r->dmp1);
289 r->dmp1
[all...]
H A Dopenssl-compat.h140 void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1,
145 int RSA_set0_crt_params(RSA *r, BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
/freebsd-12-stable/contrib/ntp/libntp/
H A Dlibssl_compat.c201 BIGNUM * dmp1,
207 if (!((prsa->dmp1 || dmp1) &&
212 replace_bn_nn(&prsa->dmp1, dmp1);
199 sslshim_RSA_set0_crt_params( RSA * prsa, BIGNUM * dmp1, BIGNUM * dmq1, BIGNUM * iqmp ) argument
/freebsd-12-stable/contrib/wpa/src/tls/
H A Drsa.c25 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */ member in struct:crypto_rsa_key
167 key->dmp1 = bignum_init();
172 key->p == NULL || key->q == NULL || key->dmp1 == NULL ||
222 pos = crypto_rsa_parse_integer(pos, end, key->dmp1);
292 * dmp1 = (1/e) mod (p-1)
295 * m1 = c^dmp1 mod p
305 /* a = tmp^dmp1 mod p */
306 if (bignum_exptmod(tmp, key->dmp1, key->p, a) < 0)
370 bignum_deinit(key->dmp1);
/freebsd-12-stable/crypto/openssl/crypto/pem/
H A Dpvkfmt.c325 BIGNUM *p = NULL, *q = NULL, *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; local
346 if (!read_lebn(&pin, hnbyte, &dmp1))
357 if (!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp))
359 dmp1 = dmq1 = iqmp = NULL;
376 BN_free(dmp1);
533 const BIGNUM *d, *p, *q, *iqmp, *dmp1, *dmq1; local
544 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp);
548 || (BN_num_bytes(dmp1) > hnbyte)
561 const BIGNUM *n, *d, *e, *p, *q, *iqmp, *dmp1, *dmq1; local
571 RSA_get0_crt_params(rsa, &dmp1,
[all...]
/freebsd-12-stable/contrib/ntp/include/
H A Dlibssl_compat.h66 extern int sslshim_RSA_set0_crt_params(RSA *prsa, BIGNUM *dmp1,
/freebsd-12-stable/contrib/ldns/
H A Dkeys.c795 * BIGNUM *dmp1; // d mod (p-1)
806 *dmp1=NULL, *dmq1=NULL, *iqmp=NULL; local
870 /* Exponent1, rsa->dmp1 */
875 dmp1 = BN_bin2bn((const char unsigned*)buf, i, NULL);
876 if (!dmp1) {
908 rsa->dmp1 = dmp1;
922 if(!RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp))
939 BN_free(dmp1);
H A Dhost2str.c2041 *p=NULL, *q=NULL, *dmp1=NULL, local
2049 dmp1 = rsa->dmp1;
2055 RSA_get0_crt_params(rsa, &dmp1,
2068 if(!ldns_print_bignum_b64_line(output, "Exponent1", dmp1))
/freebsd-12-stable/crypto/openssl/include/openssl/
H A Drsa.h206 int RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);
215 const BIGNUM **dmp1, const BIGNUM **dmq1,
/freebsd-12-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);
3021 new_dmp1 = BN_dup(dmp1);

Completed in 501 milliseconds