Home
last modified time | relevance | path

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

/systemd-251/src/libsystemd/sd-journal/
Dfsprg.c194 static void CRT_decompose(gcry_mpi_t *xp, gcry_mpi_t *xq, const gcry_mpi_t x, const gcry_mpi_t p, c… in CRT_decompose() argument
195 *xp = gcry_mpi_new(0); in CRT_decompose()
197 gcry_mpi_mod(*xp, x, p); in CRT_decompose()
202 static void CRT_compose(gcry_mpi_t *x, const gcry_mpi_t xp, const gcry_mpi_t xq, const gcry_mpi_t p… in CRT_compose() argument
208 gcry_mpi_subm(a, xq, xp, q); in CRT_compose()
212 gcry_mpi_add(*x, *x, xp); /* x = p * ((xq - xp) / p mod q) + xp */ in CRT_compose()
335 gcry_mpi_t p, q, n, x, xp, xq, kp, kq, xm; in FSPRG_Seek() local
348 CRT_decompose(&xp, &xq, x, p, q); /* split (mod n) into (mod p) and (mod q) using CRT */ in FSPRG_Seek()
353 gcry_mpi_powm(xp, xp, kp, p); /* compute x^(2^epoch) (mod p) */ in FSPRG_Seek()
356 CRT_compose(&xm, xp, xq, p, q); /* combine (mod p) and (mod q) to (mod n) using CRT */ in FSPRG_Seek()
[all …]