Home GnuPG
Diffusion GnuPG 1e72a1a21849

scd:nks: Add do_with_keygrip and implement a cache.

Description

scd:nks: Add do_with_keygrip and implement a cache.

* scd/app-nks.c (struct fid_cache_s): New.
(struct app_local_s): Add field 'fid_cache'.
(do_deinit): Release the cache.
(keygripstr_from_pk_file): Implement the cache.
(find_fid_by_keyref): New
(do_sign, do_decipher): Use new function.
(do_with_keygrip): New.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 4 2020, 7:01 PM
Parents
rGd5051e31a8fc: sm: Support encryption using ECDH keys.
Branches
Unknown
Tags
Unknown