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>