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

/systemd/src/journal/
H A Dfsprg.h43 /* Setup msk and mpk. Providing seed != NULL makes this algorithm deterministic. */
44 void FSPRG_GenMK(void *msk, void *mpk, const void *seed, size_t seedlen, unsigned secpar);
56 /* Seek to any arbitrary state (by providing msk together with seed from GenState0). */
57 void FSPRG_Seek(void *state, uint64_t epoch, const void *msk, const void *seed, size_t seedlen);
H A Dfsprg.c254 void FSPRG_GenMK(void *msk, void *mpk, const void *seed, size_t seedlen, unsigned _secpar) { argument
273 if (msk) {
274 store_secpar(msk + 0, secpar);
275 mpi_export(msk + 2 + 0 * (secpar / 2) / 8, (secpar / 2) / 8, p);
276 mpi_export(msk + 2 + 1 * (secpar / 2) / 8, (secpar / 2) / 8, q);
340 void FSPRG_Seek(void *state, uint64_t epoch, const void *msk, const void *seed, size_t seedlen) { argument
346 secpar = read_secpar(msk + 0);
347 p = mpi_import(msk + 2 + 0 * (secpar / 2) / 8, (secpar / 2) / 8);
348 q = mpi_import(msk + 2 + 1 * (secpar / 2) / 8, (secpar / 2) / 8);
H A Djournal-authenticate.c169 void *msk; local
200 msk = alloca(FSPRG_mskinbytes(FSPRG_RECOMMENDED_SECPAR));
201 FSPRG_GenMK(msk, NULL, f->fsprg_seed, f->fsprg_seed_size, FSPRG_RECOMMENDED_SECPAR);
202 FSPRG_Seek(f->fsprg_state, goal, msk, f->fsprg_seed, f->fsprg_seed_size);

Completed in 1438 milliseconds