Lines Matching refs:epoch
237 return 2 + 2 * _secpar / 8 + 8; /* to store header,n,x,epoch */
315 uint64_t epoch;
322 epoch = uint64_import(state + 2 + 2 * secpar / 8, 8);
325 epoch++;
328 uint64_export(state + 2 + 2 * secpar / 8, 8, epoch);
340 void FSPRG_Seek(void *state, uint64_t epoch, const void *msk, const void *seed, size_t seedlen) {
356 kp = twopowmodphi(epoch, p); /* compute 2^epoch (mod phi(p)) */
357 kq = twopowmodphi(epoch, q); /* compute 2^epoch (mod phi(q)) */
359 gcry_mpi_powm(xp, xp, kp, p); /* compute x^(2^epoch) (mod p) */
360 gcry_mpi_powm(xq, xq, kq, q); /* compute x^(2^epoch) (mod q) */
367 uint64_export(state + 2 + 2 * secpar / 8, 8, epoch);