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

12

/freebsd-9.3-release/crypto/openssl/crypto/rsa/
H A Drsa_test.c27 key->dmp1 = BN_bin2bn(dmp1, sizeof(dmp1)-1, key->dmp1); \
60 static unsigned char dmp1[] = local
106 static unsigned char dmp1[] = local
167 static unsigned char dmp1[] = local
H A Drsa_asn1.c101 ASN1_SIMPLE(RSA, dmp1, BIGNUM),
H A Drsa_chk.c146 if (key->dmp1 != NULL && key->dmq1 != NULL && key->iqmp != NULL) {
147 /* dmp1 = d mod (p-1)? */
160 if (BN_cmp(j, key->dmp1) != 0) {
H A Drsa_eng.c192 ret->dmp1 = NULL;
263 if (r->dmp1 != NULL)
264 BN_clear_free(r->dmp1);
327 t[3] = &r->dmp1;
H A Drsa_x931g.c165 rsa->dmp1 = BN_new();
166 if (rsa->dmp1 == NULL)
168 if (!BN_mod(rsa->dmp1, rsa->d, r1, ctx))
H A Drsa_gen.c124 if (!rsa->dmp1 && ((rsa->dmp1 = BN_new()) == NULL))
208 if (!BN_mod(rsa->dmp1, d, r1, ctx))
H A Drsa_eay.c422 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
551 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
721 BIGNUM *dmp1, *dmq1, *c, *pr1; local
796 /* compute r1^dmp1 mod p */
798 dmp1 = &local_dmp1;
799 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME);
801 dmp1 = rsa->dmp1;
802 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rs
[all...]
/freebsd-9.3-release/crypto/openssl/fips/rsa/
H A Dfips_rsa_lib.c100 if (r->dmp1 != NULL)
101 BN_clear_free(r->dmp1);
H A Dfips_rsa_x931g.c168 rsa->dmp1 = BN_new();
169 if (rsa->dmp1 == NULL)
171 if (!BN_mod(rsa->dmp1, rsa->d, r1, ctx))
H A Dfips_rsa_gen.c206 if (!rsa->dmp1 && ((rsa->dmp1 = BN_new()) == NULL))
290 if (!BN_mod(rsa->dmp1, d, r1, ctx))
H A Dfips_rsa_eay.c437 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
565 (rsa->dmp1 != NULL) && (rsa->dmq1 != NULL) && (rsa->iqmp != NULL))) {
740 BIGNUM *dmp1, *dmq1, *c, *pr1; local
806 /* compute r1^dmp1 mod p */
808 dmp1 = &local_dmp1;
809 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME);
811 dmp1 = rsa->dmp1;
812 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rs
[all...]
H A Dfips_rsa_selftest.c99 static const unsigned char dmp1[] = local
123 key->dmp1 = BN_bin2bn(dmp1, sizeof(dmp1) - 1, key->dmp1);
/freebsd-9.3-release/crypto/openssl/engines/
H A De_gmp.c324 mpz_t dmp1; member in struct:st_e_gmp_rsa_ctx
347 mpz_init(hptr->dmp1);
356 if (!rsa->p || !rsa->q || !rsa->d || !rsa->dmp1 || !rsa->dmq1
362 !bn2gmp(rsa->q, hptr->q) || !bn2gmp(rsa->dmp1, hptr->dmp1) ||
374 mpz_clear(hptr->dmp1);
395 mpz_clear(hptr->dmp1);
438 mpz_powm(hptr->r0, hptr->r1, hptr->dmp1, hptr->p);
H A De_cswift.c116 const BIGNUM *q, const BIGNUM *dmp1,
604 const BIGNUM *q, const BIGNUM *dmp1,
619 sw_param.up.crt.dmp1.value = NULL;
657 if (!cswift_bn_32copy(&sw_param.up.crt.dmp1, dmp1)) {
714 if (sw_param.up.crt.dmp1.value)
715 OPENSSL_free(sw_param.up.crt.dmp1.value);
737 if (!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) {
746 BN_num_bytes(rsa->dmp1) > 128 ||
761 to_return = cswift_mod_exp_crt(r0, I, rsa->p, rsa->q, rsa->dmp1,
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_aep.c117 const BIGNUM *q, const BIGNUM *dmp1,
653 const BIGNUM *q, const BIGNUM *dmp1,
673 (void *)dmp1, (void *)dmq1, (void *)iqmp, (void *)r,
783 if (rsa->q && rsa->dmp1 && rsa->dmq1 && rsa->iqmp) {
784 rv = aep_mod_exp_crt(r0, I, rsa->p, rsa->q, rsa->dmp1, rsa->dmq1,
652 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
/freebsd-9.3-release/contrib/wpa/src/tls/
H A Drsa.c31 struct bignum *dmp1; /* d mod (p - 1); CRT exponent */ member in struct:crypto_rsa_key
150 key->dmp1 = bignum_init();
155 key->p == NULL || key->q == NULL || key->dmp1 == NULL ||
205 pos = crypto_rsa_parse_integer(pos, end, key->dmp1);
275 * dmp1 = (1/e) mod (p-1)
278 * m1 = c^dmp1 mod p
288 /* a = tmp^dmp1 mod p */
289 if (bignum_exptmod(tmp, key->dmp1, key->p, a) < 0)
353 bignum_deinit(key->dmp1);
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dlibssl_compat.c195 BIGNUM * dmp1,
201 if (!((prsa->dmp1 || dmp1) &&
206 replace_bn_nn(&prsa->dmp1, dmp1);
193 sslshim_RSA_set0_crt_params( RSA * prsa, BIGNUM * dmp1, BIGNUM * dmq1, BIGNUM * iqmp ) argument
/freebsd-9.3-release/crypto/openssl/demos/engines/cluster_labs/
H A Dcluster_labs.h5 const BIGNUM *q, const BIGNUM *dmp1,
H A Dhw_cluster_labs.c456 const BIGNUM *q, const BIGNUM *dmp1,
470 return p_cl_mod_exp_crt(r, a, p, q, dmp1, dmq1, iqmp, ctx);
455 cluster_labs_mod_exp_crt(BIGNUM *r, BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) argument
/freebsd-9.3-release/crypto/openssl/demos/engines/ibmca/
H A Dhw_ibmca.c97 const BIGNUM *q, const BIGNUM *dmp1,
589 if (!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) {
597 to_return = ibmca_mod_exp_crt(r0, I, rsa->p, rsa->q, rsa->dmp1,
609 const BIGNUM *q, const BIGNUM *dmp1,
630 unsigned int dmp1bytes = BN_num_bytes(dmp1);
686 privKey->dpLength = CORRECT_ENDIANNESS(BN_num_bytes(dmp1) + 8);
733 /* pkey += pSize - BN_num_bytes(p); WROING this should be dmp1) */
734 pkey += pSize - BN_num_bytes(dmp1);
735 BN_bn2bin(dmp1, pkey);
736 pkey += BN_num_bytes(dmp1); /* mov
608 ibmca_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...]
/freebsd-9.3-release/crypto/openssl/engines/vendor_defns/
H A Dhwcryptohook.h401 HWCryptoHook_MPI dmp1,
413 HWCryptoHook_MPI dmp1,
H A Dcswift.h182 SW_LARGENUMBER dmp1; /* exponent1 */ member in struct:_SW_CRT
/freebsd-9.3-release/crypto/openssh/
H A Drsa.c145 (BN_mod(rsa->dmp1, rsa->d, aux, ctx) == 0))
/freebsd-9.3-release/contrib/ntp/include/
H A Dlibssl_compat.h54 extern int sslshim_RSA_set0_crt_params(RSA *prsa, BIGNUM *dmp1,
/freebsd-9.3-release/crypto/openssl/crypto/asn1/
H A Dt_pkey.c128 if (x->dmp1)
129 if (buf_len < (i = (size_t)BN_num_bytes(x->dmp1)))
170 if ((x->dmp1 != NULL) && !print(bp, "exponent1:", x->dmp1, m, off))

Completed in 407 milliseconds

12