Home GnuPG
Diffusion GnuPG b5b1f721582d

scd: Add genkey command to app-piv (rsa-only)

Description

scd: Add genkey command to app-piv (rsa-only)

* scd/app-piv.c (struct genkey_result_s): new.
(struct app_local_s): add member genkey_results.
(do_deinit): Free that one.
(flush_cached_data): Extend to delete all items.
(keyref_from_dobj): New.
(do_readkey): New.
(do_auth): Use keyref_from_dobj.
(does_key_exist): New.
(genkey_parse_rsa): New.
(do_genkey): New.

We need to extend the GENKEY in command.c to support other algos.

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

Details

Provenance
wernerAuthored on Feb 6 2019, 8:47 PM
Parents
rG9a9cb0257aeb: scd: Make app_genkey and supporting ISO function more flexible.
Branches
Unknown
Tags
Unknown