Lines Matching refs:epoch
61 o->tag.epoch = htole64(FSPRG_GetEpoch(f->fsprg_state));
63 log_debug("Writing tag %"PRIu64" for epoch %"PRIu64"",
100 static int journal_file_get_epoch(JournalFile *f, uint64_t realtime, uint64_t *epoch) {
104 assert(epoch);
117 *epoch = t;
122 uint64_t goal, epoch;
133 epoch = FSPRG_GetEpoch(f->fsprg_state);
134 if (epoch > goal)
137 return epoch != goal;
141 uint64_t goal, epoch;
153 epoch = FSPRG_GetEpoch(f->fsprg_state);
154 if (epoch < goal)
155 log_debug("Evolving FSPRG key from epoch %"PRIu64" to %"PRIu64".", epoch, goal);
158 if (epoch > goal)
160 if (epoch == goal)
164 epoch = FSPRG_GetEpoch(f->fsprg_state);
170 uint64_t epoch;
182 epoch = FSPRG_GetEpoch(f->fsprg_state);
183 if (goal == epoch)
186 if (goal == epoch+1) {
283 gcry_md_write(f->hmac, &o->tag.epoch, sizeof(o->tag.epoch));
549 uint64_t epoch;
557 epoch = FSPRG_GetEpoch(f->fsprg_state);
559 *u = (usec_t) (f->fss_start_usec + f->fss_interval_usec * epoch + f->fss_interval_usec);