Home GnuPG
Diffusion GnuPG 0af1c6447dc0

kbx: Store the UBIB in the blob.

Description

kbx: Store the UBIB in the blob.

* kbx/keybox-blob.c (create_blob_header): New blob flag UBIB.
(create_blob_finish): Write the UBIB.
* kbx/keybox-dump.c (print_ubib): New.
(_keybox_dump_blob): Print UBIB flag.
* kbx/keybox-search.c (has_ubid): Compare the stored UBIB if
available.

This make scanning the keybox for a given UBIB much faster once it has
been stored.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Sep 27 2019, 1:51 PM
Parents
rG4be79b5abeae: kbx,gpg: Allow lookup using a UBID.
Branches
Unknown
Tags
Unknown