Lines Matching defs:num
208 struct crypto_bignum *r, *num;
218 * num = (v * r * r) modulo p
224 num = crypto_bignum_init();
225 if (!num ||
226 crypto_bignum_mulmod(y_sqr, r, sae->tmp->prime, num) < 0 ||
227 crypto_bignum_mulmod(num, r, sae->tmp->prime, num) < 0)
232 * num = (num * qr) module p
233 * LGR(num, p) = 1 ==> quadratic residue
235 if (crypto_bignum_mulmod(num, qr, sae->tmp->prime, num) < 0)
240 * num = (num * qnr) module p
241 * LGR(num, p) = -1 ==> quadratic residue
243 if (crypto_bignum_mulmod(num, qnr, sae->tmp->prime, num) < 0)
248 res = crypto_bignum_legendre(num, sae->tmp->prime);
255 crypto_bignum_deinit(num, 1);