summaryrefslogtreecommitdiff
path: root/src/journal/journal-authenticate.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-17 00:45:18 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-17 00:45:18 +0200
commitbaed47c3c20512507e497058d388782400a072f6 (patch)
treebb1d7a188bf7d88cdb89074cb75a8904e4d3f55b /src/journal/journal-authenticate.h
parent14d10188de1fd58e663d73683a400d8d7dc67dba (diff)
journal: rework terminology
Let's clean up our terminology a bit. New terminology: FSS = Forward Secure Sealing FSPRG = Forward Secure Pseudo-Random Generator FSS is the combination of FSPRG and a HMAC. Sealing = process of adding authentication tags to the journal. Verification = process of checking authentication tags to the journal. Sealing Key = The key used for adding authentication tags to the journal. Verification Key = The key used for checking authentication tags of the journal. Key pair = The pair of Sealing Key and Verification Key Internally, the Sealing Key is the combination of the FSPRG State plus change interval/start time. Internally, the Verification Key is the combination of the FSPRG Seed plus change interval/start time.
Diffstat (limited to 'src/journal/journal-authenticate.h')
-rw-r--r--src/journal/journal-authenticate.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/journal/journal-authenticate.h b/src/journal/journal-authenticate.h
index 282c73f68c..4f4f45b114 100644
--- a/src/journal/journal-authenticate.h
+++ b/src/journal/journal-authenticate.h
@@ -30,14 +30,13 @@ int journal_file_append_tag(JournalFile *f);
int journal_file_maybe_append_tag(JournalFile *f, uint64_t realtime);
int journal_file_append_first_tag(JournalFile *f);
+int journal_file_hmac_setup(JournalFile *f);
int journal_file_hmac_start(JournalFile *f);
int journal_file_hmac_put_header(JournalFile *f);
int journal_file_hmac_put_object(JournalFile *f, int type, uint64_t p);
-int journal_file_load_fsprg(JournalFile *f);
-
-int journal_file_setup_hmac(JournalFile *f);
-
-bool journal_file_fsprg_enabled(JournalFile *f);
+int journal_file_fss_load(JournalFile *f);
+bool journal_file_fss_enabled(JournalFile *f);
+int journal_file_fsprg_evolve(JournalFile *f, uint64_t realtime);
int journal_file_fsprg_seek(JournalFile *f, uint64_t epoch);