diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-08-17 00:45:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-17 00:45:18 +0200 |
commit | baed47c3c20512507e497058d388782400a072f6 (patch) | |
tree | bb1d7a188bf7d88cdb89074cb75a8904e4d3f55b /src/journal/journal-file.h | |
parent | 14d10188de1fd58e663d73683a400d8d7dc67dba (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-file.h')
-rw-r--r-- | src/journal/journal-file.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index 9d437ae791..58de214359 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -51,7 +51,7 @@ typedef struct JournalFile { int prot; bool writable; bool compress; - bool authenticate; + bool seal; bool tail_entry_monotonic_valid; @@ -73,17 +73,17 @@ typedef struct JournalFile { gcry_md_hd_t hmac; bool hmac_running; - FSPRGHeader *fsprg_file; - size_t fsprg_file_size; + FSSHeader *fss_file; + size_t fss_file_size; + + uint64_t fss_start_usec; + uint64_t fss_interval_usec; void *fsprg_state; size_t fsprg_state_size; void *fsprg_seed; size_t fsprg_seed_size; - - uint64_t fsprg_start_usec; - uint64_t fsprg_interval_usec; #endif } JournalFile; @@ -97,7 +97,7 @@ int journal_file_open( int flags, mode_t mode, bool compress, - bool authenticate, + bool seal, JournalMetrics *metrics, MMapCache *mmap_cache, JournalFile *template, @@ -110,7 +110,7 @@ int journal_file_open_reliably( int flags, mode_t mode, bool compress, - bool authenticate, + bool seal, JournalMetrics *metrics, MMapCache *mmap_cache, JournalFile *template, @@ -152,7 +152,7 @@ int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint6 void journal_file_dump(JournalFile *f); void journal_file_print_header(JournalFile *f); -int journal_file_rotate(JournalFile **f, bool compress, bool authenticate); +int journal_file_rotate(JournalFile **f, bool compress, bool seal); void journal_file_post_change(JournalFile *f); |