]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
journal: fix HMAC calculation when appending a data object 4207/head
authorFranck Bui <fbui@suse.com>
Fri, 23 Sep 2016 11:33:01 +0000 (13:33 +0200)
committerFranck Bui <fbui@suse.com>
Fri, 23 Sep 2016 12:59:51 +0000 (14:59 +0200)
commit33685a5a3a98c6ded64d0cc25e37d0180ceb0a6a
treee02807ff1130ab0b41d50398695b088a6a6e7181
parent43cd8794839548a6f332875e8bee8bed2652bf2c
journal: fix HMAC calculation when appending a data object

Since commit 5996c7c295e073ce21d41305169132c8aa993ad0 (v190 !), the
calculation of the HMAC is broken because the hash for a data object
including a field is done in the wrong order: the field object is
hashed before the data object is.

However during verification, the hash is done in the opposite order as
objects are scanned sequentially.
src/journal/journal-file.c