[PATCH GnuPG 1/2] scd:piv: Support AES administration keys
NIIBE Yutaka
gniibe at fsij.org
Thu Nov 12 01:34:35 CET 2026
Hello,
Thank you for your contributions.
David Seifert wrote:
> * scd/app-piv.c (adm_key_algos): New.
> (auth_adm_key): Support AES-128, AES-192 and AES-256 keys. Try
> AES-192 before 3DES for 24 byte keys.
> (set_adm_key_algo): New. Code taken from set_adm_key. Return the
> status word instead of logging it.
> (set_adm_key): Support AES keys. Set 24 byte keys as AES-192 key and
> fall back to 3DES. Log only the last failure.
[...]
> * scd/app-piv.c (PIV_ALGORITHM_RSA_4096): New.
> (get_key_algorithm_by_dobj): Map RSA keys larger than 3072 bit to
> PIV_ALGORITHM_RSA_4096.
> (do_sign, do_decipher): Support PIV_ALGORITHM_RSA_4096.
> (get_keygrip_by_tag, do_readkey): Handle 3072 and 4096 bit RSA keys
> stored without a certificate.
> (writekey_rsa): Use PIV_ALGORITHM_RSA_4096 for keys larger than 3072
> bit.
> (do_genkey): Support "rsa4096".
Applied both to master and pushed.
--
More information about the Gnupg-devel
mailing list