Home GnuPG
Diffusion GnuPG 02d7bb819ff4

g10: check_pin_for_key_operation should be just before genkey.

Description

g10: check_pin_for_key_operation should be just before genkey.

* g10/card-util.c (generate_card_keys): Check PIN later.
(card_generate_subkey): Likewise.

Changing key attribute resets PIN authentication status. So, CHECKPIN
should be after that, before key generation. Note that CHECKPIN is
done for binding signature.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 29 2018, 3:48 AM
Parents
rGe610d51f0de1: g10: Change ask_curve so that it can be used outside.
Branches
Unknown
Tags
Unknown