Lines Matching refs:o

28         Object *o;  in journal_file_append_tag()  local
42 r = journal_file_append_object(f, OBJECT_TAG, sizeof(struct TagObject), &o, &p); in journal_file_append_tag()
46 o->tag.seqnum = htole64(journal_file_tag_seqnum(f)); in journal_file_append_tag()
47 o->tag.epoch = htole64(FSPRG_GetEpoch(f->fsprg_state)); in journal_file_append_tag()
50 le64toh(o->tag.seqnum), in journal_file_append_tag()
55 r = journal_file_hmac_put_object(f, OBJECT_TAG, o, p); in journal_file_append_tag()
60 memcpy(o->tag.tag, gcry_md_read(f->hmac, 0), TAG_LENGTH); in journal_file_append_tag()
223 int journal_file_hmac_put_object(JournalFile *f, ObjectType type, Object *o, uint64_t p) { in journal_file_hmac_put_object() argument
235 if (!o) { in journal_file_hmac_put_object()
236 r = journal_file_move_to_object(f, type, p, &o); in journal_file_hmac_put_object()
240 if (type > OBJECT_UNUSED && o->object.type != type) in journal_file_hmac_put_object()
244 gcry_md_write(f->hmac, o, offsetof(ObjectHeader, payload)); in journal_file_hmac_put_object()
246 switch (o->object.type) { in journal_file_hmac_put_object()
250 gcry_md_write(f->hmac, &o->data.hash, sizeof(o->data.hash)); in journal_file_hmac_put_object()
251 … gcry_md_write(f->hmac, o->data.payload, le64toh(o->object.size) - offsetof(Object, data.payload)); in journal_file_hmac_put_object()
256 gcry_md_write(f->hmac, &o->field.hash, sizeof(o->field.hash)); in journal_file_hmac_put_object()
257 …gcry_md_write(f->hmac, o->field.payload, le64toh(o->object.size) - offsetof(Object, field.payload)… in journal_file_hmac_put_object()
262 …gcry_md_write(f->hmac, &o->entry.seqnum, le64toh(o->object.size) - offsetof(Object, entry.seqnum)); in journal_file_hmac_put_object()
273 gcry_md_write(f->hmac, &o->tag.seqnum, sizeof(o->tag.seqnum)); in journal_file_hmac_put_object()
274 gcry_md_write(f->hmac, &o->tag.epoch, sizeof(o->tag.epoch)); in journal_file_hmac_put_object()