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

/systemd/src/journal/
H A Dfsprg.c185 /* Decompose $x \in Z_n$ into $(xp,xq) \in Z_p \times Z_q$ using Chinese Remainder Theorem */
186 static void CRT_decompose(gcry_mpi_t *xp, gcry_mpi_t *xq, const gcry_mpi_t x, const gcry_mpi_t p, const gcry_mpi_t q) { argument
187 *xp = gcry_mpi_new(0);
189 gcry_mpi_mod(*xp, x, p);
193 /* Compose $(xp,xq) \in Z_p \times Z_q$ into $x \in Z_n$ using Chinese Remainder Theorem */
194 static void CRT_compose(gcry_mpi_t *x, const gcry_mpi_t xp, const gcry_mpi_t xq, const gcry_mpi_t p, const gcry_mpi_t q) { argument
200 gcry_mpi_subm(a, xq, xp, q);
202 gcry_mpi_mulm(a, a, u, q); /* a = (xq - xp) / p (mod q) */
204 gcry_mpi_add(*x, *x, xp); /* x = p * ((xq - xp) /
341 gcry_mpi_t p, q, n, x, xp, xq, kp, kq, xm; local
[all...]

Completed in 618 milliseconds