Lines Matching refs:tmp
34 void *tmp, *tmpa, *tmpb; in katja_exptmod() local
54 …if ((err = mp_init_multi(&tmp, &tmpa, &tmpb, NULL)) != CRYPT_OK) … in katja_exptmod()
55 …if ((err = mp_read_unsigned_bin(tmp, (unsigned char *)in, (int)inlen)) != CRYPT_OK) … in katja_exptmod()
58 if (mp_cmp(key->N, tmp) == LTC_MP_LT) { in katja_exptmod()
66 …if ((err = mp_exptmod(tmp, key->dP, key->p, tmpa)) != CRYPT_OK) { go… in katja_exptmod()
69 …if ((err = mp_exptmod(tmp, key->dQ, key->q, tmpb)) != CRYPT_OK) { go… in katja_exptmod()
72 …if ((err = mp_sub(tmpa, tmpb, tmp)) != CRYPT_OK) { go… in katja_exptmod()
73 …if ((err = mp_mulmod(tmp, key->qP, key->p, tmp)) != CRYPT_OK) { go… in katja_exptmod()
76 …if ((err = mp_mul(tmp, key->q, tmp)) != CRYPT_OK) { go… in katja_exptmod()
77 …if ((err = mp_add(tmp, tmpb, tmp)) != CRYPT_OK) { go… in katja_exptmod()
80 …if ((err = mp_exptmod(tmp, key->N, key->N, tmp)) != CRYPT_OK) { go… in katja_exptmod()
92 if (mp_unsigned_bin_size(tmp) > mp_unsigned_bin_size(key->N)) { in katja_exptmod()
100 …if ((err = mp_to_unsigned_bin(tmp, out+(x-mp_unsigned_bin_size(tmp)))) != CRYPT_OK) … in katja_exptmod()
107 mp_clear_multi(tmp, tmpa, tmpb, NULL); in katja_exptmod()