Home GnuPG
Diffusion GnuPG ad4bc3e04d0b

scd:p15: Take derive usage into account for decryption.

Description

scd:p15: Take derive usage into account for decryption.

* scd/app-p15.c (set_usage_string): Map usageflags.derive also to 'e'.
(do_auth): Allow usageflags.sign_recover.
(do_decipher): Allow usageflags.derive.
(do_with_keygrip): Take usageflags.derive into account.
(do_gettatr): Ditto.
(do_decipher): Take a missing AODF for authentication not needed.

This is required for D-Trust ECC cards.

The AODF thing is unrelated but seems to be a good idea.

Details

Provenance
wernerAuthored on Feb 20 2024, 9:15 AM
Parents
rG2810b934647e: dirmngr: Fix keep-alive flag handling.
Branches
Unknown
Tags
Unknown
Tasks
T7000: Take derive usage into account for pkcs#15 cards.